blob: dd6331c24bd7605587e59049745801f5e55d3b94 [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",
37 ],
38}
39
40art_cc_binary {
41 name: "oatdumpd",
42 defaults: [
43 "art_debug_defaults",
44 "oatdump-defaults",
45 ],
46 shared_libs: [
47 "libartd",
48 "libartd-compiler",
49 "libartd-disassembler",
50 ],
51}
52
53art_cc_binary {
54 name: "oatdumps",
55 defaults: ["oatdump-defaults"],
Colin Crossd2c20802016-09-19 12:57:18 -070056 device_supported: false,
Colin Cross8dd90682016-09-08 16:43:27 -070057 target: {
58 darwin: {
59 enabled: false,
60 },
61 },
Colin Crossfe6064a2016-08-30 13:49:26 -070062 static_libs: [
63 "libart",
64 "libart-compiler",
65 "libart-disassembler",
66 "libvixl-arm",
67 "libvixl-arm64",
68 ] + art_static_dependencies,
69}
70
71art_cc_binary {
72 name: "oatdumpds",
73 defaults: [
74 "art_debug_defaults",
75 "oatdump-defaults",
76 ],
Colin Crossd2c20802016-09-19 12:57:18 -070077 device_supported: false,
Colin Cross8dd90682016-09-08 16:43:27 -070078 target: {
79 darwin: {
80 enabled: false,
81 },
82 },
Colin Crossfe6064a2016-08-30 13:49:26 -070083 static_libs: [
84 "libartd",
85 "libartd-compiler",
86 "libartd-disassembler",
87 "libvixld-arm",
88 "libvixld-arm64",
89 ] + art_static_dependencies,
90}
91
Colin Cross6e95dd52016-09-12 15:37:10 -070092art_cc_test {
93 name: "art_oatdump_tests",
94 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070095 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070096 ],
97 srcs: ["oatdump_test.cc"],
98}