1//
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
19package {
20    // See: http://go/android-license-faq
21    // A large-scale-change added 'default_applicable_licenses' to import
22    // all of the 'license_kinds' from "art_license"
23    // to get the below license kinds:
24    //   SPDX-license-identifier-Apache-2.0
25    default_applicable_licenses: ["art_license"],
26}
27
28cc_defaults {
29    name: "chainagents-base-defaults",
30    srcs: ["chainagents.cc"],
31    defaults: ["art_defaults"],
32
33    // Note that this tool needs to be built for both 32-bit and 64-bit since it requires
34    // to be same ISA as what it is attached to.
35    compile_multilib: "both",
36
37    header_libs: [
38        "libopenjdkjvmti_headers",
39        "libnativehelper_header_only",
40        "jni_headers",
41    ],
42}
43
44cc_defaults {
45    name: "chainagents-defaults",
46    host_supported: true,
47    shared_libs: [
48        "libbase",
49    ],
50    defaults: ["chainagents-base-defaults"],
51}
52
53art_cc_library {
54    name: "libchainagents",
55    defaults: ["chainagents-defaults"],
56}
57
58art_cc_library {
59    name: "libchainagentsd",
60    defaults: [
61        "art_debug_defaults",
62        "chainagents-defaults",
63    ],
64}
65
66cc_defaults {
67    name: "chainagents-static-defaults",
68    host_supported: false,
69    defaults: ["chainagents-base-defaults"],
70
71    shared_libs: [
72        "liblog",
73    ],
74    static_libs: [
75        "libbase_ndk",
76    ],
77    sdk_version: "current",
78    stl: "c++_static",
79}
80
81cc_library {
82    name: "libchainagentss",
83    defaults: ["chainagents-static-defaults"],
84}
85