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        "libopenjdkjvmti_headers",
42    ],
43    multilib: {
44        lib32: {
45            suffix: "32",
46        },
47        lib64: {
48            suffix: "64",
49        },
50    },
51    symlink_preferred_arch: true,
52}
53
54art_cc_library {
55    name: "libjitload",
56    defaults: ["jitload-defaults"],
57    shared_libs: [
58        "libart",
59        "libdexfile",
60        "libprofile",
61        "libartbase",
62    ],
63}
64
65art_cc_library {
66    name: "libjitloadd",
67    defaults: [
68        "art_debug_defaults",
69        "jitload-defaults",
70    ],
71    shared_libs: [
72        "libartd",
73        "libdexfiled",
74        "libprofiled",
75        "libartbased",
76    ],
77}
78
79//art_cc_test {
80//    name: "art_titrace_tests",
81//    defaults: [
82//        "art_gtest_defaults",
83//    ],
84//    srcs: ["titrace_test.cc"],
85//}
86