blob: ba028aac8af1fa69edb0324482054110a793036f [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 ],
33 // large-scale-change unable to identify any license_text files
34}
35
Dan Willemsen47f445f2019-12-26 09:23:54 -080036cc_library_headers {
37 name: "FlexLexer",
38 host_supported: true,
39 vendor_available: true,
Victor Khimenko14ede932020-05-12 00:09:59 +020040 // TODO(b/153609531): remove when no longer needed.
41 native_bridge_supported: true,
Dan Willemsen47f445f2019-12-26 09:23:54 -080042 export_include_dirs: ["common/flex"],
43 notice: "common/flex/NOTICE",
44}
Dan Willemsenf3acd612020-07-16 17:45:05 -070045
46prebuilt_build_tool {
47 name: "bison",
48 deps: ["common/bison/**/*"],
Dan Willemsende9f4772020-07-17 19:42:12 -070049 export_to_make_var: "BISON",
Jiyong Park1291abb2020-09-09 17:16:54 +090050 enabled: false,
51 arch: {
52 x86_64: {
53 enabled: true,
54 },
55 },
Dan Willemsenf3acd612020-07-16 17:45:05 -070056 target: {
57 darwin: {
58 src: "darwin-x86/bin/bison",
59 deps: ["darwin-x86/lib64/libc++.dylib"],
60 },
61 linux: {
62 src: "linux-x86/bin/bison",
63 deps: ["linux-x86/lib64/libc++.so"],
64 },
65 },
66}
67
68prebuilt_build_tool {
69 name: "flex",
Dan Willemsende9f4772020-07-17 19:42:12 -070070 export_to_make_var: "LEX",
Jiyong Park1291abb2020-09-09 17:16:54 +090071 enabled: false,
72 arch: {
73 x86_64: {
74 enabled: true,
75 },
76 },
Dan Willemsenf3acd612020-07-16 17:45:05 -070077 target: {
78 darwin: {
79 src: "darwin-x86/bin/flex",
80 },
81 linux: {
82 src: "linux-x86/bin/flex",
83 },
84 },
85}
86
87prebuilt_build_tool {
88 name: "m4",
Dan Willemsende9f4772020-07-17 19:42:12 -070089 export_to_make_var: "M4",
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/m4",
99 },
100 linux: {
101 src: "linux-x86/bin/m4",
102 },
103 },
104}
Dan Willemsen79299d12020-12-23 16:51:09 -0800105
106///
107// cpython3 host prebuilts
108///
109soong_config_module_type {
110 name: "cpython3_cc_prebuilt_binary",
111 module_type: "cc_prebuilt_binary",
112 config_namespace: "cpython3",
113 bool_variables: ["force_build_host"],
114 properties: ["prefer"],
115}
116
117cpython3_cc_prebuilt_binary {
118 name: "py3-launcher",
119 host_supported: true,
120 device_supported: false,
121 compile_multilib: "64",
122 stl: "none",
123 notice: "common/py3-stdlib/NOTICE",
124 target: {
Colin Crosscbb30962022-03-08 13:22:35 -0800125 glibc_x86_64: {
Dan Willemsen79299d12020-12-23 16:51:09 -0800126 srcs: ["linux-x86/bin/py3-launcher64"]
127 },
Colin Crosscbb30962022-03-08 13:22:35 -0800128 musl_x86_64: {
129 srcs: ["linux_musl-x86/bin/py3-launcher64"]
130 },
Dan Willemsen79299d12020-12-23 16:51:09 -0800131 darwin_x86_64: {
132 srcs: ["darwin-x86/bin/py3-launcher64"],
133 },
134 },
135
136 // Use the prebuilts for most branches
137 prefer: true,
138 soong_config_variables: {
139 force_build_host: {
140 prefer: false,
141 },
142 },
143}
144
145cpython3_cc_prebuilt_binary {
Colin Crosscbb30962022-03-08 13:22:35 -0800146 name: "py3-launcher-static",
147 host_supported: true,
148 device_supported: false,
149 compile_multilib: "64",
150 stl: "none",
151 notice: "common/py3-stdlib/NOTICE",
152 target: {
153 musl_x86_64: {
154 srcs: ["linux_musl-x86/bin/py3-launcher-static64"]
155 },
156 },
157
158 // Use the prebuilts for most branches
159 prefer: true,
160 soong_config_variables: {
161 force_build_host: {
162 prefer: false,
163 },
164 },
165}
166
167cpython3_cc_prebuilt_binary {
Dan Willemsen79299d12020-12-23 16:51:09 -0800168 name: "py3-launcher-autorun",
169 host_supported: true,
170 device_supported: false,
171 compile_multilib: "64",
172 stl: "none",
173 notice: "common/py3-stdlib/NOTICE",
174 target: {
Colin Crosscbb30962022-03-08 13:22:35 -0800175 glibc_x86_64: {
Dan Willemsen79299d12020-12-23 16:51:09 -0800176 srcs: ["linux-x86/bin/py3-launcher-autorun64"]
177 },
Colin Crosscbb30962022-03-08 13:22:35 -0800178 musl_x86_64: {
179 srcs: ["linux_musl-x86/bin/py3-launcher-autorun64"]
180 },
Dan Willemsen79299d12020-12-23 16:51:09 -0800181 darwin_x86_64: {
182 srcs: ["darwin-x86/bin/py3-launcher-autorun64"],
183 },
184 },
185
186 // Use the prebuilts for most branches
187 prefer: true,
188 soong_config_variables: {
189 force_build_host: {
190 prefer: false,
191 },
192 },
193}
194
Colin Crosscbb30962022-03-08 13:22:35 -0800195cpython3_cc_prebuilt_binary {
196 name: "py3-launcher-autorun-static",
197 host_supported: true,
198 device_supported: false,
199 compile_multilib: "64",
200 stl: "none",
201 notice: "common/py3-stdlib/NOTICE",
202 target: {
203 musl_x86_64: {
204 srcs: ["linux_musl-x86/bin/py3-launcher-autorun-static64"]
205 },
206 },
207
208 // Use the prebuilts for most branches
209 prefer: true,
210 soong_config_variables: {
211 force_build_host: {
212 prefer: false,
213 },
214 },
215}
216
Dan Willemsen79299d12020-12-23 16:51:09 -0800217filegroup {
218 name: "py3-stdlib-prebuilt-srcs",
219 visibility: ["//external/python/cpython3/Lib"],
220 srcs: ["common/py3-stdlib/**/*.py"],
221 path: "common/py3-stdlib",
222}