blob: 3b364b67c305886f02611d1dee39ae32f9a0061c [file] [log] [blame]
David Brazdil2b9c35b2018-01-12 15:44:43 +00001//
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
17cc_defaults {
18 name: "hiddenapi-defaults",
19 host_supported: true,
20 device_supported: false,
21 defaults: ["art_defaults"],
22 srcs: [
23 "hiddenapi.cc",
24 ],
25
26 target: {
27 android: {
28 compile_multilib: "prefer32",
29 },
30 },
31
32 shared_libs: [
33 "libbase",
34 ],
35}
36
37art_cc_binary {
38 name: "hiddenapi",
39 defaults: ["hiddenapi-defaults"],
40 shared_libs: [
41 "libart",
David Sehrfcbe15c2018-02-15 09:41:13 -080042 "libdexfile",
David Sehr1f010162018-05-15 08:59:32 -070043 "libartbase",
David Brazdil2b9c35b2018-01-12 15:44:43 +000044 ],
45}
46
47art_cc_binary {
48 name: "hiddenapid",
49 defaults: [
50 "art_debug_defaults",
51 "hiddenapi-defaults",
52 ],
53 shared_libs: [
54 "libartd",
David Sehrfcbe15c2018-02-15 09:41:13 -080055 "libdexfiled",
David Sehr1f010162018-05-15 08:59:32 -070056 "libartbased",
David Brazdil2b9c35b2018-01-12 15:44:43 +000057 ],
58}
59
60art_cc_test {
61 name: "art_hiddenapi_tests",
David Brazdil0baa7cc2018-01-17 09:59:08 +000062 host_supported: true,
63 device_supported: false,
David Brazdil2b9c35b2018-01-12 15:44:43 +000064 defaults: [
65 "art_gtest_defaults",
66 ],
67 srcs: ["hiddenapi_test.cc"],
68}