1//
2// Copyright (C) 2017 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: "jitload-defaults",
21    host_supported: true,
22    srcs: [
23        "jitload.cc",
24    ],
25    defaults: ["art_defaults"],
26
27    // Note that this tool needs to be built for both 32-bit and 64-bit since it requires
28    // to be same ISA as what it is attached to.
29    compile_multilib: "both",
30
31    shared_libs: [
32        "libbase",
33    ],
34    target: {
35        android: {
36        },
37        host: {
38        },
39    },
40    header_libs: [
41        "jni_headers",
42        "libopenjdkjvmti_headers",
43    ],
44}
45
46art_cc_library {
47    name: "libjitload",
48    defaults: ["jitload-defaults"],
49    shared_libs: [
50        "libart",
51        "libdexfile",
52        "libprofile",
53        "libartbase",
54    ],
55}
56
57art_cc_library {
58    name: "libjitloadd",
59    defaults: [
60        "art_debug_defaults",
61        "jitload-defaults",
62    ],
63    shared_libs: [
64        "libartd",
65        "libdexfiled",
66        "libprofiled",
67        "libartbased",
68    ],
69}
70
71//art_cc_test {
72//    name: "art_titrace_tests",
73//    defaults: [
74//        "art_gtest_defaults",
75//    ],
76//    srcs: ["titrace_test.cc"],
77//}
78