David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 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 | cc_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 | }, |
David Srbecky | d53f606 | 2019-03-22 14:55:21 +0000 | [diff] [blame] | 30 | darwin: { |
| 31 | enabled: true, |
| 32 | }, |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 33 | }, |
| 34 | |
| 35 | shared_libs: [ |
| 36 | "libbase", |
| 37 | ], |
| 38 | } |
| 39 | |
| 40 | art_cc_binary { |
| 41 | name: "hiddenapi", |
| 42 | defaults: ["hiddenapi-defaults"], |
| 43 | shared_libs: [ |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 44 | "libdexfile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 45 | "libartbase", |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 46 | ], |
| 47 | } |
| 48 | |
| 49 | art_cc_binary { |
| 50 | name: "hiddenapid", |
| 51 | defaults: [ |
| 52 | "art_debug_defaults", |
| 53 | "hiddenapi-defaults", |
| 54 | ], |
| 55 | shared_libs: [ |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 56 | "libdexfiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 57 | "libartbased", |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 58 | ], |
| 59 | } |
| 60 | |
| 61 | art_cc_test { |
| 62 | name: "art_hiddenapi_tests", |
David Brazdil | 0baa7cc | 2018-01-17 09:59:08 +0000 | [diff] [blame] | 63 | host_supported: true, |
| 64 | device_supported: false, |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 65 | defaults: [ |
| 66 | "art_gtest_defaults", |
| 67 | ], |
| 68 | srcs: ["hiddenapi_test.cc"], |
| 69 | } |