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: "fieldnull-base-defaults",
20    srcs: ["fieldnull.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        "jni_headers",
28        "libopenjdkjvmti_headers",
29    ],
30}
31
32cc_defaults {
33    name: "fieldnull-defaults",
34    host_supported: true,
35    shared_libs: [
36        "libbase",
37    ],
38    defaults: ["fieldnull-base-defaults"],
39}
40
41cc_defaults {
42    name: "fieldnull-static-defaults",
43    host_supported: false,
44    defaults: ["fieldnull-base-defaults"],
45
46    shared_libs: [
47        "liblog",
48    ],
49    static_libs: [
50        "libbase_ndk",
51    ],
52    sdk_version: "current",
53    stl: "c++_static",
54}
55
56cc_library {
57    name: "libfieldnulls",
58    defaults: ["fieldnull-static-defaults"],
59}
60
61art_cc_library {
62    name: "libfieldnull",
63    defaults: ["fieldnull-defaults"],
64}
65
66art_cc_library {
67    name: "libfieldnulld",
68    defaults: [
69        "art_debug_defaults",
70        "fieldnull-defaults",
71    ],
72}
73