blob: f70ec0cc1ed9ce0ea3274a1bcc97d8a584749a51 [file] [log] [blame]
Brian Muramatsu88d32a82011-12-02 10:55:12 -08001# Copyright (C) 2011 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# Include this file to gain access to functions to build native CTS
16# test packages. Replace "include $(BUILD_EXECUTABLE)" with
17# "include $(BUILD_CTS_EXECUTABLE)".
18
19LOCAL_PATH := $(call my-dir)
20BUILD_CTS_EXECUTABLE := $(LOCAL_PATH)/tools/build/test_executable.mk
21
22CTS_NATIVE_XML_OUT := $(HOST_OUT)/cts-native-xml
23
24CTS_NATIVE_XML_GENERATOR := $(HOST_OUT_EXECUTABLES)/cts-native-xml-generator
25
26define cts-get-native-paths
Brian Muramatsu5a3f3e82011-12-14 14:37:21 -080027 $(foreach exe,$(1),$(call intermediates-dir-for,EXECUTABLES,$(exe))/$(exe))
Brian Muramatsu88d32a82011-12-02 10:55:12 -080028endef
29
30define cts-get-native-xmls
31 $(foreach exe,$(1),$(CTS_NATIVE_XML_OUT)/$(exe).xml)
32endef