42 lines
1.5 KiB
Makefile
42 lines
1.5 KiB
Makefile
# Copyright (C) 2015 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# We define this in a subdir so that it won't pick up the parent's Android.xml by default.
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# current api, in XML format.
|
|
# ============================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := cts-current-api
|
|
LOCAL_MODULE_STEM := current.api
|
|
LOCAL_MODULE_CLASS := ETC
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_ETC)
|
|
|
|
# Tag this module as a cts test artifact
|
|
LOCAL_COMPATIBILITY_SUITE := cts
|
|
|
|
include $(BUILD_SYSTEM)/base_rules.mk
|
|
$(LOCAL_BUILT_MODULE) : frameworks/base/api/current.txt | $(APICHECK)
|
|
@echo "Convert API file $@"
|
|
@mkdir -p $(dir $@)
|
|
$(hide) $(APICHECK_COMMAND) -convert2xml $< $@
|
|
|
|
# For CTS v1
|
|
cts_api_xml_v1 := $(CTS_TESTCASES_OUT)/current.api
|
|
$(cts_api_xml_v1): $(LOCAL_BUILT_MODULE) | $(ACP)
|
|
$(call copy-file-to-new-target)
|
|
|
|
$(CTS_TESTCASES_OUT)/CtsSignatureTestCases.xml: $(cts_api_xml_v1)
|