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 # ============================================================
     22 include $(CLEAR_VARS)
     23 LOCAL_MODULE := cts-current-api
     24 LOCAL_MODULE_STEM := current.api
     25 LOCAL_MODULE_CLASS := ETC
     26 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_ETC)
     27 
     28 # Tag this module as a cts test artifact
     29 LOCAL_COMPATIBILITY_SUITE := cts
     30 
     31 include $(BUILD_SYSTEM)/base_rules.mk
     32 $(LOCAL_BUILT_MODULE) : frameworks/base/api/current.txt | $(APICHECK)
     33 	@echo "Convert API file $@"
     34 	@mkdir -p $(dir $@)
     35 	$(hide) $(APICHECK_COMMAND) -convert2xml $< $@
     36 
     37 # For CTS v1
     38 cts_api_xml_v1 := $(CTS_TESTCASES_OUT)/current.api
     39 $(cts_api_xml_v1):  $(LOCAL_BUILT_MODULE) | $(ACP)
     40 	$(call copy-file-to-new-target)
     41 
     42 $(CTS_TESTCASES_OUT)/CtsSignatureTestCases.xml: $(cts_api_xml_v1)
     43