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 15LOCAL_PATH := $(call my-dir) 16 17all_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 24include $(CLEAR_VARS) 25LOCAL_MODULE := cts-system-all.api 26LOCAL_MODULE_STEM := system-all.api.zip 27LOCAL_MODULE_CLASS := ETC 28LOCAL_MODULE_PATH = $(TARGET_OUT_DATA_ETC) 29LOCAL_COMPATIBILITY_SUITE := arcts cts vts general-tests 30include $(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 37include $(CLEAR_VARS) 38 39LOCAL_PACKAGE_NAME := CtsSystemApiSignatureTestCases 40 41LOCAL_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 48include $(LOCAL_PATH)/../build_signature_apk.mk 49 50all_system_api_files := 51