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 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "build_make_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 // SPDX-license-identifier-BSD 22 // SPDX-license-identifier-CC-BY 23 // SPDX-license-identifier-GPL 24 // SPDX-license-identifier-MIT 25 default_applicable_licenses: ["build_make_license"], 26} 27 28python_binary_host { 29 name: "generate-self-extracting-archive", 30 srcs: ["generate-self-extracting-archive.py"], 31 version: { 32 py2: { 33 enabled: true, 34 }, 35 py3: { 36 enabled: false, 37 }, 38 }, 39} 40 41python_binary_host { 42 name: "post_process_props", 43 srcs: ["post_process_props.py"], 44 version: { 45 py2: { 46 enabled: false, 47 }, 48 py3: { 49 enabled: true, 50 }, 51 }, 52} 53 54python_test_host { 55 name: "post_process_props_unittest", 56 main: "test_post_process_props.py", 57 srcs: [ 58 "post_process_props.py", 59 "test_post_process_props.py", 60 ], 61 version: { 62 py2: { 63 enabled: false, 64 }, 65 py3: { 66 enabled: true, 67 }, 68 }, 69 test_config: "post_process_props_unittest.xml", 70 test_suites: ["general-tests"], 71} 72 73python_binary_host { 74 name: "extract_kernel", 75 srcs: ["extract_kernel.py"], 76 version: { 77 py2: { 78 enabled: false, 79 }, 80 py3: { 81 enabled: true, 82 }, 83 }, 84} 85 86genrule_defaults { 87 name: "extract_kernel_release_defaults", 88 tools: ["extract_kernel", "lz4"], 89 out: ["kernel_release.txt"], 90 cmd: "$(location) --tools lz4:$(location lz4) --input $(in) --output-release > $(out)" 91} 92