blob: 269e610c7bbbb611fed49aa91723813822141189 [file] [log] [blame]
Ian Kasprzak9601e6e2019-11-08 18:40:39 -08001// 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
Bob Badour03905802021-02-12 21:42:54 -080015package {
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
Ian Kasprzak9601e6e2019-11-08 18:40:39 -080028python_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}
Jiyong Parkae556382020-05-20 18:33:43 +090040
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}
Jiyong Parkd721e872020-06-22 17:30:57 +090053
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}
Yifan Hong351b6b82020-07-27 18:49:41 -070072
73python_binary_host {
74 name: "extract_kernel",
75 srcs: ["extract_kernel.py"],
76 version: {
77 py2: {
cfig791378c2021-02-07 17:01:26 +080078 enabled: false,
Yifan Hong351b6b82020-07-27 18:49:41 -070079 },
80 py3: {
cfig791378c2021-02-07 17:01:26 +080081 enabled: true,
Yifan Hong351b6b82020-07-27 18:49:41 -070082 },
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}