Anton Hansson | 1b7f568 | 2019-12-19 12:10:53 +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 | |
| 15 | apex { |
| 16 | name: "test_com.android.sdkext", |
| 17 | visibility: [ "//system/apex/tests" ], |
| 18 | defaults: ["com.android.sdkext-defaults"], |
| 19 | manifest: "test_manifest.json", |
| 20 | prebuilts: [ "sdkinfo_45" ], |
| 21 | file_contexts: ":com.android.sdkext-file_contexts", |
| 22 | installable: false, // Should never be installed on the systemimage |
| 23 | multilib: { |
| 24 | prefer32: { |
| 25 | binaries: ["derive_sdk_prefer32"], |
| 26 | }, |
| 27 | }, |
| 28 | // The automated test infra ends up building this apex for 64+32-bit and |
| 29 | // then installs it on a 32-bit-only device. Work around this weirdness |
| 30 | // by preferring 32-bit. |
| 31 | compile_multilib: "prefer32", |
| 32 | } |
| 33 | |
| 34 | genrule { |
| 35 | name: "sdkinfo_45_src", |
| 36 | out: [ "sdkinfo.binarypb" ], |
| 37 | tools: [ "gen_sdkinfo" ], |
| 38 | cmd: "$(location) -v 45 -o $(out)", |
| 39 | } |
| 40 | |
| 41 | prebuilt_etc { |
| 42 | name: "sdkinfo_45", |
| 43 | src: ":sdkinfo_45_src", |
| 44 | filename: "sdkinfo.binarypb", |
| 45 | installable: false, |
| 46 | } |