1//
2// Copyright (C) 2012 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
17art_cc_defaults {
18    name: "libart-disassembler-defaults",
19    defaults: ["art_defaults"],
20    host_supported: true,
21    srcs: [
22        "disassembler.cc",
23    ],
24    codegen: {
25        arm: {
26            srcs: ["disassembler_arm.cc"],
27        },
28        arm64: {
29            srcs: ["disassembler_arm64.cc"],
30        },
31        x86: {
32            srcs: ["disassembler_x86.cc"],
33        },
34        x86_64: {
35            srcs: ["disassembler_x86.cc"],
36        },
37    },
38    shared_libs: [
39        "libbase",
40    ],
41    header_libs: [
42        "art_libartbase_headers",
43        "libart_runtime_headers_ndk",
44    ],
45    export_include_dirs: ["."],
46}
47
48art_cc_library {
49    name: "libart-disassembler",
50    defaults: ["libart-disassembler-defaults"],
51    shared_libs: [
52        // For disassembler_arm*.
53        "libvixl",
54    ],
55    apex_available: [
56        "com.android.art.release",
57        "com.android.art.debug",
58    ],
59}
60
61art_cc_library {
62    name: "libartd-disassembler",
63    defaults: [
64        "art_debug_defaults",
65        "libart-disassembler-defaults",
66    ],
67    shared_libs: [
68        // For disassembler_arm*.
69        "libvixld",
70    ],
71
72    apex_available: [
73        "com.android.art.release",
74        "com.android.art.debug",
75    ],
76}
77
78cc_library_headers {
79    name: "art_disassembler_headers",
80    host_supported: true,
81    export_include_dirs: [
82        ".",
83    ],
84
85    apex_available: [
86        "com.android.art.debug",
87        "com.android.art.release",
88    ],
89}
90