blob: 485172273446730278f9c25c62cf113ffc0fe442 [file] [log] [blame]
Colin Crossfe6064a2016-08-30 13:49:26 -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
17cc_defaults {
18 name: "oatdump-defaults",
19 defaults: ["art_defaults"],
20 host_supported: true,
21 srcs: ["oatdump.cc"],
22 target: {
23 android: {
24 shared_libs: ["libcutils"],
25 },
26 },
Andreas Gampe3157fc22017-08-23 09:43:46 -070027 header_libs: [
28 "art_cmdlineparser_headers",
29 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070030}
31
32art_cc_binary {
33 name: "oatdump",
34 defaults: ["oatdump-defaults"],
35 shared_libs: [
36 "libart",
37 "libart-compiler",
38 "libart-disassembler",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070039 "libbase",
Colin Crossfe6064a2016-08-30 13:49:26 -070040 ],
41}
42
43art_cc_binary {
44 name: "oatdumpd",
45 defaults: [
46 "art_debug_defaults",
47 "oatdump-defaults",
48 ],
49 shared_libs: [
50 "libartd",
51 "libartd-compiler",
52 "libartd-disassembler",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070053 "libbase",
Colin Crossfe6064a2016-08-30 13:49:26 -070054 ],
55}
56
57art_cc_binary {
58 name: "oatdumps",
Colin Crossd2c20802016-09-19 12:57:18 -070059 device_supported: false,
Roland Levillain7f07f552016-11-22 17:20:46 +000060 static_executable: true,
61 defaults: ["oatdump-defaults"],
Colin Cross8dd90682016-09-08 16:43:27 -070062 target: {
63 darwin: {
64 enabled: false,
65 },
66 },
Roland Levillain7f07f552016-11-22 17:20:46 +000067 ldflags: [
68 // We need this because GC stress mode makes use of
69 // _Unwind_GetIP and _Unwind_Backtrace and the symbols are also
70 // defined in libgcc_eh.a(unwind-dw2.o)
71 // TODO: Having this is not ideal as it might obscure errors.
72 // Try to get rid of it.
73 "-z muldefs",
74 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070075 static_libs: [
76 "libart",
77 "libart-compiler",
78 "libart-disassembler",
79 "libvixl-arm",
80 "libvixl-arm64",
81 ] + art_static_dependencies,
82}
83
84art_cc_binary {
85 name: "oatdumpds",
Roland Levillain7f07f552016-11-22 17:20:46 +000086 device_supported: false,
87 static_executable: true,
Colin Crossfe6064a2016-08-30 13:49:26 -070088 defaults: [
89 "art_debug_defaults",
90 "oatdump-defaults",
91 ],
Colin Cross8dd90682016-09-08 16:43:27 -070092 target: {
93 darwin: {
94 enabled: false,
95 },
96 },
Roland Levillain7f07f552016-11-22 17:20:46 +000097 ldflags: [
98 // We need this because GC stress mode makes use of
99 // _Unwind_GetIP and _Unwind_Backtrace and the symbols are also
100 // defined in libgcc_eh.a(unwind-dw2.o)
101 // TODO: Having this is not ideal as it might obscure errors.
102 // Try to get rid of it.
103 "-z muldefs",
104 ],
Colin Crossfe6064a2016-08-30 13:49:26 -0700105 static_libs: [
106 "libartd",
107 "libartd-compiler",
108 "libartd-disassembler",
109 "libvixld-arm",
110 "libvixld-arm64",
111 ] + art_static_dependencies,
112}
113
Colin Cross6e95dd52016-09-12 15:37:10 -0700114art_cc_test {
115 name: "art_oatdump_tests",
116 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700117 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -0700118 ],
Vladimir Marko1352f132017-04-28 15:28:29 +0100119 srcs: [
120 "oatdump_test.cc",
121 "oatdump_image_test.cc",
122 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700123}