1# Copyright (C) 2015 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# We define this in a subdir so that it won't pick up the parent's Android.xml by default. 16 17LOCAL_PATH:= $(call my-dir) 18include $(CLEAR_VARS) 19 20# current api, in XML format. 21# NOTE: the output XML file is also used 22# in //cts/hostsidetests/devicepolicy/AndroidTest.xml 23# by com.android.cts.managedprofile.CurrentApiHelper 24# ============================================================ 25include $(CLEAR_VARS) 26LOCAL_MODULE := cts-current-api 27LOCAL_MODULE_STEM := current.api 28LOCAL_MODULE_CLASS := ETC 29LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_ETC) 30 31# Tag this module as a cts test artifact 32LOCAL_COMPATIBILITY_SUITE := cts 33 34include $(BUILD_SYSTEM)/base_rules.mk 35$(LOCAL_BUILT_MODULE) : frameworks/base/api/current.txt | $(APICHECK) 36 @echo "Convert API file $@" 37 @mkdir -p $(dir $@) 38 $(hide) $(APICHECK_COMMAND) -convert2xml $< $@ 39 40include $(CLEAR_VARS) 41 42# current api, in XML format. 43# ============================================================ 44include $(CLEAR_VARS) 45LOCAL_MODULE := cts-system-current-api 46LOCAL_MODULE_STEM := system-current.api 47LOCAL_MODULE_CLASS := ETC 48LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_ETC) 49 50# Tag this module as a cts test artifact 51LOCAL_COMPATIBILITY_SUITE := cts 52 53include $(BUILD_SYSTEM)/base_rules.mk 54$(LOCAL_BUILT_MODULE) : frameworks/base/api/system-current.txt | $(APICHECK) 55 @echo "Convert API file $@" 56 @mkdir -p $(dir $@) 57 $(hide) $(APICHECK_COMMAND) -convert2xml $< $@ 58