blob: f62f167cdcfa96c8f76986daeb2b8dc97dc95a8d [file] [log] [blame]
Anton Hansson55592452019-11-28 11:38:13 +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
Anton Hansson2337daf2019-12-16 11:47:20 +000015package {
16 default_visibility: [":__subpackages__"],
17}
18
Anton Hansson55592452019-11-28 11:38:13 +000019apex {
20 name: "com.android.sdkext",
21 manifest: "manifest.json",
Anton Hanssona82f1612019-11-28 17:15:11 +000022 binaries: [ "derive_sdk" ],
Anton Hansson4ec07fa2019-11-08 15:18:04 +000023 java_libs: [ "framework-sdkext" ],
Anton Hansson1911d7c2019-12-05 11:56:08 +000024 prebuilts: [
25 "com.android.sdkext.ldconfig",
Anton Hansson8e764c92019-12-10 07:51:15 +000026 "cur_sdkinfo",
Anton Hanssonff172bb2019-12-04 16:06:41 +000027 "derive_sdk.rc",
Anton Hansson1911d7c2019-12-05 11:56:08 +000028 ],
Anton Hansson55592452019-11-28 11:38:13 +000029 key: "com.android.sdkext.key",
30 certificate: ":com.android.sdkext.certificate",
31}
32
Anton Hansson355000d2019-12-06 17:07:45 +000033sdk {
34 name: "sdkext-sdk",
Paul Duffin6bdaf902019-12-24 09:23:47 +000035 java_header_libs: [ "framework-sdkext-stubs-systemapi" ],
Anton Hansson355000d2019-12-06 17:07:45 +000036}
37
Anton Hansson55592452019-11-28 11:38:13 +000038apex_key {
39 name: "com.android.sdkext.key",
40 public_key: "com.android.sdkext.avbpubkey",
41 private_key: "com.android.sdkext.pem",
42}
43
44android_app_certificate {
45 name: "com.android.sdkext.certificate",
46 certificate: "com.android.sdkext",
47}
Anton Hanssona82f1612019-11-28 17:15:11 +000048
49prebuilt_etc {
50 name: "com.android.sdkext.ldconfig",
51 src: "ld.config.txt",
52 filename: "ld.config.txt",
53 installable: false,
54}
Anton Hansson8e764c92019-12-10 07:51:15 +000055
56python_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
72gensrcs {
73 name: "cur_sdkinfo_src",
74 srcs: [""],
75 tools: [ "gen_sdkinfo" ],
76 cmd: "$(location) -v 0 -o $(out)",
77}
78
79prebuilt_etc {
80 name: "cur_sdkinfo",
81 src: ":cur_sdkinfo_src",
82 filename: "sdkinfo.binarypb",
83 installable: false,
84}