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", |
| 21 | manifest: "manifest.json", |
Anton Hansson | a82f161 | 2019-11-28 17:15:11 +0000 | [diff] [blame] | 22 | binaries: [ "derive_sdk" ], |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 23 | java_libs: [ "framework-sdkext" ], |
Anton Hansson | 1911d7c | 2019-12-05 11:56:08 +0000 | [diff] [blame] | 24 | prebuilts: [ |
| 25 | "com.android.sdkext.ldconfig", |
Anton Hansson | 8e764c9 | 2019-12-10 07:51:15 +0000 | [diff] [blame] | 26 | "cur_sdkinfo", |
Anton Hansson | ff172bb | 2019-12-04 16:06:41 +0000 | [diff] [blame] | 27 | "derive_sdk.rc", |
Anton Hansson | 1911d7c | 2019-12-05 11:56:08 +0000 | [diff] [blame] | 28 | ], |
Anton Hansson | 5559245 | 2019-11-28 11:38:13 +0000 | [diff] [blame] | 29 | key: "com.android.sdkext.key", |
| 30 | certificate: ":com.android.sdkext.certificate", |
| 31 | } |
| 32 | |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 33 | sdk { |
| 34 | name: "sdkext-sdk", |
Paul Duffin | 6bdaf90 | 2019-12-24 09:23:47 +0000 | [diff] [blame] | 35 | java_header_libs: [ "framework-sdkext-stubs-systemapi" ], |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 36 | } |
| 37 | |
Anton Hansson | 5559245 | 2019-11-28 11:38:13 +0000 | [diff] [blame] | 38 | apex_key { |
| 39 | name: "com.android.sdkext.key", |
| 40 | public_key: "com.android.sdkext.avbpubkey", |
| 41 | private_key: "com.android.sdkext.pem", |
| 42 | } |
| 43 | |
| 44 | android_app_certificate { |
| 45 | name: "com.android.sdkext.certificate", |
| 46 | certificate: "com.android.sdkext", |
| 47 | } |
Anton Hansson | a82f161 | 2019-11-28 17:15:11 +0000 | [diff] [blame] | 48 | |
| 49 | prebuilt_etc { |
| 50 | name: "com.android.sdkext.ldconfig", |
| 51 | src: "ld.config.txt", |
| 52 | filename: "ld.config.txt", |
| 53 | installable: false, |
| 54 | } |
Anton Hansson | 8e764c9 | 2019-12-10 07:51:15 +0000 | [diff] [blame] | 55 | |
| 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 | } |