1// 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19python_binary_host { 20 name: "deapexer", 21 srcs: [ 22 "deapexer.py", 23 ], 24 version: { 25 py2: { 26 enabled: false, 27 }, 28 py3: { 29 enabled: true, 30 embedded_launcher: true, 31 }, 32 }, 33 libs: [ 34 "apex_manifest", 35 ], 36 required: [ 37 "debugfs_static", 38 ], 39} 40 41python_binary_host { 42 name: "apex_compression_tool", 43 srcs: [ 44 "apex_compression_tool.py", 45 ], 46 version: { 47 py2: { 48 enabled: false, 49 }, 50 py3: { 51 enabled: true, 52 embedded_launcher: true, 53 }, 54 }, 55 libs: [ 56 "apex_manifest_proto", 57 ], 58 required: [ 59 "avbtool", 60 "conv_apex_manifest", 61 ], 62} 63 64python_test_host { 65 name: "apex_compression_test", 66 main: "apex_compression_test.py", 67 srcs: [ 68 "apex_compression_test.py", 69 ], 70 data: [ 71 ":avbtool", 72 ":com.android.example.apex", 73 ":conv_apex_manifest", 74 ":apex_compression_tool", 75 ":deapexer", 76 ":soong_zip", 77 ], 78 version: { 79 py2: { 80 enabled: false, 81 }, 82 py3: { 83 enabled: true, 84 }, 85 }, 86 libs: [ 87 "apex_manifest_proto", 88 ], 89 test_suites: ["general-tests"], 90 test_options: { 91 unit_test: true, 92 }, 93} 94