blob: 71e276db10309ec1fdd413aac385a2c97bda8fbd [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",
David Sehr0225f8e2018-01-31 08:52:24 +000039 "libdexfile",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070040 "libbase",
Colin Crossfe6064a2016-08-30 13:49:26 -070041 ],
42}
43
44art_cc_binary {
45 name: "oatdumpd",
46 defaults: [
47 "art_debug_defaults",
48 "oatdump-defaults",
49 ],
50 shared_libs: [
51 "libartd",
52 "libartd-compiler",
53 "libartd-disassembler",
David Sehrfcbe15c2018-02-15 09:41:13 -080054 "libdexfiled",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070055 "libbase",
Colin Crossfe6064a2016-08-30 13:49:26 -070056 ],
57}
58
59art_cc_binary {
60 name: "oatdumps",
Colin Crossd2c20802016-09-19 12:57:18 -070061 device_supported: false,
Roland Levillain7f07f552016-11-22 17:20:46 +000062 static_executable: true,
63 defaults: ["oatdump-defaults"],
Colin Cross8dd90682016-09-08 16:43:27 -070064 target: {
65 darwin: {
66 enabled: false,
67 },
68 },
Roland Levillain7f07f552016-11-22 17:20:46 +000069 ldflags: [
70 // We need this because GC stress mode makes use of
71 // _Unwind_GetIP and _Unwind_Backtrace and the symbols are also
72 // defined in libgcc_eh.a(unwind-dw2.o)
73 // TODO: Having this is not ideal as it might obscure errors.
74 // Try to get rid of it.
75 "-z muldefs",
76 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070077 static_libs: [
78 "libart",
David Sehrfcbe15c2018-02-15 09:41:13 -080079 "libdexfile",
Colin Crossfe6064a2016-08-30 13:49:26 -070080 "libart-compiler",
81 "libart-disassembler",
82 "libvixl-arm",
83 "libvixl-arm64",
84 ] + art_static_dependencies,
85}
86
87art_cc_binary {
88 name: "oatdumpds",
Roland Levillain7f07f552016-11-22 17:20:46 +000089 device_supported: false,
90 static_executable: true,
Colin Crossfe6064a2016-08-30 13:49:26 -070091 defaults: [
92 "art_debug_defaults",
93 "oatdump-defaults",
94 ],
Colin Cross8dd90682016-09-08 16:43:27 -070095 target: {
96 darwin: {
97 enabled: false,
98 },
99 },
Roland Levillain7f07f552016-11-22 17:20:46 +0000100 ldflags: [
101 // We need this because GC stress mode makes use of
102 // _Unwind_GetIP and _Unwind_Backtrace and the symbols are also
103 // defined in libgcc_eh.a(unwind-dw2.o)
104 // TODO: Having this is not ideal as it might obscure errors.
105 // Try to get rid of it.
106 "-z muldefs",
107 ],
Colin Crossfe6064a2016-08-30 13:49:26 -0700108 static_libs: [
109 "libartd",
David Sehrfcbe15c2018-02-15 09:41:13 -0800110 "libdexfiled",
Colin Crossfe6064a2016-08-30 13:49:26 -0700111 "libartd-compiler",
112 "libartd-disassembler",
113 "libvixld-arm",
114 "libvixld-arm64",
115 ] + art_static_dependencies,
116}
117
Colin Cross6e95dd52016-09-12 15:37:10 -0700118art_cc_test {
119 name: "art_oatdump_tests",
120 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700121 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -0700122 ],
Vladimir Marko1352f132017-04-28 15:28:29 +0100123 srcs: [
Vladimir Marko421087b2018-02-27 11:00:17 +0000124 "oatdump_app_test.cc",
Vladimir Marko1352f132017-04-28 15:28:29 +0100125 "oatdump_test.cc",
126 "oatdump_image_test.cc",
127 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700128}