blob: d672393310345347c9291ae5114f252736c4c1dc [file] [log] [blame]
Ian Rogersafd9acc2014-06-17 08:21:54 -07001#
2# Copyright (C) 2011 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17ifndef ANDROID_COMMON_PATH_MK
18ANDROID_COMMON_PATH_MK := true
19
20include art/build/Android.common.mk
21
22# Directory used for dalvik-cache on device.
23ART_TARGET_DALVIK_CACHE_DIR := /data/dalvik-cache
24
25# Directory used for gtests on device.
26ART_TARGET_NATIVETEST_DIR := /data/nativetest/art
27ART_TARGET_NATIVETEST_OUT := $(TARGET_OUT_DATA_NATIVE_TESTS)/art
28
29# Directory used for oat tests on device.
30ART_TARGET_TEST_DIR := /data/art-test
31ART_TARGET_TEST_OUT := $(TARGET_OUT_DATA)/art-test
32
33# Directory used for temporary test files on the host.
34ART_HOST_TEST_DIR := /tmp/test-art-$(shell echo $$PPID)
35
36# Core.oat location on the device.
37TARGET_CORE_OAT := $(ART_TARGET_TEST_DIR)/$(DEX2OAT_TARGET_ARCH)/core.oat
38ifdef TARGET_2ND_ARCH
392ND_TARGET_CORE_OAT := $(ART_TARGET_TEST_DIR)/$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_ARCH)/core.oat
40endif
41
42# Core.oat locations under the out directory.
43HOST_CORE_OAT_OUT := $(HOST_OUT_JAVA_LIBRARIES)/$(ART_HOST_ARCH)/core.oat
44ifneq ($(HOST_PREFER_32_BIT),true)
452ND_HOST_CORE_OAT_OUT := $(HOST_OUT_JAVA_LIBRARIES)/$(2ND_ART_HOST_ARCH)/core.oat
46endif
47TARGET_CORE_OAT_OUT := $(ART_TARGET_TEST_OUT)/$(DEX2OAT_TARGET_ARCH)/core.oat
48ifdef TARGET_2ND_ARCH
492ND_TARGET_CORE_OAT_OUT := $(ART_TARGET_TEST_OUT)/$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_ARCH)/core.oat
50endif
51
52# Core.art locations under the out directory.
53HOST_CORE_IMG_OUT := $(HOST_OUT_JAVA_LIBRARIES)/$(ART_HOST_ARCH)/core.art
54ifneq ($(HOST_PREFER_32_BIT),true)
552ND_HOST_CORE_IMG_OUT := $(HOST_OUT_JAVA_LIBRARIES)/$(2ND_ART_HOST_ARCH)/core.art
56endif
57TARGET_CORE_IMG_OUT := $(ART_TARGET_TEST_OUT)/$(DEX2OAT_TARGET_ARCH)/core.art
58ifdef TARGET_2ND_ARCH
592ND_TARGET_CORE_IMG_OUT := $(ART_TARGET_TEST_OUT)/$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_ARCH)/core.art
60endif
61
62# Oat location of core.art.
63HOST_CORE_IMG_LOCATION := $(HOST_OUT_JAVA_LIBRARIES)/core.art
64TARGET_CORE_IMG_LOCATION := $(ART_TARGET_TEST_OUT)/core.art
65
66# Jar files for core.art.
67TARGET_CORE_JARS := core-libart conscrypt okhttp core-junit bouncycastle
68HOST_CORE_JARS := $(addsuffix -hostdex,$(TARGET_CORE_JARS))
69
70HOST_CORE_DEX_LOCATIONS := $(foreach jar,$(HOST_CORE_JARS), $(HOST_OUT_JAVA_LIBRARIES)/$(jar).jar)
71TARGET_CORE_DEX_LOCATIONS := $(foreach jar,$(TARGET_CORE_JARS),/$(DEXPREOPT_BOOT_JAR_DIR)/$(jar).jar)
72
73HOST_CORE_DEX_FILES := $(foreach jar,$(HOST_CORE_JARS), $(call intermediates-dir-for,JAVA_LIBRARIES,$(jar),t,COMMON)/javalib.jar)
74TARGET_CORE_DEX_FILES := $(foreach jar,$(TARGET_CORE_JARS),$(call intermediates-dir-for,JAVA_LIBRARIES,$(jar), ,COMMON)/javalib.jar)
75
76endif # ANDROID_COMMON_PATH_MK