blob: bbe6cc1ac0b0112465ac91707f9b8ee5f2e32c0a [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 },
27 include_dirs: ["art/cmdline"],
28}
29
30art_cc_binary {
31 name: "oatdump",
32 defaults: ["oatdump-defaults"],
33 shared_libs: [
34 "libart",
35 "libart-compiler",
36 "libart-disassembler",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070037 "libbase",
Colin Crossfe6064a2016-08-30 13:49:26 -070038 ],
39}
40
41art_cc_binary {
42 name: "oatdumpd",
43 defaults: [
44 "art_debug_defaults",
45 "oatdump-defaults",
46 ],
47 shared_libs: [
48 "libartd",
49 "libartd-compiler",
50 "libartd-disassembler",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070051 "libbase",
Colin Crossfe6064a2016-08-30 13:49:26 -070052 ],
53}
54
55art_cc_binary {
56 name: "oatdumps",
57 defaults: ["oatdump-defaults"],
Colin Crossd2c20802016-09-19 12:57:18 -070058 device_supported: false,
Colin Cross8dd90682016-09-08 16:43:27 -070059 target: {
60 darwin: {
61 enabled: false,
62 },
63 },
Colin Crossfe6064a2016-08-30 13:49:26 -070064 static_libs: [
65 "libart",
66 "libart-compiler",
67 "libart-disassembler",
68 "libvixl-arm",
69 "libvixl-arm64",
70 ] + art_static_dependencies,
71}
72
73art_cc_binary {
74 name: "oatdumpds",
75 defaults: [
76 "art_debug_defaults",
77 "oatdump-defaults",
78 ],
Colin Crossd2c20802016-09-19 12:57:18 -070079 device_supported: false,
Colin Cross8dd90682016-09-08 16:43:27 -070080 target: {
81 darwin: {
82 enabled: false,
83 },
84 },
Colin Crossfe6064a2016-08-30 13:49:26 -070085 static_libs: [
86 "libartd",
87 "libartd-compiler",
88 "libartd-disassembler",
89 "libvixld-arm",
90 "libvixld-arm64",
91 ] + art_static_dependencies,
92}
93
Colin Cross6e95dd52016-09-12 15:37:10 -070094art_cc_test {
95 name: "art_oatdump_tests",
96 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070097 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070098 ],
99 srcs: ["oatdump_test.cc"],
100}