blob: 74b5a900b454fdbd70c90a9663821ec49f2a736a [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"],
21}
22
Colin Cross1f7f3bd2016-07-27 10:12:38 -070023cc_defaults {
24 name: "libart_simulator_defaults",
Colin Crossfe6064a2016-08-30 13:49:26 -070025 host_supported: true,
26 device_supported: false,
27
Colin Cross1f7f3bd2016-07-27 10:12:38 -070028 defaults: ["art_defaults"],
29 srcs: [
30 "code_simulator.cc",
31 "code_simulator_arm64.cc",
32 ],
33 shared_libs: [
Andreas Gampe6e174102016-09-26 20:17:42 -070034 "libbase",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070035 "liblog",
36 ],
37 cflags: ["-DVIXL_INCLUDE_SIMULATOR_AARCH64"],
Andreas Gampe71da4872017-07-26 10:02:07 -070038
39 header_libs: ["libart_simulator_headers"],
Colin Cross1f7f3bd2016-07-27 10:12:38 -070040}
41
Colin Crossfe6064a2016-08-30 13:49:26 -070042art_cc_library {
Colin Cross1f7f3bd2016-07-27 10:12:38 -070043 name: "libart-simulator",
44 defaults: ["libart_simulator_defaults"],
45 shared_libs: [
46 "libart",
47 "libvixl-arm64",
48 ],
49}
50
Colin Crossfe6064a2016-08-30 13:49:26 -070051art_cc_library {
Colin Cross95aab052016-08-30 15:45:06 -070052 name: "libartd-simulator",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070053 defaults: [
Colin Cross1f7f3bd2016-07-27 10:12:38 -070054 "art_debug_defaults",
Colin Crossc5644062016-08-30 15:41:08 -070055 "libart_simulator_defaults",
Colin Cross1f7f3bd2016-07-27 10:12:38 -070056 ],
57 shared_libs: [
58 "libartd",
59 "libvixld-arm64",
60 ],
61}
Andreas Gampe71da4872017-07-26 10:02:07 -070062
63cc_defaults {
64 name: "libart_simulator_container_defaults",
65 host_supported: true,
66
67 defaults: ["art_defaults"],
68 srcs: [
69 "code_simulator_container.cc",
70 ],
71 shared_libs: [
72 "libbase",
73 ],
74
75 header_libs: ["libart_simulator_headers"],
Dan Willemsen2ca27802017-09-27 14:57:43 -070076 export_include_dirs: ["."], // TODO: Consider a proper separation.
Andreas Gampe71da4872017-07-26 10:02:07 -070077}
78
79art_cc_library {
80 name: "libart-simulator-container",
81 defaults: ["libart_simulator_container_defaults"],
82 shared_libs: [
83 "libart",
84 ],
85}
86
87art_cc_library {
88 name: "libartd-simulator-container",
89 defaults: [
90 "art_debug_defaults",
91 "libart_simulator_container_defaults",
92 ],
93 shared_libs: [
94 "libartd",
95 ],
96}