1//
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}
18cc_defaults {
19    name: "ti-alloc-sample-base-defaults",
20    srcs: ["ti_alloc_sample.cc"],
21    defaults: ["art_defaults"],
22
23    // Note that this tool needs to be built for both 32-bit and 64-bit since it requires
24    // to be same ISA as what it is attached to.
25    compile_multilib: "both",
26    header_libs: [
27        "libopenjdkjvmti_headers",
28        "libnativehelper_header_only",
29        "jni_headers",
30    ],
31}
32
33cc_defaults {
34    name: "ti-alloc-sample-defaults",
35    host_supported: true,
36    shared_libs: [
37        "libbase",
38    ],
39    defaults: ["ti-alloc-sample-base-defaults"],
40}
41
42cc_defaults {
43    name: "ti-alloc-sample-static-defaults",
44    host_supported: false,
45    defaults: ["ti-alloc-sample-base-defaults"],
46
47    shared_libs: [
48        "liblog",
49    ],
50    static_libs: [
51        "libbase_ndk",
52    ],
53    sdk_version: "current",
54    stl: "c++_static",
55}
56
57art_cc_library {
58    name: "libtiallocsamples",
59    defaults: ["ti-alloc-sample-static-defaults"],
60}
61
62art_cc_library {
63    name: "libtiallocsample",
64    defaults: ["ti-alloc-sample-defaults"],
65}
66
67art_cc_library {
68    name: "libtiallocsampled",
69    defaults: [
70        "art_debug_defaults",
71        "ti-alloc-sample-defaults",
72    ],
73}
74