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 | ], |
| 33 | // large-scale-change unable to identify any license_text files |
| 34 | } |
| 35 | |
Dan Willemsen | 47f445f | 2019-12-26 09:23:54 -0800 | [diff] [blame] | 36 | cc_library_headers { |
| 37 | name: "FlexLexer", |
| 38 | host_supported: true, |
| 39 | vendor_available: true, |
Victor Khimenko | 14ede93 | 2020-05-12 00:09:59 +0200 | [diff] [blame] | 40 | // TODO(b/153609531): remove when no longer needed. |
| 41 | native_bridge_supported: true, |
Dan Willemsen | 47f445f | 2019-12-26 09:23:54 -0800 | [diff] [blame] | 42 | export_include_dirs: ["common/flex"], |
| 43 | notice: "common/flex/NOTICE", |
| 44 | } |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 45 | |
| 46 | prebuilt_build_tool { |
| 47 | name: "bison", |
| 48 | deps: ["common/bison/**/*"], |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 49 | export_to_make_var: "BISON", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 50 | enabled: false, |
| 51 | arch: { |
| 52 | x86_64: { |
| 53 | enabled: true, |
| 54 | }, |
| 55 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 56 | 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 | |
| 68 | prebuilt_build_tool { |
| 69 | name: "flex", |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 70 | export_to_make_var: "LEX", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 71 | enabled: false, |
| 72 | arch: { |
| 73 | x86_64: { |
| 74 | enabled: true, |
| 75 | }, |
| 76 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 77 | target: { |
| 78 | darwin: { |
| 79 | src: "darwin-x86/bin/flex", |
| 80 | }, |
| 81 | linux: { |
| 82 | src: "linux-x86/bin/flex", |
| 83 | }, |
| 84 | }, |
| 85 | } |
| 86 | |
| 87 | prebuilt_build_tool { |
| 88 | name: "m4", |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 89 | export_to_make_var: "M4", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 90 | enabled: false, |
| 91 | arch: { |
| 92 | x86_64: { |
| 93 | enabled: true, |
| 94 | }, |
| 95 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 96 | target: { |
| 97 | darwin: { |
| 98 | src: "darwin-x86/bin/m4", |
| 99 | }, |
| 100 | linux: { |
| 101 | src: "linux-x86/bin/m4", |
| 102 | }, |
| 103 | }, |
| 104 | } |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 105 | |
| 106 | /// |
| 107 | // cpython3 host prebuilts |
| 108 | /// |
| 109 | soong_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 | |
| 117 | cpython3_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 Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 125 | glibc_x86_64: { |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 126 | srcs: ["linux-x86/bin/py3-launcher64"] |
| 127 | }, |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 128 | musl_x86_64: { |
| 129 | srcs: ["linux_musl-x86/bin/py3-launcher64"] |
| 130 | }, |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 131 | 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 | |
| 145 | cpython3_cc_prebuilt_binary { |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 146 | 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 | |
| 167 | cpython3_cc_prebuilt_binary { |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 168 | 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 Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 175 | glibc_x86_64: { |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 176 | srcs: ["linux-x86/bin/py3-launcher-autorun64"] |
| 177 | }, |
Colin Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 178 | musl_x86_64: { |
| 179 | srcs: ["linux_musl-x86/bin/py3-launcher-autorun64"] |
| 180 | }, |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 181 | 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 Cross | cbb3096 | 2022-03-08 13:22:35 -0800 | [diff] [blame] | 195 | cpython3_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 Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame] | 217 | filegroup { |
| 218 | name: "py3-stdlib-prebuilt-srcs", |
| 219 | visibility: ["//external/python/cpython3/Lib"], |
| 220 | srcs: ["common/py3-stdlib/**/*.py"], |
| 221 | path: "common/py3-stdlib", |
| 222 | } |