blob: 02a51a667fc0157924b5cde848ee120a83d08058 [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 Cross8dd90682016-09-08 16:43:27 -070056 target: {
57 darwin: {
58 enabled: false,
59 },
60 },
Colin Crossfe6064a2016-08-30 13:49:26 -070061 static_libs: [
62 "libart",
63 "libart-compiler",
64 "libart-disassembler",
65 "libvixl-arm",
66 "libvixl-arm64",
67 ] + art_static_dependencies,
68}
69
70art_cc_binary {
71 name: "oatdumpds",
72 defaults: [
73 "art_debug_defaults",
74 "oatdump-defaults",
75 ],
Colin Cross8dd90682016-09-08 16:43:27 -070076 target: {
77 darwin: {
78 enabled: false,
79 },
80 },
Colin Crossfe6064a2016-08-30 13:49:26 -070081 static_libs: [
82 "libartd",
83 "libartd-compiler",
84 "libartd-disassembler",
85 "libvixld-arm",
86 "libvixld-arm64",
87 ] + art_static_dependencies,
88}
89
Colin Cross6e95dd52016-09-12 15:37:10 -070090art_cc_test {
91 name: "art_oatdump_tests",
92 defaults: [
93 "art_test_defaults",
94 ],
95 srcs: ["oatdump_test.cc"],
96}