Dan Willemsen | 47f445f | 2019-12-26 09:23:54 -0800 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "FlexLexer", |
| 3 | host_supported: true, |
| 4 | vendor_available: true, |
Victor Khimenko | 14ede93 | 2020-05-12 00:09:59 +0200 | [diff] [blame] | 5 | // TODO(b/153609531): remove when no longer needed. |
| 6 | native_bridge_supported: true, |
Dan Willemsen | 47f445f | 2019-12-26 09:23:54 -0800 | [diff] [blame] | 7 | export_include_dirs: ["common/flex"], |
| 8 | notice: "common/flex/NOTICE", |
| 9 | } |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 10 | |
| 11 | prebuilt_build_tool { |
| 12 | name: "bison", |
| 13 | deps: ["common/bison/**/*"], |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 14 | export_to_make_var: "BISON", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 15 | enabled: false, |
| 16 | arch: { |
| 17 | x86_64: { |
| 18 | enabled: true, |
| 19 | }, |
| 20 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 21 | target: { |
| 22 | darwin: { |
| 23 | src: "darwin-x86/bin/bison", |
| 24 | deps: ["darwin-x86/lib64/libc++.dylib"], |
| 25 | }, |
| 26 | linux: { |
| 27 | src: "linux-x86/bin/bison", |
| 28 | deps: ["linux-x86/lib64/libc++.so"], |
| 29 | }, |
| 30 | }, |
| 31 | } |
| 32 | |
| 33 | prebuilt_build_tool { |
| 34 | name: "flex", |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 35 | export_to_make_var: "LEX", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 36 | enabled: false, |
| 37 | arch: { |
| 38 | x86_64: { |
| 39 | enabled: true, |
| 40 | }, |
| 41 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 42 | target: { |
| 43 | darwin: { |
| 44 | src: "darwin-x86/bin/flex", |
| 45 | }, |
| 46 | linux: { |
| 47 | src: "linux-x86/bin/flex", |
| 48 | }, |
| 49 | }, |
| 50 | } |
| 51 | |
| 52 | prebuilt_build_tool { |
| 53 | name: "m4", |
Dan Willemsen | de9f477 | 2020-07-17 19:42:12 -0700 | [diff] [blame] | 54 | export_to_make_var: "M4", |
Jiyong Park | 1291abb | 2020-09-09 17:16:54 +0900 | [diff] [blame] | 55 | enabled: false, |
| 56 | arch: { |
| 57 | x86_64: { |
| 58 | enabled: true, |
| 59 | }, |
| 60 | }, |
Dan Willemsen | f3acd61 | 2020-07-16 17:45:05 -0700 | [diff] [blame] | 61 | target: { |
| 62 | darwin: { |
| 63 | src: "darwin-x86/bin/m4", |
| 64 | }, |
| 65 | linux: { |
| 66 | src: "linux-x86/bin/m4", |
| 67 | }, |
| 68 | }, |
| 69 | } |
Dan Willemsen | 79299d1 | 2020-12-23 16:51:09 -0800 | [diff] [blame^] | 70 | |
| 71 | /// |
| 72 | // cpython3 host prebuilts |
| 73 | /// |
| 74 | soong_config_module_type { |
| 75 | name: "cpython3_cc_prebuilt_binary", |
| 76 | module_type: "cc_prebuilt_binary", |
| 77 | config_namespace: "cpython3", |
| 78 | bool_variables: ["force_build_host"], |
| 79 | properties: ["prefer"], |
| 80 | } |
| 81 | |
| 82 | cpython3_cc_prebuilt_binary { |
| 83 | name: "py3-launcher", |
| 84 | host_supported: true, |
| 85 | device_supported: false, |
| 86 | compile_multilib: "64", |
| 87 | stl: "none", |
| 88 | notice: "common/py3-stdlib/NOTICE", |
| 89 | target: { |
| 90 | linux_glibc_x86_64: { |
| 91 | srcs: ["linux-x86/bin/py3-launcher64"] |
| 92 | }, |
| 93 | darwin_x86_64: { |
| 94 | srcs: ["darwin-x86/bin/py3-launcher64"], |
| 95 | }, |
| 96 | }, |
| 97 | |
| 98 | // Use the prebuilts for most branches |
| 99 | prefer: true, |
| 100 | soong_config_variables: { |
| 101 | force_build_host: { |
| 102 | prefer: false, |
| 103 | }, |
| 104 | }, |
| 105 | } |
| 106 | |
| 107 | cpython3_cc_prebuilt_binary { |
| 108 | name: "py3-launcher-autorun", |
| 109 | host_supported: true, |
| 110 | device_supported: false, |
| 111 | compile_multilib: "64", |
| 112 | stl: "none", |
| 113 | notice: "common/py3-stdlib/NOTICE", |
| 114 | target: { |
| 115 | linux_glibc_x86_64: { |
| 116 | srcs: ["linux-x86/bin/py3-launcher-autorun64"] |
| 117 | }, |
| 118 | darwin_x86_64: { |
| 119 | srcs: ["darwin-x86/bin/py3-launcher-autorun64"], |
| 120 | }, |
| 121 | }, |
| 122 | |
| 123 | // Use the prebuilts for most branches |
| 124 | prefer: true, |
| 125 | soong_config_variables: { |
| 126 | force_build_host: { |
| 127 | prefer: false, |
| 128 | }, |
| 129 | }, |
| 130 | } |
| 131 | |
| 132 | filegroup { |
| 133 | name: "py3-stdlib-prebuilt-srcs", |
| 134 | visibility: ["//external/python/cpython3/Lib"], |
| 135 | srcs: ["common/py3-stdlib/**/*.py"], |
| 136 | path: "common/py3-stdlib", |
| 137 | } |