Anton Hansson | 5559245 | 2019-11-28 11:38:13 +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 | 2337daf | 2019-12-16 11:47:20 +0000 | [diff] [blame] | 15 | package { |
| 16 | default_visibility: [":__subpackages__"], |
| 17 | } |
| 18 | |
Anton Hansson | 5559245 | 2019-11-28 11:38:13 +0000 | [diff] [blame] | 19 | apex { |
| 20 | name: "com.android.sdkext", |
Anton Hansson | fc33dde | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 21 | defaults: [ "com.android.sdkext-defaults" ], |
Anton Hansson | a82f161 | 2019-11-28 17:15:11 +0000 | [diff] [blame] | 22 | binaries: [ "derive_sdk" ], |
Anton Hansson | fc33dde | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 23 | prebuilts: [ "cur_sdkinfo" ], |
| 24 | manifest: "manifest.json", |
Colin Cross | 42a8478 | 2020-02-21 14:51:43 -0800 | [diff] [blame] | 25 | min_sdk_version: "current", |
Anton Hansson | fc33dde | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | apex_defaults { |
| 29 | name: "com.android.sdkext-defaults", |
Jiyong Park | 8201bdf | 2020-02-24 18:36:46 +0900 | [diff] [blame] | 30 | updatable: true, |
Jooyung Han | db38a2d | 2020-03-30 13:23:01 +0900 | [diff] [blame] | 31 | min_sdk_version: "R", |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 32 | java_libs: [ "framework-sdkextensions" ], |
Anton Hansson | 1911d7c | 2019-12-05 11:56:08 +0000 | [diff] [blame] | 33 | prebuilts: [ |
Anton Hansson | fc33dde | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 34 | "derive_sdk.rc", |
Anton Hansson | 1911d7c | 2019-12-05 11:56:08 +0000 | [diff] [blame] | 35 | ], |
Anton Hansson | 5559245 | 2019-11-28 11:38:13 +0000 | [diff] [blame] | 36 | key: "com.android.sdkext.key", |
| 37 | certificate: ":com.android.sdkext.certificate", |
| 38 | } |
| 39 | |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 40 | sdk { |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 41 | name: "sdkextensions-sdk", |
| 42 | java_header_libs: [ "framework-sdkextensions-stubs-systemapi" ], |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 43 | } |
| 44 | |
Anton Hansson | 5559245 | 2019-11-28 11:38:13 +0000 | [diff] [blame] | 45 | apex_key { |
| 46 | name: "com.android.sdkext.key", |
| 47 | public_key: "com.android.sdkext.avbpubkey", |
| 48 | private_key: "com.android.sdkext.pem", |
| 49 | } |
| 50 | |
| 51 | android_app_certificate { |
| 52 | name: "com.android.sdkext.certificate", |
| 53 | certificate: "com.android.sdkext", |
| 54 | } |
Anton Hansson | a82f161 | 2019-11-28 17:15:11 +0000 | [diff] [blame] | 55 | |
Anton Hansson | 8e764c9 | 2019-12-10 07:51:15 +0000 | [diff] [blame] | 56 | python_binary_host { |
| 57 | name: "gen_sdkinfo", |
| 58 | srcs: [ |
| 59 | "sdk.proto", |
| 60 | "gen_sdkinfo.py", |
| 61 | ], |
| 62 | proto: { |
| 63 | canonical_path_from_root: false, |
| 64 | }, |
| 65 | version: { |
| 66 | py3: { |
| 67 | embedded_launcher: true, |
| 68 | }, |
| 69 | }, |
| 70 | } |
| 71 | |
| 72 | gensrcs { |
| 73 | name: "cur_sdkinfo_src", |
| 74 | srcs: [""], |
| 75 | tools: [ "gen_sdkinfo" ], |
| 76 | cmd: "$(location) -v 0 -o $(out)", |
| 77 | } |
| 78 | |
| 79 | prebuilt_etc { |
| 80 | name: "cur_sdkinfo", |
| 81 | src: ":cur_sdkinfo_src", |
| 82 | filename: "sdkinfo.binarypb", |
| 83 | installable: false, |
| 84 | } |