blob: 80501369c5dc94bed35e67eb384097fee59d7ae4 [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
15apex {
16 name: "com.android.sdkext",
17 manifest: "manifest.json",
Anton Hanssona82f1612019-11-28 17:15:11 +000018 binaries: [ "derive_sdk" ],
Anton Hansson4ec07fa2019-11-08 15:18:04 +000019 java_libs: [ "framework-sdkext" ],
Anton Hansson1911d7c2019-12-05 11:56:08 +000020 prebuilts: [
21 "com.android.sdkext.ldconfig",
Anton Hansson8e764c92019-12-10 07:51:15 +000022 "cur_sdkinfo",
Anton Hanssonff172bb2019-12-04 16:06:41 +000023 "derive_sdk.rc",
Anton Hansson1911d7c2019-12-05 11:56:08 +000024 ],
Anton Hansson55592452019-11-28 11:38:13 +000025 key: "com.android.sdkext.key",
26 certificate: ":com.android.sdkext.certificate",
27}
28
29apex_key {
30 name: "com.android.sdkext.key",
31 public_key: "com.android.sdkext.avbpubkey",
32 private_key: "com.android.sdkext.pem",
33}
34
35android_app_certificate {
36 name: "com.android.sdkext.certificate",
37 certificate: "com.android.sdkext",
38}
Anton Hanssona82f1612019-11-28 17:15:11 +000039
40prebuilt_etc {
41 name: "com.android.sdkext.ldconfig",
42 src: "ld.config.txt",
43 filename: "ld.config.txt",
44 installable: false,
45}
Anton Hansson8e764c92019-12-10 07:51:15 +000046
47python_binary_host {
48 name: "gen_sdkinfo",
49 srcs: [
50 "sdk.proto",
51 "gen_sdkinfo.py",
52 ],
53 proto: {
54 canonical_path_from_root: false,
55 },
56 version: {
57 py3: {
58 embedded_launcher: true,
59 },
60 },
61}
62
63gensrcs {
64 name: "cur_sdkinfo_src",
65 srcs: [""],
66 tools: [ "gen_sdkinfo" ],
67 cmd: "$(location) -v 0 -o $(out)",
68}
69
70prebuilt_etc {
71 name: "cur_sdkinfo",
72 src: ":cur_sdkinfo_src",
73 filename: "sdkinfo.binarypb",
74 installable: false,
75}