blob: 87a811e2f389faf6acd00d8e31ec91791b8a6228 [file] [log] [blame]
Anton Hanssonda4972f2020-01-08 09:48:18 +00001// 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
15package {
16 default_visibility: [":__subpackages__"],
Bob Badourbe5b7072021-02-12 14:50:30 -080017 default_applicable_licenses: ["Android-Apache-2.0"],
Anton Hanssonda4972f2020-01-08 09:48:18 +000018}
19
20apex {
21 name: "com.android.sdkext",
Anton Hansson36e2b132019-12-19 12:10:53 +000022 defaults: [ "com.android.sdkext-defaults" ],
Artur Satayevbb44bdc2021-03-01 23:47:10 +000023 binaries: [
24 "derive_classpath",
25 "derive_sdk",
26 ],
Anton Hanssonda072c32020-05-28 17:30:40 +010027 java_libs: [ "framework-sdkextensions" ],
Anton Hansson16097ea2021-01-12 20:34:32 +000028 prebuilts: [
29 "cur_sdkinfo",
30 "extensions_db",
31 ],
Anton Hansson36e2b132019-12-19 12:10:53 +000032 manifest: "manifest.json",
Nikita Ioffe10c87182020-10-20 16:07:01 +010033 min_sdk_version: "30",
Anton Hansson36e2b132019-12-19 12:10:53 +000034}
35
36apex_defaults {
37 name: "com.android.sdkext-defaults",
Jiyong Park78ad7d42020-02-24 18:36:46 +090038 updatable: true,
Nikita Ioffe10c87182020-10-20 16:07:01 +010039 min_sdk_version: "30",
Anton Hanssonda4972f2020-01-08 09:48:18 +000040 prebuilts: [
Artur Satayevbb44bdc2021-03-01 23:47:10 +000041 "derive_classpath.rc",
Anton Hansson36e2b132019-12-19 12:10:53 +000042 "derive_sdk.rc",
Anton Hanssonda4972f2020-01-08 09:48:18 +000043 ],
44 key: "com.android.sdkext.key",
45 certificate: ":com.android.sdkext.certificate",
46}
47
Anton Hanssonda4972f2020-01-08 09:48:18 +000048apex_key {
49 name: "com.android.sdkext.key",
50 public_key: "com.android.sdkext.avbpubkey",
51 private_key: "com.android.sdkext.pem",
52}
53
54android_app_certificate {
55 name: "com.android.sdkext.certificate",
56 certificate: "com.android.sdkext",
57}
58
Anton Hanssonda4972f2020-01-08 09:48:18 +000059python_binary_host {
60 name: "gen_sdkinfo",
Anton Hansson502b7752021-01-06 12:16:54 +000061 srcs: ["gen_sdkinfo.py"],
62 libs: ["sdk_proto_python"],
Anton Hanssonda4972f2020-01-08 09:48:18 +000063 version: {
64 py3: {
65 embedded_launcher: true,
66 },
67 },
68}
69
70gensrcs {
71 name: "cur_sdkinfo_src",
72 srcs: [""],
73 tools: [ "gen_sdkinfo" ],
74 cmd: "$(location) -v 0 -o $(out)",
75}
76
77prebuilt_etc {
78 name: "cur_sdkinfo",
79 src: ":cur_sdkinfo_src",
80 filename: "sdkinfo.binarypb",
81 installable: false,
82}
Anton Hansson966175d2020-11-09 15:03:34 +000083
84sdk {
85 name: "sdkextensions-sdk",
86 java_sdk_libs: ["framework-sdkextensions"],
87}