Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 1 | // Copyright (C) 2019 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 | |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 15 | cc_defaults { |
| 16 | name: "derive_sdk-defaults", |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 17 | srcs: [ |
| 18 | "derive_sdk.cpp", |
| 19 | "sdk.proto", |
| 20 | ], |
| 21 | proto: { |
| 22 | type: "lite", |
Colin Cross | 0c88d80 | 2020-04-07 16:50:32 +0000 | [diff] [blame] | 23 | static: true, |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 24 | }, |
| 25 | sdk_version: "current", |
| 26 | stl: "c++_static", |
| 27 | shared_libs: [ "liblog" ], |
| 28 | static_libs: [ |
| 29 | "libbase_ndk", |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 30 | ], |
| 31 | } |
| 32 | |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 33 | cc_binary { |
| 34 | name: "derive_sdk", |
| 35 | defaults: [ "derive_sdk-defaults" ], |
| 36 | apex_available: [ "com.android.sdkext" ], |
| 37 | visibility: [ "//frameworks/base/apex/sdkextensions" ] |
| 38 | } |
| 39 | |
| 40 | // Work around testing using a 64-bit test suite on 32-bit test device by |
| 41 | // using a prefer32 version of derive_sdk in testing. |
| 42 | cc_binary { |
| 43 | name: "derive_sdk_prefer32", |
| 44 | defaults: [ "derive_sdk-defaults" ], |
| 45 | compile_multilib: "prefer32", |
| 46 | stem: "derive_sdk", |
| 47 | apex_available: [ "test_com.android.sdkext" ], |
Colin Cross | c9d9821 | 2020-04-08 15:57:57 -0700 | [diff] [blame^] | 48 | visibility: [ "//frameworks/base/apex/sdkextensions/testing" ], |
| 49 | installable: false, |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 50 | } |
| 51 | |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 52 | prebuilt_etc { |
| 53 | name: "derive_sdk.rc", |
| 54 | src: "derive_sdk.rc", |
| 55 | installable: false, |
| 56 | } |