blob: 9cdf6c566713d03766ac98ed394e8d861490f7ea [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",
26 "SPDX-license-identifier-GPL",
27 "SPDX-license-identifier-GPL-3.0",
28 "SPDX-license-identifier-MIT",
29 "SPDX-license-identifier-PSF-2.0",
30 "SPDX-license-identifier-Zlib",
31 "legacy_unencumbered",
32 ],
Bob Badour93641b22022-07-14 11:42:19 -070033 license_text: [
34 "common/bison/NOTICE",
35 "common/flex/NOTICE",
36 "sysroots/aarch64-linux-musl/NOTICE.bionic",
37 "sysroots/aarch64-linux-musl/NOTICE.libc++",
38 "sysroots/aarch64-linux-musl/NOTICE.libc++abi",
39 "sysroots/aarch64-linux-musl/NOTICE.zlib",
40 "sysroots/arm-linux-musleabihf/NOTICE.bionic",
41 "sysroots/arm-linux-musleabihf/NOTICE.libc++",
42 "sysroots/arm-linux-musleabihf/NOTICE.libc++abi",
43 "sysroots/arm-linux-musleabihf/NOTICE.zlib",
44 "sysroots/i686-linux-musl/NOTICE.bionic",
45 "sysroots/i686-linux-musl/NOTICE.libc++",
46 "sysroots/i686-linux-musl/NOTICE.libc++abi",
47 "sysroots/i686-linux-musl/NOTICE.zlib",
48 "sysroots/x86_64-linux-musl/NOTICE.bionic",
49 "sysroots/x86_64-linux-musl/NOTICE.libc++",
50 "sysroots/x86_64-linux-musl/NOTICE.libc++abi",
51 "sysroots/x86_64-linux-musl/NOTICE.zlib",
52 ],
Bob Badour478a3762021-02-12 15:30:01 -080053}
54
Dan Willemsen47f445f2019-12-26 09:23:54 -080055cc_library_headers {
56 name: "FlexLexer",
57 host_supported: true,
58 vendor_available: true,
Victor Khimenko14ede932020-05-12 00:09:59 +020059 // TODO(b/153609531): remove when no longer needed.
60 native_bridge_supported: true,
Dan Willemsen47f445f2019-12-26 09:23:54 -080061 export_include_dirs: ["common/flex"],
Dan Willemsen47f445f2019-12-26 09:23:54 -080062}
Dan Willemsenf3acd612020-07-16 17:45:05 -070063
64prebuilt_build_tool {
65 name: "bison",
66 deps: ["common/bison/**/*"],
Dan Willemsende9f4772020-07-17 19:42:12 -070067 export_to_make_var: "BISON",
Jiyong Park1291abb2020-09-09 17:16:54 +090068 enabled: false,
69 arch: {
70 x86_64: {
71 enabled: true,
72 },
73 },
Dan Willemsenf3acd612020-07-16 17:45:05 -070074 target: {
75 darwin: {
76 src: "darwin-x86/bin/bison",
77 deps: ["darwin-x86/lib64/libc++.dylib"],
78 },
79 linux: {
80 src: "linux-x86/bin/bison",
81 deps: ["linux-x86/lib64/libc++.so"],
82 },
83 },
84}
85
86prebuilt_build_tool {
87 name: "flex",
Dan Willemsende9f4772020-07-17 19:42:12 -070088 export_to_make_var: "LEX",
Jiyong Park1291abb2020-09-09 17:16:54 +090089 enabled: false,
90 arch: {
91 x86_64: {
92 enabled: true,
93 },
94 },
Dan Willemsenf3acd612020-07-16 17:45:05 -070095 target: {
96 darwin: {
97 src: "darwin-x86/bin/flex",
98 },
99 linux: {
100 src: "linux-x86/bin/flex",
101 },
102 },
103}
104
105prebuilt_build_tool {
106 name: "m4",
Dan Willemsende9f4772020-07-17 19:42:12 -0700107 export_to_make_var: "M4",
Jiyong Park1291abb2020-09-09 17:16:54 +0900108 enabled: false,
109 arch: {
110 x86_64: {
111 enabled: true,
112 },
113 },
Dan Willemsenf3acd612020-07-16 17:45:05 -0700114 target: {
115 darwin: {
116 src: "darwin-x86/bin/m4",
117 },
118 linux: {
119 src: "linux-x86/bin/m4",
120 },
121 },
122}
Dan Willemsen79299d12020-12-23 16:51:09 -0800123
124///
125// cpython3 host prebuilts
126///
127soong_config_module_type {
128 name: "cpython3_cc_prebuilt_binary",
129 module_type: "cc_prebuilt_binary",
130 config_namespace: "cpython3",
131 bool_variables: ["force_build_host"],
132 properties: ["prefer"],
133}
134
135cpython3_cc_prebuilt_binary {
136 name: "py3-launcher",
137 host_supported: true,
138 device_supported: false,
139 compile_multilib: "64",
140 stl: "none",
Dan Willemsen79299d12020-12-23 16:51:09 -0800141 target: {
Colin Crosscbb30962022-03-08 13:22:35 -0800142 glibc_x86_64: {
Dan Willemsen79299d12020-12-23 16:51:09 -0800143 srcs: ["linux-x86/bin/py3-launcher64"]
144 },
Colin Crosscbb30962022-03-08 13:22:35 -0800145 musl_x86_64: {
146 srcs: ["linux_musl-x86/bin/py3-launcher64"]
147 },
Dan Willemsen79299d12020-12-23 16:51:09 -0800148 darwin_x86_64: {
149 srcs: ["darwin-x86/bin/py3-launcher64"],
150 },
151 },
152
153 // Use the prebuilts for most branches
154 prefer: true,
155 soong_config_variables: {
156 force_build_host: {
157 prefer: false,
158 },
159 },
160}
161
162cpython3_cc_prebuilt_binary {
Colin Crosscbb30962022-03-08 13:22:35 -0800163 name: "py3-launcher-static",
164 host_supported: true,
165 device_supported: false,
166 compile_multilib: "64",
167 stl: "none",
Colin Crosscbb30962022-03-08 13:22:35 -0800168 target: {
169 musl_x86_64: {
170 srcs: ["linux_musl-x86/bin/py3-launcher-static64"]
171 },
172 },
173
174 // Use the prebuilts for most branches
175 prefer: true,
176 soong_config_variables: {
177 force_build_host: {
178 prefer: false,
179 },
180 },
181}
182
183cpython3_cc_prebuilt_binary {
Dan Willemsen79299d12020-12-23 16:51:09 -0800184 name: "py3-launcher-autorun",
185 host_supported: true,
186 device_supported: false,
187 compile_multilib: "64",
188 stl: "none",
Dan Willemsen79299d12020-12-23 16:51:09 -0800189 target: {
Colin Crosscbb30962022-03-08 13:22:35 -0800190 glibc_x86_64: {
Dan Willemsen79299d12020-12-23 16:51:09 -0800191 srcs: ["linux-x86/bin/py3-launcher-autorun64"]
192 },
Colin Crosscbb30962022-03-08 13:22:35 -0800193 musl_x86_64: {
194 srcs: ["linux_musl-x86/bin/py3-launcher-autorun64"]
195 },
Dan Willemsen79299d12020-12-23 16:51:09 -0800196 darwin_x86_64: {
197 srcs: ["darwin-x86/bin/py3-launcher-autorun64"],
198 },
199 },
200
201 // Use the prebuilts for most branches
202 prefer: true,
203 soong_config_variables: {
204 force_build_host: {
205 prefer: false,
206 },
207 },
208}
209
Colin Crosscbb30962022-03-08 13:22:35 -0800210cpython3_cc_prebuilt_binary {
211 name: "py3-launcher-autorun-static",
212 host_supported: true,
213 device_supported: false,
214 compile_multilib: "64",
215 stl: "none",
Colin Crosscbb30962022-03-08 13:22:35 -0800216 target: {
217 musl_x86_64: {
218 srcs: ["linux_musl-x86/bin/py3-launcher-autorun-static64"]
219 },
220 },
221
222 // Use the prebuilts for most branches
223 prefer: true,
224 soong_config_variables: {
225 force_build_host: {
226 prefer: false,
227 },
228 },
229}
230
Dan Willemsen79299d12020-12-23 16:51:09 -0800231filegroup {
232 name: "py3-stdlib-prebuilt-srcs",
233 visibility: ["//external/python/cpython3/Lib"],
234 srcs: ["common/py3-stdlib/**/*.py"],
235 path: "common/py3-stdlib",
236}