blob: 23a1548201d8f49d226509ba6d0634a5bb5cc7a9 [file] [log] [blame]
Colin Cross1f7f3bd2016-07-27 10:12:38 -07001//
2// Copyright (C) 2015 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
Andreas Gampe71da4872017-07-26 10:02:07 -070017cc_library_headers {
18 name: "libart_simulator_headers",
19 host_supported: true,
20 export_include_dirs: ["include"],
Ulyana Trafimoviche886d682020-07-16 15:09:38 +000021 apex_available: [
22 "com.android.art.release",
23 "com.android.art.debug",
24 ],
Andreas Gampe71da4872017-07-26 10:02:07 -070025}
26
Colin Cross1f7f3bd2016-07-27 10:12:38 -070027cc_defaults {
28 name: "libart_simulator_defaults",
Colin Crossfe6064a2016-08-30 13:49:26 -070029 host_supported: true,
Ulya Trafimovichc42dfac2020-07-17 14:33:02 +010030 device_supported: false,
Colin Crossfe6064a2016-08-30 13:49:26 -070031
Colin Cross1f7f3bd2016-07-27 10:12:38 -070032 defaults: ["art_defaults"],
33 srcs: [
34 "code_simulator.cc",
35 "code_simulator_arm64.cc",
36 ],
37 shared_libs: [
Andreas Gampe6e174102016-09-26 20:17:42 -070038 "libbase",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070039 "liblog",
40 ],
41 cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"],
Andreas Gampe71da4872017-07-26 10:02:07 -070042
Ulyana Trafimoviche886d682020-07-16 15:09:38 +000043 header_libs: [
44 "jni_platform_headers",
45 "libdexfile_all_headers",
46 "libart_runtime_headers_ndk",
47 "libart_simulator_headers",
48 ],
Colin Cross1f7f3bd2016-07-27 10:12:38 -070049}
50
Colin Crossfe6064a2016-08-30 13:49:26 -070051art_cc_library {
Colin Cross1f7f3bd2016-07-27 10:12:38 -070052 name: "libart-simulator",
53 defaults: ["libart_simulator_defaults"],
54 shared_libs: [
55 "libart",
David Sehr1f010162018-05-15 08:59:32 -070056 "libartbase",
Roland Levillain12dd9ae2018-11-06 13:32:06 +000057 "libvixl",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070058 ],
59}
60
Colin Crossfe6064a2016-08-30 13:49:26 -070061art_cc_library {
Colin Cross95aab052016-08-30 15:45:06 -070062 name: "libartd-simulator",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070063 defaults: [
Colin Cross1f7f3bd2016-07-27 10:12:38 -070064 "art_debug_defaults",
Colin Crossc5644062016-08-30 15:41:08 -070065 "libart_simulator_defaults",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070066 ],
67 shared_libs: [
68 "libartd",
David Sehr1f010162018-05-15 08:59:32 -070069 "libartbased",
Roland Levillain12dd9ae2018-11-06 13:32:06 +000070 "libvixld",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070071 ],
72}
Andreas Gampe71da4872017-07-26 10:02:07 -070073
74cc_defaults {
75 name: "libart_simulator_container_defaults",
76 host_supported: true,
77
78 defaults: ["art_defaults"],
79 srcs: [
80 "code_simulator_container.cc",
81 ],
82 shared_libs: [
83 "libbase",
84 ],
Ulyana Trafimoviche886d682020-07-16 15:09:38 +000085 header_libs: [
86 "jni_platform_headers",
87 "libdexfile_all_headers",
88 "libart_runtime_headers_ndk",
89 "libart_simulator_headers",
90 ],
Dan Willemsen2ca27802017-09-27 14:57:43 -070091 export_include_dirs: ["."], // TODO: Consider a proper separation.
Andreas Gampe71da4872017-07-26 10:02:07 -070092}
93
94art_cc_library {
95 name: "libart-simulator-container",
96 defaults: ["libart_simulator_container_defaults"],
97 shared_libs: [
David Sehr1f010162018-05-15 08:59:32 -070098 "libartbase",
Ulyana Trafimoviche886d682020-07-16 15:09:38 +000099 ],
100 apex_available: [
101 "com.android.art.release",
102 "com.android.art.debug",
Andreas Gampe71da4872017-07-26 10:02:07 -0700103 ],
104}
105
106art_cc_library {
107 name: "libartd-simulator-container",
108 defaults: [
109 "art_debug_defaults",
110 "libart_simulator_container_defaults",
111 ],
112 shared_libs: [
David Sehr1f010162018-05-15 08:59:32 -0700113 "libartbased",
Andreas Gampe71da4872017-07-26 10:02:07 -0700114 ],
Jiyong Park066dd9022019-12-19 02:11:59 +0000115 apex_available: [
116 "com.android.art.debug",
117 ],
Andreas Gampe71da4872017-07-26 10:02:07 -0700118}