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 15apexer_tools = [ 16 "apexer", 17 "aapt2", 18 "avbtool", 19 "e2fsdroid", 20 "merge_zips", 21 "mke2fs", 22 "resize2fs", 23 "sefcontext_compile", 24 "soong_zip", 25 "zipalign", 26 // TODO(b/124476339) apex doesn't follow 'required' dependencies so we need to include this 27 // manually for 'avbtool'. 28 "fec", 29] 30 31python_binary_host { 32 name: "apexer", 33 srcs: [ 34 "apexer.py", 35 "apex_manifest.py" 36 ], 37 version: { 38 py2: { 39 enabled: true, 40 embedded_launcher: true, 41 }, 42 py3: { 43 enabled: false, 44 }, 45 }, 46 libs: [ 47 "apex_manifest_proto", 48 ], 49 required: apexer_tools, 50} 51 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}