blob: 81ddf7c1793a79d26ecc74c248e1eef77092b62e [file] [log] [blame]
Bob Badour478a3762021-02-12 15:30:01 -08001package {
2 default_applicable_licenses: ["prebuilts_build-tools_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20 name: "prebuilts_build-tools_license",
21 visibility: [":__subpackages__"],
22 license_kinds: [
23 "SPDX-license-identifier-0BSD",
24 "SPDX-license-identifier-Apache-2.0",
25 "SPDX-license-identifier-BSD",
Bob Badour478a3762021-02-12 15:30:01 -080026 "SPDX-license-identifier-MIT",
27 "SPDX-license-identifier-PSF-2.0",
28 "SPDX-license-identifier-Zlib",
29 "legacy_unencumbered",
30 ],
Bob Badour93641b22022-07-14 11:42:19 -070031 license_text: [
Colin Crossb73be832022-09-21 11:39:54 -070032 "sysroots/aarch64-unknown-linux-musl/NOTICE.bionic",
33 "sysroots/aarch64-unknown-linux-musl/NOTICE.libc++",
34 "sysroots/aarch64-unknown-linux-musl/NOTICE.libc++abi",
35 "sysroots/aarch64-unknown-linux-musl/NOTICE.zlib",
36 "sysroots/arm-unknown-linux-musleabihf/NOTICE.bionic",
37 "sysroots/arm-unknown-linux-musleabihf/NOTICE.libc++",
38 "sysroots/arm-unknown-linux-musleabihf/NOTICE.libc++abi",
39 "sysroots/arm-unknown-linux-musleabihf/NOTICE.zlib",
40 "sysroots/i686-unknown-linux-musl/NOTICE.bionic",
41 "sysroots/i686-unknown-linux-musl/NOTICE.libc++",
42 "sysroots/i686-unknown-linux-musl/NOTICE.libc++abi",
43 "sysroots/i686-unknown-linux-musl/NOTICE.zlib",
44 "sysroots/x86_64-unknown-linux-musl/NOTICE.bionic",
45 "sysroots/x86_64-unknown-linux-musl/NOTICE.libc++",
46 "sysroots/x86_64-unknown-linux-musl/NOTICE.libc++abi",
47 "sysroots/x86_64-unknown-linux-musl/NOTICE.zlib",
Bob Badour93641b22022-07-14 11:42:19 -070048 ],
Bob Badour478a3762021-02-12 15:30:01 -080049}
50
Bob Badour7dc1b5b2022-10-15 11:21:05 -070051license {
52 name: "prebuilts_build-tools_bison_license",
53 package_name: "bison",
54 visibility: [":__subpackages__"],
55 license_kinds: ["SPDX-license-identifier-GPL-3.0"],
56 license_text: ["common/bison/NOTICE"],
57}
58
59license {
60 name: "prebuilts_build-tools_gnu_license",
61 package_name: "Official GNU software",
62 visibility: [":__subpackages__"],
63 license_kinds: ["SPDX-license-identifier-GPL-3.0"],
64 license_text: ["LICENSE-GPL-3.0"],
65}
66
67license {
68 name: "prebuilts_build-tools_flex_license",
69 package_name: "flex",
70 visibility: [":__subpackages__"],
71 license_kinds: ["SPDX-license-identifier-BSD"],
72 license_text: ["common/flex/NOTICE"],
73}
74
Dan Willemsen47f445f2019-12-26 09:23:54 -080075cc_library_headers {
76 name: "FlexLexer",
77 host_supported: true,
78 vendor_available: true,
Victor Khimenko14ede932020-05-12 00:09:59 +020079 // TODO(b/153609531): remove when no longer needed.
80 native_bridge_supported: true,
Bob Badour7dc1b5b2022-10-15 11:21:05 -070081 licenses: ["prebuilts_build-tools_flex_license"],
Dan Willemsen47f445f2019-12-26 09:23:54 -080082 export_include_dirs: ["common/flex"],
Dan Willemsen47f445f2019-12-26 09:23:54 -080083}
Dan Willemsenf3acd612020-07-16 17:45:05 -070084
85prebuilt_build_tool {
86 name: "bison",
87 deps: ["common/bison/**/*"],
Bob Badour7dc1b5b2022-10-15 11:21:05 -070088 licenses: ["prebuilts_build-tools_bison_license"],
Dan Willemsende9f4772020-07-17 19:42:12 -070089 export_to_make_var: "BISON",
Jiyong Park1291abb2020-09-09 17:16:54 +090090 enabled: false,
91 arch: {
92 x86_64: {
93 enabled: true,
94 },
95 },
Dan Willemsenf3acd612020-07-16 17:45:05 -070096 target: {
97 darwin: {
98 src: "darwin-x86/bin/bison",
99 deps: ["darwin-x86/lib64/libc++.dylib"],
100 },
101 linux: {
102 src: "linux-x86/bin/bison",
103 deps: ["linux-x86/lib64/libc++.so"],
104 },
105 },
106}
107
108prebuilt_build_tool {
109 name: "flex",
Dan Willemsende9f4772020-07-17 19:42:12 -0700110 export_to_make_var: "LEX",
Jiyong Park1291abb2020-09-09 17:16:54 +0900111 enabled: false,
112 arch: {
113 x86_64: {
114 enabled: true,
115 },
116 },
Bob Badour7dc1b5b2022-10-15 11:21:05 -0700117 licenses: ["prebuilts_build-tools_flex_license"],
Dan Willemsenf3acd612020-07-16 17:45:05 -0700118 target: {
119 darwin: {
120 src: "darwin-x86/bin/flex",
121 },
122 linux: {
123 src: "linux-x86/bin/flex",
124 },
125 },
126}
127
128prebuilt_build_tool {
129 name: "m4",
Dan Willemsende9f4772020-07-17 19:42:12 -0700130 export_to_make_var: "M4",
Jiyong Park1291abb2020-09-09 17:16:54 +0900131 enabled: false,
132 arch: {
133 x86_64: {
134 enabled: true,
135 },
136 },
Bob Badour7dc1b5b2022-10-15 11:21:05 -0700137 licenses: ["prebuilts_build-tools_gnu_license"],
Dan Willemsenf3acd612020-07-16 17:45:05 -0700138 target: {
139 darwin: {
140 src: "darwin-x86/bin/m4",
141 },
142 linux: {
143 src: "linux-x86/bin/m4",
144 },
145 },
146}
Dan Willemsen79299d12020-12-23 16:51:09 -0800147
148///
149// cpython3 host prebuilts
150///
151soong_config_module_type {
152 name: "cpython3_cc_prebuilt_binary",
153 module_type: "cc_prebuilt_binary",
154 config_namespace: "cpython3",
155 bool_variables: ["force_build_host"],
156 properties: ["prefer"],
157}
158
159cpython3_cc_prebuilt_binary {
160 name: "py3-launcher",
161 host_supported: true,
162 device_supported: false,
163 compile_multilib: "64",
164 stl: "none",
Dan Willemsen79299d12020-12-23 16:51:09 -0800165 target: {
Colin Crosscbb30962022-03-08 13:22:35 -0800166 glibc_x86_64: {
Dan Willemsen79299d12020-12-23 16:51:09 -0800167 srcs: ["linux-x86/bin/py3-launcher64"]
168 },
Colin Crosscbb30962022-03-08 13:22:35 -0800169 musl_x86_64: {
170 srcs: ["linux_musl-x86/bin/py3-launcher64"]
171 },
Dan Willemsen79299d12020-12-23 16:51:09 -0800172 darwin_x86_64: {
173 srcs: ["darwin-x86/bin/py3-launcher64"],
174 },
175 },
176
177 // Use the prebuilts for most branches
178 prefer: true,
179 soong_config_variables: {
180 force_build_host: {
181 prefer: false,
182 },
183 },
184}
185
186cpython3_cc_prebuilt_binary {
Colin Crosscbb30962022-03-08 13:22:35 -0800187 name: "py3-launcher-static",
188 host_supported: true,
189 device_supported: false,
190 compile_multilib: "64",
191 stl: "none",
Colin Crosscbb30962022-03-08 13:22:35 -0800192 target: {
193 musl_x86_64: {
194 srcs: ["linux_musl-x86/bin/py3-launcher-static64"]
195 },
196 },
197
198 // Use the prebuilts for most branches
199 prefer: true,
200 soong_config_variables: {
201 force_build_host: {
202 prefer: false,
203 },
204 },
205}
206
207cpython3_cc_prebuilt_binary {
Dan Willemsen79299d12020-12-23 16:51:09 -0800208 name: "py3-launcher-autorun",
209 host_supported: true,
210 device_supported: false,
211 compile_multilib: "64",
212 stl: "none",
Dan Willemsen79299d12020-12-23 16:51:09 -0800213 target: {
Colin Crosscbb30962022-03-08 13:22:35 -0800214 glibc_x86_64: {
Dan Willemsen79299d12020-12-23 16:51:09 -0800215 srcs: ["linux-x86/bin/py3-launcher-autorun64"]
216 },
Colin Crosscbb30962022-03-08 13:22:35 -0800217 musl_x86_64: {
218 srcs: ["linux_musl-x86/bin/py3-launcher-autorun64"]
219 },
Dan Willemsen79299d12020-12-23 16:51:09 -0800220 darwin_x86_64: {
221 srcs: ["darwin-x86/bin/py3-launcher-autorun64"],
222 },
223 },
224
225 // Use the prebuilts for most branches
226 prefer: true,
227 soong_config_variables: {
228 force_build_host: {
229 prefer: false,
230 },
231 },
232}
233
Colin Crosscbb30962022-03-08 13:22:35 -0800234cpython3_cc_prebuilt_binary {
235 name: "py3-launcher-autorun-static",
236 host_supported: true,
237 device_supported: false,
238 compile_multilib: "64",
239 stl: "none",
Colin Crosscbb30962022-03-08 13:22:35 -0800240 target: {
241 musl_x86_64: {
242 srcs: ["linux_musl-x86/bin/py3-launcher-autorun-static64"]
243 },
244 },
245
246 // Use the prebuilts for most branches
247 prefer: true,
248 soong_config_variables: {
249 force_build_host: {
250 prefer: false,
251 },
252 },
253}
254
Dan Willemsen79299d12020-12-23 16:51:09 -0800255filegroup {
256 name: "py3-stdlib-prebuilt-srcs",
257 visibility: ["//external/python/cpython3/Lib"],
258 srcs: ["common/py3-stdlib/**/*.py"],
259 path: "common/py3-stdlib",
260}