blob: 9d6606916627c16138e3f0f3dd1eba4d4fa62624 [file] [log] [blame]
Alex Light6e163a82019-08-12 10:57:57 -07001//
2// Copyright (C) 2019 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: "chainagents-base-defaults",
21 srcs: ["chainagents.cc"],
22 defaults: ["art_defaults"],
23
24 // Note that this tool needs to be built for both 32-bit and 64-bit since it requires
25 // to be same ISA as what it is attached to.
26 compile_multilib: "both",
27
28 header_libs: [
29 "libopenjdkjvmti_headers",
30 "libnativehelper_header_only",
31 "jni_headers",
32 ],
Alex Light6e163a82019-08-12 10:57:57 -070033}
34
35cc_defaults {
36 name: "chainagents-defaults",
37 host_supported: true,
38 shared_libs: [
39 "libbase",
40 ],
41 defaults: ["chainagents-base-defaults"],
42}
43
44art_cc_library {
45 name: "libchainagents",
46 defaults: ["chainagents-defaults"],
47}
48
49art_cc_library {
50 name: "libchainagentsd",
51 defaults: [
52 "art_debug_defaults",
53 "chainagents-defaults",
54 ],
55}
56
57cc_defaults {
58 name: "chainagents-static-defaults",
59 host_supported: false,
60 defaults: ["chainagents-base-defaults"],
61
62 shared_libs: [
63 "liblog",
64 ],
65 static_libs: [
66 "libbase_ndk",
67 ],
68 sdk_version: "current",
69 stl: "c++_static",
70}
71
72cc_library {
73 name: "libchainagentss",
74 defaults: ["chainagents-static-defaults"],
75}