Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 1 | # 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 | LOCAL_PATH := $(call my-dir) |
| 16 | |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 17 | # Functions to get the paths of the build outputs. |
| 18 | |
| 19 | define cts-get-lib-paths |
| 20 | $(foreach lib,$(1),$(HOST_OUT_JAVA_LIBRARIES)/$(lib).jar) |
| 21 | endef |
| 22 | |
Brett Chabot | 87f4451 | 2012-11-16 16:00:02 -0800 | [diff] [blame] | 23 | define cts-get-ui-lib-paths |
| 24 | $(foreach lib,$(1),$(CTS_TESTCASES_OUT)/$(lib).jar) |
| 25 | endef |
| 26 | |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 27 | define cts-get-native-paths |
Christopher Ferris | 286aca5 | 2014-10-15 18:08:41 -0700 | [diff] [blame] | 28 | $(foreach exe,$(1),$(call intermediates-dir-for,EXECUTABLES,$(exe),,,$(3))/$(exe)$(2)) |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 29 | endef |
| 30 | |
| 31 | define cts-get-package-paths |
| 32 | $(foreach pkg,$(1),$(CTS_TESTCASES_OUT)/$(pkg).apk) |
| 33 | endef |
| 34 | |
| 35 | define cts-get-test-xmls |
| 36 | $(foreach name,$(1),$(CTS_TESTCASES_OUT)/$(name).xml) |
| 37 | endef |
Svetoslav | 12c82d4 | 2013-12-20 12:34:52 -0800 | [diff] [blame] | 38 | |
| 39 | define cts-get-executable-paths |
| 40 | $(foreach executable,$(1),$(CTS_TESTCASES_OUT)/$(executable)) |
| 41 | endef |
Jarkko Pöyry | 59a8dbb | 2014-10-13 22:01:15 -0700 | [diff] [blame] | 42 | |
| 43 | define cts-get-deqp-test-xmls |
| 44 | $(foreach api,$(1),$(CTS_TESTCASES_OUT)/com.drawelements.deqp.$(api).xml) |
| 45 | endef |