Home | History | Annotate | Download | only in api
      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 
     17 LOCAL_PATH:= $(call my-dir)
     18 include $(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 # ============================================================
     25 include $(CLEAR_VARS)
     26 LOCAL_MODULE := cts-current-api
     27 LOCAL_MODULE_STEM := current.api
     28 LOCAL_MODULE_CLASS := ETC
     29 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_ETC)
     30 
     31 # Tag this module as a cts test artifact
     32 LOCAL_COMPATIBILITY_SUITE := cts
     33 
     34 include $(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 
     40 include $(CLEAR_VARS)
     41 
     42 # current api, in XML format.
     43 # ============================================================
     44 include $(CLEAR_VARS)
     45 LOCAL_MODULE := cts-system-current-api
     46 LOCAL_MODULE_STEM := system-current.api
     47 LOCAL_MODULE_CLASS := ETC
     48 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_ETC)
     49 
     50 # Tag this module as a cts test artifact
     51 LOCAL_COMPATIBILITY_SUITE := cts
     52 
     53 include $(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