blob: 1d7dd302c0d928c8f62fffefb23a5393325df413 [file] [log] [blame]
Alex Light673726b2018-05-21 14:19:15 -07001//
2// Copyright (C) 2018 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: "tracefast-defaults",
21 host_supported: true,
22 srcs: ["tracefast.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 // to be same ISA as what it is attached to.
27 compile_multilib: "both",
28
29 shared_libs: [
30 "libbase",
31 ],
32 target: {
33 android: {
34 shared_libs: [
35 "libcutils",
36 ],
37 },
38 darwin: {
39 enabled: false,
40 },
41 },
42 header_libs: [
43 "libnativehelper_header_only",
44 ],
45 multilib: {
46 lib32: {
47 suffix: "32",
48 },
49 lib64: {
50 suffix: "64",
51 },
52 },
53 symlink_preferred_arch: true,
54}
55
56cc_defaults {
57 name: "tracefast-interpreter-defaults",
58 defaults: ["tracefast-defaults"],
59 cflags: ["-DTRACEFAST_INTERPRETER=1"],
60}
61
62cc_defaults {
63 name: "tracefast-trampoline-defaults",
64 defaults: ["tracefast-defaults"],
65 cflags: ["-DTRACEFAST_TRAMPOLINE=1"],
66}
67
68art_cc_library {
69 name: "libtracefast-interpreter",
70 defaults: ["tracefast-interpreter-defaults"],
71 shared_libs: [
72 "libart",
73 "libartbase",
74 ],
75}
76
77art_cc_library {
78 name: "libtracefast-interpreterd",
79 defaults: [
80 "art_debug_defaults",
81 "tracefast-interpreter-defaults",
82 ],
83 shared_libs: [
84 "libartd",
85 "libartbased",
86 ],
87}
88
89art_cc_library {
90 name: "libtracefast-trampoline",
91 defaults: ["tracefast-trampoline-defaults"],
92 shared_libs: [
93 "libart",
94 "libartbase",
95 ],
96}
97
98art_cc_library {
99 name: "libtracefast-trampolined",
100 defaults: [
101 "art_debug_defaults",
102 "tracefast-trampoline-defaults",
103 ],
104 shared_libs: [
105 "libartd",
106 "libartbased",
107 ],
108}