blob: 68dc384cf37fcbfc736f4374713bd347238fd3cb [file] [log] [blame]
Jiyong Parkda6ab6e2018-08-14 23:44:51 +09001// Copyright (C) 2018 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
Alex Lighta816f1e2019-02-27 14:11:20 -080015apexer_tools = [
16 "apexer",
17 "aapt2",
18 "avbtool",
19 "e2fsdroid",
20 "merge_zips",
21 "mke2fs",
22 "resize2fs",
23 "sefcontext_compile",
24 "soong_zip",
25 "zipalign",
Martin Stjernholm8b292522019-03-29 16:17:37 +000026 // TODO(b/124476339) apex doesn't follow 'required' dependencies so we need to include this
Alex Lighta816f1e2019-02-27 14:11:20 -080027 // manually for 'avbtool'.
28 "fec",
29]
30
Jiyong Parkda6ab6e2018-08-14 23:44:51 +090031python_binary_host {
32 name: "apexer",
33 srcs: [
34 "apexer.py",
Dario Freniadbee5d2018-12-27 12:44:01 +000035 "apex_manifest.py"
Jiyong Parkda6ab6e2018-08-14 23:44:51 +090036 ],
37 version: {
38 py2: {
39 enabled: true,
Dario Freniadbee5d2018-12-27 12:44:01 +000040 embedded_launcher: true,
Jiyong Parkda6ab6e2018-08-14 23:44:51 +090041 },
42 py3: {
43 enabled: false,
44 },
45 },
Dario Freniadbee5d2018-12-27 12:44:01 +000046 libs: [
Abhijeet Kaura9716132019-01-04 09:02:31 +000047 "apex_manifest_proto",
Dario Freniadbee5d2018-12-27 12:44:01 +000048 ],
Alex Lighta816f1e2019-02-27 14:11:20 -080049 required: apexer_tools,
Jiyong Parkda6ab6e2018-08-14 23:44:51 +090050}
Alex Lighta816f1e2019-02-27 14:11:20 -080051
52apex_key {
53 name: "com.android.support.apexer.key",
54 public_key: "etc/com.android.support.apexer.avbpubkey",
55 private_key: "etc/com.android.support.apexer.pem",
56}
57
58// This is a host-apex that contains all the binaries needed to create new apex's seprate from
59// soong.
60apex_test {
61 name: "com.android.support.apexer",
62 payload_type: "zip",
63 host_supported: true,
64 device_supported: false,
65 manifest: "etc/manifest.json",
66 ignore_system_library_special_case: true,
67 key: "com.android.support.apexer.key",
68 binaries: apexer_tools,
69}