blob: e1613107cc49b64f1341bc6bdbb64ab05d248cfc [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: {
125 linux_glibc_x86_64: {
126 srcs: ["linux-x86/bin/py3-launcher64"]
127 },
128 darwin_x86_64: {
129 srcs: ["darwin-x86/bin/py3-launcher64"],
130 },
131 },
132
133 // Use the prebuilts for most branches
134 prefer: true,
135 soong_config_variables: {
136 force_build_host: {
137 prefer: false,
138 },
139 },
140}
141
142cpython3_cc_prebuilt_binary {
143 name: "py3-launcher-autorun",
144 host_supported: true,
145 device_supported: false,
146 compile_multilib: "64",
147 stl: "none",
148 notice: "common/py3-stdlib/NOTICE",
149 target: {
150 linux_glibc_x86_64: {
151 srcs: ["linux-x86/bin/py3-launcher-autorun64"]
152 },
153 darwin_x86_64: {
154 srcs: ["darwin-x86/bin/py3-launcher-autorun64"],
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
167filegroup {
168 name: "py3-stdlib-prebuilt-srcs",
169 visibility: ["//external/python/cpython3/Lib"],
170 srcs: ["common/py3-stdlib/**/*.py"],
171 path: "common/py3-stdlib",
172}