1# Copyright (C) 2019 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 17include $(CLEAR_VARS) 18 19all_shared_libs_modules := 20 21$(foreach ver,$(call int_range_list,28,$(PLATFORM_SDK_VERSION)),\ 22 $(foreach api_level,public system,\ 23 $(foreach lib,$(filter-out android,$(filter-out %removed,$(filter-out incompatibilities,\ 24 $(basename $(notdir $(wildcard $(HISTORICAL_SDK_VERSIONS_ROOT)/$(ver)/$(api_level)/api/*.txt)))))),\ 25 $(eval all_shared_libs_modules += $(lib)-$(ver)-$(api_level).api)))) 26 27all_shared_libs_files := $(addprefix $(COMPATIBILITY_TESTCASES_OUT_cts)/,$(all_shared_libs_modules)) 28 29include $(CLEAR_VARS) 30LOCAL_MODULE := cts-shared-libs-all.api 31LOCAL_MODULE_STEM := shared-libs-all.api.zip 32LOCAL_MODULE_CLASS := ETC 33LOCAL_MODULE_PATH = $(TARGET_OUT_DATA_ETC) 34include $(BUILD_SYSTEM)/base_rules.mk 35$(LOCAL_BUILT_MODULE): $(SOONG_ZIP) 36$(LOCAL_BUILT_MODULE): PRIVATE_SHARED_LIBS_FILES := $(all_shared_libs_files) 37$(LOCAL_BUILT_MODULE): $(all_shared_libs_files) 38 @echo "Zip API files $^ -> $@" 39 @mkdir -p $(dir $@) 40 $(hide) rm -f $@ 41 $(hide) $(SOONG_ZIP) -o $@ -P out -C $(OUT_DIR) $(addprefix -f ,$(PRIVATE_SHARED_LIBS_FILES)) 42 43all_shared_libs_zip_file := $(LOCAL_BUILT_MODULE) 44 45include $(CLEAR_VARS) 46 47LOCAL_MODULE_TAGS := optional 48 49LOCAL_SRC_FILES := $(call all-java-files-under, src) 50 51LOCAL_MODULE := cts-api-signature-multilib-test 52 53LOCAL_SDK_VERSION := test_current 54 55LOCAL_STATIC_JAVA_LIBRARIES := \ 56 cts-api-signature-test \ 57 compatibility-device-util-axt 58 59include $(BUILD_STATIC_JAVA_LIBRARY) 60 61 62include $(CLEAR_VARS) 63 64LOCAL_PACKAGE_NAME := CtsSharedLibsApiSignatureTestCases 65 66LOCAL_JAVA_RESOURCE_FILES := $(all_shared_libs_zip_file) 67 68LOCAL_STATIC_JAVA_LIBRARIES := cts-api-signature-multilib-test 69 70include $(LOCAL_PATH)/../build_signature_apk.mk 71 72LOCAL_JAVA_SDK_LIBRARIES := 73all_shared_libs_files := 74all_shared_libs_modules := 75all_shared_libs_zip_file := 76