blob: d29319a68833ee2f7f3cc4a604e067f5e42c658c [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
Bob Badour9150de62021-02-26 03:22:24 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "art_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["art_license"],
24}
25
Andreas Gampe71da4872017-07-26 10:02:07 -070026cc_library_headers {
27 name: "libart_simulator_headers",
28 host_supported: true,
29 export_include_dirs: ["include"],
30}
31
Colin Cross1f7f3bd2016-07-27 10:12:38 -070032cc_defaults {
33 name: "libart_simulator_defaults",
Colin Crossfe6064a2016-08-30 13:49:26 -070034 host_supported: true,
Ulya Trafimovichc42dfac2020-07-17 14:33:02 +010035 device_supported: false,
Colin Crossfe6064a2016-08-30 13:49:26 -070036
Colin Cross1f7f3bd2016-07-27 10:12:38 -070037 defaults: ["art_defaults"],
38 srcs: [
39 "code_simulator.cc",
40 "code_simulator_arm64.cc",
41 ],
42 shared_libs: [
Andreas Gampe6e174102016-09-26 20:17:42 -070043 "libbase",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070044 "liblog",
45 ],
46 cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"],
Andreas Gampe71da4872017-07-26 10:02:07 -070047
Ulya Trafimovich5439f052020-07-29 10:03:46 +010048 header_libs: ["libart_simulator_headers"],
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",
Vladimir Marko053e1382021-05-05 16:07:27 +000057 ],
58 static_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +000059 "libvixl",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070060 ],
61}
62
Colin Crossfe6064a2016-08-30 13:49:26 -070063art_cc_library {
Colin Cross95aab052016-08-30 15:45:06 -070064 name: "libartd-simulator",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070065 defaults: [
Colin Cross1f7f3bd2016-07-27 10:12:38 -070066 "art_debug_defaults",
Colin Crossc5644062016-08-30 15:41:08 -070067 "libart_simulator_defaults",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070068 ],
69 shared_libs: [
70 "libartd",
David Sehr1f010162018-05-15 08:59:32 -070071 "libartbased",
Vladimir Marko053e1382021-05-05 16:07:27 +000072 ],
73 static_libs: [
Roland Levillain12dd9ae2018-11-06 13:32:06 +000074 "libvixld",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070075 ],
76}
Andreas Gampe71da4872017-07-26 10:02:07 -070077
78cc_defaults {
79 name: "libart_simulator_container_defaults",
80 host_supported: true,
81
82 defaults: ["art_defaults"],
83 srcs: [
84 "code_simulator_container.cc",
85 ],
86 shared_libs: [
87 "libbase",
88 ],
Ulya Trafimovich5439f052020-07-29 10:03:46 +010089
90 header_libs: ["libart_simulator_headers"],
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",
Ulya Trafimovich5439f052020-07-29 10:03:46 +010099 "libart",
Andreas Gampe71da4872017-07-26 10:02:07 -0700100 ],
101}
102
103art_cc_library {
104 name: "libartd-simulator-container",
105 defaults: [
106 "art_debug_defaults",
107 "libart_simulator_container_defaults",
108 ],
109 shared_libs: [
David Sehr1f010162018-05-15 08:59:32 -0700110 "libartbased",
Ulya Trafimovich5439f052020-07-29 10:03:46 +0100111 "libartd",
Andreas Gampe71da4872017-07-26 10:02:07 -0700112 ],
Jiyong Park066dd9022019-12-19 02:11:59 +0000113 apex_available: [
114 "com.android.art.debug",
115 ],
Andreas Gampe71da4872017-07-26 10:02:07 -0700116}