blob: b132f7e3ff4c5adc3dfa2bb14556bf86e063d37c [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",
22 "cur_sdkinfo",
23 ],
Anton Hansson55592452019-11-28 11:38:13 +000024 key: "com.android.sdkext.key",
25 certificate: ":com.android.sdkext.certificate",
26}
27
28apex_key {
29 name: "com.android.sdkext.key",
30 public_key: "com.android.sdkext.avbpubkey",
31 private_key: "com.android.sdkext.pem",
32}
33
34android_app_certificate {
35 name: "com.android.sdkext.certificate",
36 certificate: "com.android.sdkext",
37}
Anton Hanssona82f1612019-11-28 17:15:11 +000038
39prebuilt_etc {
40 name: "com.android.sdkext.ldconfig",
41 src: "ld.config.txt",
42 filename: "ld.config.txt",
43 installable: false,
44}
Anton Hansson1911d7c2019-12-05 11:56:08 +000045
46python_binary_host {
47 name: "gen_sdkinfo",
48 srcs: [
49 "derive_sdk/sdk.proto",
50 "gen_sdkinfo.py",
51 ],
52 proto: {
53 canonical_path_from_root: false,
54 },
55}
56
57gensrcs {
58 name: "cur_sdkinfo_src",
59 srcs: [""],
60 tools: [ "gen_sdkinfo" ],
61 cmd: "$(location) -v 0 -o $(out)",
62}
63
64prebuilt_etc {
65 name: "cur_sdkinfo",
66 src: ":cur_sdkinfo_src",
67 filename: "sdkinfo.binarypb",
68 installable: false,
69}