blob: 9ddaf7dd1aebc66f438abdde6ee6eaa20f4967e2 [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: {
David Srbeckyd53f6062019-03-22 14:55:21 +000027 darwin: {
28 enabled: true,
29 },
David Brazdil2b9c35b2018-01-12 15:44:43 +000030 },
31
32 shared_libs: [
33 "libbase",
34 ],
35}
36
37art_cc_binary {
38 name: "hiddenapi",
39 defaults: ["hiddenapi-defaults"],
Martin Stjernholmc42db832020-02-25 16:02:07 +000040 target: {
41 host: {
42 // Override the prefer32 added by art_cc_binary when
43 // HOST_PREFER_32_BIT is in use. Note that this override cannot be
44 // in cc_defaults because it'd get overridden by the load hook even
45 // when it uses PrependProperties.
46 compile_multilib: "64",
47 },
48 },
David Brazdil2b9c35b2018-01-12 15:44:43 +000049 shared_libs: [
David Sehrfcbe15c2018-02-15 09:41:13 -080050 "libdexfile",
David Sehr1f010162018-05-15 08:59:32 -070051 "libartbase",
David Brazdil2b9c35b2018-01-12 15:44:43 +000052 ],
53}
54
55art_cc_binary {
56 name: "hiddenapid",
57 defaults: [
58 "art_debug_defaults",
59 "hiddenapi-defaults",
60 ],
61 shared_libs: [
David Sehrfcbe15c2018-02-15 09:41:13 -080062 "libdexfiled",
David Sehr1f010162018-05-15 08:59:32 -070063 "libartbased",
David Brazdil2b9c35b2018-01-12 15:44:43 +000064 ],
65}
66
67art_cc_test {
68 name: "art_hiddenapi_tests",
David Brazdil0baa7cc2018-01-17 09:59:08 +000069 host_supported: true,
70 device_supported: false,
David Brazdil2b9c35b2018-01-12 15:44:43 +000071 defaults: [
72 "art_gtest_defaults",
73 ],
74 srcs: ["hiddenapi_test.cc"],
75}