Bob Badour | 478a376 | 2021-02-12 15:30:01 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 19 | license { |
| 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 Badour | 93641b2 | 2022-07-14 11:42:19 -0700 | [diff] [blame^] | 33 | 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 Badour | 478a376 | 2021-02-12 15:30:01 -0800 | [diff] [blame] | 53 | } |
| 54 | |
Dan Willemsen | 47f445f | 2019-12-26 09:23:54 -0800 | [diff] [blame] | 55 | cc_library_headers { |
| 56 | name: "FlexLexer", |
| 57 | host_supported: true, |
| 58 | vendor_available: true, |
Victor Khimenko | 14ede93 | 2020-05-12 00:09:59 +0200 | [diff] [blame] | 59 | // TODO(b/153609531): remove when no longer needed. |
| 60 | native_bridge_supported: true, |
Dan Willemsen | 47f445f | 2019-12-26 09:23:54 -0800 | [diff] [blame] | 61 | export_include_dirs: ["common/flex"], |
Dan Willemsen | 47f445f | 2019-12-26 09:23:54 -0800 | [diff] [blame] | 62 | } |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 63 | |
| 64 | prebuilt_build_tool { |
| 65 | name: "bison", |
| 66 | deps: ["common/bison/**/*"], |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 67 | export_to_make_var: "BISON", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 68 | enabled: false, |
| 69 | arch: { |
| 70 | x86_64: { |
| 71 | enabled: true, |
| 72 | }, |
| 73 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 74 | 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 | |
| 86 | prebuilt_build_tool { |
| 87 | name: "flex", |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 88 | export_to_make_var: "LEX", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 89 | enabled: false, |
| 90 | arch: { |
| 91 | x86_64: { |
| 92 | enabled: true, |
| 93 | }, |
| 94 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 95 | target: { |
| 96 | darwin: { |
| 97 | src: "darwin-x86/bin/flex", |
| 98 | }, |
| 99 | linux: { |
| 100 | src: "linux-x86/bin/flex", |
| 101 | }, |
| 102 | }, |
| 103 | } |
| 104 | |
| 105 | prebuilt_build_tool { |
| 106 | name: "m4", |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 107 | export_to_make_var: "M4", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 108 | enabled: false, |
| 109 | arch: { |
| 110 | x86_64: { |
| 111 | enabled: true, |
| 112 | }, |
| 113 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 114 | target: { |
| 115 | darwin: { |
| 116 | src: "darwin-x86/bin/m4", |
| 117 | }, |
| 118 | linux: { |
| 119 | src: "linux-x86/bin/m4", |
| 120 | }, |
| 121 | }, |
| 122 | } |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 123 | |
| 124 | /// |
| 125 | // cpython3 host prebuilts |
| 126 | /// |
| 127 | soong_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 | |
| 135 | cpython3_cc_prebuilt_binary { |
| 136 | name: "py3-launcher", |
| 137 | host_supported: true, |
| 138 | device_supported: false, |
| 139 | compile_multilib: "64", |
| 140 | stl: "none", |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 141 | target: { |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 142 | glibc_x86_64: { |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 143 | srcs: ["linux-x86/bin/py3-launcher64"] |
| 144 | }, |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 145 | musl_x86_64: { |
| 146 | srcs: ["linux_musl-x86/bin/py3-launcher64"] |
| 147 | }, |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 148 | 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 | |
| 162 | cpython3_cc_prebuilt_binary { |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 163 | name: "py3-launcher-static", |
| 164 | host_supported: true, |
| 165 | device_supported: false, |
| 166 | compile_multilib: "64", |
| 167 | stl: "none", |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 168 | 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 | |
| 183 | cpython3_cc_prebuilt_binary { |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 184 | name: "py3-launcher-autorun", |
| 185 | host_supported: true, |
| 186 | device_supported: false, |
| 187 | compile_multilib: "64", |
| 188 | stl: "none", |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 189 | target: { |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 190 | glibc_x86_64: { |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 191 | srcs: ["linux-x86/bin/py3-launcher-autorun64"] |
| 192 | }, |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 193 | musl_x86_64: { |
| 194 | srcs: ["linux_musl-x86/bin/py3-launcher-autorun64"] |
| 195 | }, |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 196 | 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 Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 210 | cpython3_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 Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 216 | 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 Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 231 | filegroup { |
| 232 | name: "py3-stdlib-prebuilt-srcs", |
| 233 | visibility: ["//external/python/cpython3/Lib"], |
| 234 | srcs: ["common/py3-stdlib/**/*.py"], |
| 235 | path: "common/py3-stdlib", |
| 236 | } |