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 | |
| 15 | package { |
| 16 | default_visibility: [":__subpackages__"], |
Bob Badour | be5b707 | 2021-02-12 14:50:30 -0800 | [diff] [blame] | 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | apex { |
| 21 | name: "com.android.sdkext", |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 22 | defaults: [ "com.android.sdkext-defaults" ], |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 23 | binaries: [ "derive_sdk" ], |
Anton Hansson | da072c3 | 2020-05-28 17:30:40 +0100 | [diff] [blame] | 24 | java_libs: [ "framework-sdkextensions" ], |
Anton Hansson | 16097ea | 2021-01-12 20:34:32 +0000 | [diff] [blame] | 25 | prebuilts: [ |
| 26 | "cur_sdkinfo", |
| 27 | "extensions_db", |
| 28 | ], |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 29 | manifest: "manifest.json", |
Nikita Ioffe | 10c8718 | 2020-10-20 16:07:01 +0100 | [diff] [blame] | 30 | min_sdk_version: "30", |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | apex_defaults { |
| 34 | name: "com.android.sdkext-defaults", |
Jiyong Park | 78ad7d4 | 2020-02-24 18:36:46 +0900 | [diff] [blame] | 35 | updatable: true, |
Nikita Ioffe | 10c8718 | 2020-10-20 16:07:01 +0100 | [diff] [blame] | 36 | min_sdk_version: "30", |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 37 | prebuilts: [ |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 38 | "derive_sdk.rc", |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 39 | ], |
| 40 | key: "com.android.sdkext.key", |
| 41 | certificate: ":com.android.sdkext.certificate", |
| 42 | } |
| 43 | |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 44 | apex_key { |
| 45 | name: "com.android.sdkext.key", |
| 46 | public_key: "com.android.sdkext.avbpubkey", |
| 47 | private_key: "com.android.sdkext.pem", |
| 48 | } |
| 49 | |
| 50 | android_app_certificate { |
| 51 | name: "com.android.sdkext.certificate", |
| 52 | certificate: "com.android.sdkext", |
| 53 | } |
| 54 | |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 55 | python_binary_host { |
| 56 | name: "gen_sdkinfo", |
Anton Hansson | 502b775 | 2021-01-06 12:16:54 +0000 | [diff] [blame] | 57 | srcs: ["gen_sdkinfo.py"], |
| 58 | libs: ["sdk_proto_python"], |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 59 | version: { |
| 60 | py3: { |
| 61 | embedded_launcher: true, |
| 62 | }, |
| 63 | }, |
| 64 | } |
| 65 | |
| 66 | gensrcs { |
| 67 | name: "cur_sdkinfo_src", |
| 68 | srcs: [""], |
| 69 | tools: [ "gen_sdkinfo" ], |
| 70 | cmd: "$(location) -v 0 -o $(out)", |
| 71 | } |
| 72 | |
| 73 | prebuilt_etc { |
| 74 | name: "cur_sdkinfo", |
| 75 | src: ":cur_sdkinfo_src", |
| 76 | filename: "sdkinfo.binarypb", |
| 77 | installable: false, |
| 78 | } |
Anton Hansson | 966175d | 2020-11-09 15:03:34 +0000 | [diff] [blame] | 79 | |
| 80 | sdk { |
| 81 | name: "sdkextensions-sdk", |
| 82 | java_sdk_libs: ["framework-sdkextensions"], |
| 83 | } |