Jiyong Park | da6ab6e | 2018-08-14 23:44:51 +0900 | [diff] [blame] | 1 | // 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 Light | a816f1e | 2019-02-27 14:11:20 -0800 | [diff] [blame] | 15 | apexer_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 Stjernholm | 8b29252 | 2019-03-29 16:17:37 +0000 | [diff] [blame] | 26 | // TODO(b/124476339) apex doesn't follow 'required' dependencies so we need to include this |
Alex Light | a816f1e | 2019-02-27 14:11:20 -0800 | [diff] [blame] | 27 | // manually for 'avbtool'. |
| 28 | "fec", |
| 29 | ] |
| 30 | |
Jiyong Park | da6ab6e | 2018-08-14 23:44:51 +0900 | [diff] [blame] | 31 | python_binary_host { |
| 32 | name: "apexer", |
| 33 | srcs: [ |
| 34 | "apexer.py", |
Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 35 | "apex_manifest.py" |
Jiyong Park | da6ab6e | 2018-08-14 23:44:51 +0900 | [diff] [blame] | 36 | ], |
| 37 | version: { |
| 38 | py2: { |
| 39 | enabled: true, |
Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 40 | embedded_launcher: true, |
Jiyong Park | da6ab6e | 2018-08-14 23:44:51 +0900 | [diff] [blame] | 41 | }, |
| 42 | py3: { |
| 43 | enabled: false, |
| 44 | }, |
| 45 | }, |
Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 46 | libs: [ |
Abhijeet Kaur | a971613 | 2019-01-04 09:02:31 +0000 | [diff] [blame] | 47 | "apex_manifest_proto", |
Dario Freni | adbee5d | 2018-12-27 12:44:01 +0000 | [diff] [blame] | 48 | ], |
Alex Light | a816f1e | 2019-02-27 14:11:20 -0800 | [diff] [blame] | 49 | required: apexer_tools, |
Jiyong Park | da6ab6e | 2018-08-14 23:44:51 +0900 | [diff] [blame] | 50 | } |
Alex Light | a816f1e | 2019-02-27 14:11:20 -0800 | [diff] [blame] | 51 | |
| 52 | apex_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. |
| 60 | apex_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 | } |