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}
18cc_defaults {
19    name: "forceredefine-defaults",
20    host_supported: true,
21    srcs: ["forceredefine.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    shared_libs: [
29        "libz",
30        "liblog",
31    ],
32    header_libs: [
33        "libopenjdkjvmti_headers",
34        "libnativehelper_header_only",
35        "jni_headers",
36    ],
37    sdk_version: "current",
38    stl: "libc++_static",
39    target: {
40        android: {
41            static_libs: [
42                "slicer_ndk_no_rtti",
43                "libbase_ndk",
44            ],
45        },
46        host: {
47            static_libs: [
48                "slicer_no_rtti",
49            ],
50            shared_libs: [
51                "libbase",
52            ],
53        },
54    },
55}
56
57art_cc_library {
58    name: "libforceredefine",
59    defaults: ["forceredefine-defaults"],
60}
61
62art_cc_library {
63    name: "libforceredefined",
64    defaults: [
65        "art_debug_defaults",
66        "forceredefine-defaults",
67    ],
68}
69