• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15art_cc_defaults {
16    name: "libart-dexlayout-defaults",
17    defaults: ["art_defaults"],
18    host_supported: true,
19    srcs: [
20        "compact_dex_writer.cc",
21        "dexlayout.cc",
22        "dex_ir.cc",
23        "dex_ir_builder.cc",
24        "dex_verify.cc",
25        "dex_visualize.cc",
26        "dex_writer.cc",
27    ],
28    export_include_dirs: ["."],
29    shared_libs: [
30        "libbase",
31    ],
32    static_libs: ["libz"],
33}
34
35art_cc_library {
36    name: "libart-dexlayout",
37    defaults: [
38        "libart-dexlayout-defaults",
39        "dex2oat-pgo-defaults",
40    ],
41    shared_libs: [
42        "libart",
43        "libdexfile",
44    ],
45
46    target: {
47        android: {
48            lto: {
49                 thin: true,
50            },
51        },
52    },
53}
54
55art_cc_library {
56    name: "libartd-dexlayout",
57    defaults: [
58      "libart-dexlayout-defaults",
59      "art_debug_defaults",
60    ],
61    shared_libs: [
62        "libartd",
63        "libdexfiled",
64    ],
65}
66
67cc_defaults {
68    name: "dexlayout-defaults",
69    defaults: ["art_defaults"],
70    host_supported: true,
71    srcs: ["dexlayout_main.cc"],
72    shared_libs: [
73        "libbase",
74    ],
75}
76
77art_cc_binary {
78    name: "dexlayout",
79    defaults: ["dexlayout-defaults"],
80    shared_libs: [
81        "libart",
82        "libart-dexlayout",
83    ],
84}
85
86art_cc_binary {
87    name: "dexlayoutd",
88    defaults: [
89        "art_debug_defaults",
90        "dexlayout-defaults",
91    ],
92    shared_libs: [
93        "libartd",
94        "libartd-dexlayout",
95    ],
96}
97
98art_cc_test {
99    name: "art_dexlayout_tests",
100    defaults: ["art_gtest_defaults"],
101    shared_libs: ["libart-dexlayout"],
102    srcs: ["dexlayout_test.cc"],
103}
104
105art_cc_binary {
106    name: "dexdiag",
107    defaults: ["art_defaults"],
108    host_supported: true,
109    srcs: ["dexdiag.cc"],
110    cflags: ["-Wall"],
111    shared_libs: [
112        "libart",
113        "libart-dexlayout",
114        "libbase",
115    ],
116    target: {
117        android: {
118            shared_libs: [
119                "libpagemap",
120            ],
121        },
122    },
123}
124
125art_cc_test {
126    name: "art_dexdiag_tests",
127    host_supported: true,
128    defaults: [
129        "art_gtest_defaults",
130    ],
131    srcs: ["dexdiag_test.cc"],
132}
133