Jiyong Park | 49d695e | 2018-02-01 22:49:17 +0900 | [diff] [blame] | 1 | # Copyright (C) 2017 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
| 17 | all_system_api_files := system-current.api system-removed.api |
| 18 | $(foreach ver,$(PLATFORM_SYSTEMSDK_VERSIONS),\ |
| 19 | $(if $(call math_is_number,$(ver)),\ |
| 20 | $(eval all_system_api_files += system-$(ver).api)\ |
| 21 | )\ |
| 22 | ) |
| 23 | |
| 24 | include $(CLEAR_VARS) |
| 25 | LOCAL_MODULE := cts-system-all.api |
| 26 | LOCAL_MODULE_STEM := system-all.api.zip |
| 27 | LOCAL_MODULE_CLASS := ETC |
| 28 | LOCAL_MODULE_PATH = $(TARGET_OUT_DATA_ETC) |
| 29 | LOCAL_COMPATIBILITY_SUITE := arcts cts vts general-tests |
| 30 | include $(BUILD_SYSTEM)/base_rules.mk |
| 31 | $(LOCAL_BUILT_MODULE): $(addprefix $(COMPATIBILITY_TESTCASES_OUT_cts)/,$(all_system_api_files)) |
| 32 | @echo "Zip API files $^ -> $@" |
| 33 | @mkdir -p $(dir $@) |
| 34 | $(hide) rm -f $@ |
| 35 | $(hide) zip -q $@ $^ |
| 36 | |
| 37 | include $(CLEAR_VARS) |
| 38 | |
| 39 | LOCAL_PACKAGE_NAME := CtsSystemApiSignatureTestCases |
| 40 | |
| 41 | LOCAL_SIGNATURE_API_FILES := \ |
| 42 | current.api \ |
| 43 | android-test-mock-current.api \ |
| 44 | android-test-runner-current.api \ |
| 45 | $(all_sytem_api_files) \ |
| 46 | system-all.api.zip |
| 47 | |
| 48 | include $(LOCAL_PATH)/../build_signature_apk.mk |
| 49 | |
| 50 | all_system_api_files := |