blob: 7837d669131779eeba89100bc38c9d3bd2baaac8 [file] [log] [blame]
Colin Crossc7376e02016-09-08 12:52:18 -07001//
2// Copyright (C) 2014 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
17// Build variants {target,host} x {debug,ndebug} x {32,64}
18
19cc_defaults {
20 name: "imgdiag-defaults",
21 host_supported: true,
22 srcs: ["imgdiag.cc"],
23 defaults: ["art_defaults"],
24
25 // Note that this tool needs to be built for both 32-bit and 64-bit since it requires
26 // that the image it's analyzing be the same ISA as the runtime ISA.
27 compile_multilib: "both",
28
29 shared_libs: ["libbacktrace"],
30 target: {
31 android: {
32 shared_libs: ["libcutils"],
33 },
34 host: {
35 shared_libs: ["libziparchive"],
36 },
37 },
38 include_dirs: [
39 "art/cmdline",
40 ],
41 multilib: {
42 lib32: {
43 suffix: "32",
44 },
45 lib64: {
46 suffix: "64",
47 },
48 },
49 symlink_preferred_arch: true,
50}
51
52art_cc_binary {
53 name: "imgdiag",
54 defaults: ["imgdiag-defaults"],
55 shared_libs: [
56 "libart",
57 "libart-compiler",
58 ],
59}
60
61art_cc_binary {
62 name: "imgdiagd",
63 defaults: [
64 "imgdiag-defaults",
65 "art_debug_defaults",
66 ],
67 shared_libs: [
68 "libartd",
69 "libartd-compiler",
70 ],
71}
Colin Cross6e95dd52016-09-12 15:37:10 -070072
73art_cc_test {
74 name: "art_imgdiag_tests",
75 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070076 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070077 ],
78 srcs: ["imgdiag_test.cc"],
79}