Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 5 | subdirs = [ |
| 6 | "androidmk", |
Jeff Gaston | aff66e5 | 2017-06-19 15:39:54 -0700 | [diff] [blame] | 7 | "bpfix", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 8 | "cmd/*", |
Jeff Gaston | f1fd45e | 2017-08-09 18:25:28 -0700 | [diff] [blame] | 9 | "fs", |
| 10 | "finder", |
Jeff Gaston | 01547b2 | 2017-08-21 20:13:28 -0700 | [diff] [blame] | 11 | "jar", |
Jeff Gaston | 11b5c51 | 2017-10-12 12:19:14 -0700 | [diff] [blame] | 12 | "zip", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 13 | "third_party/zip", |
Dan Willemsen | 1e70446 | 2016-08-21 15:17:17 -0700 | [diff] [blame] | 14 | "ui/*", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 15 | ] |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 16 | |
| 17 | bootstrap_go_package { |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 18 | name: "soong", |
| 19 | pkgPath: "android/soong", |
| 20 | deps: [ |
| 21 | "blueprint", |
| 22 | ], |
| 23 | srcs: [ |
| 24 | "doc.go", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 25 | ], |
| 26 | } |
| 27 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 28 | // |
Dan Willemsen | 00fcbde | 2016-11-17 00:25:59 -0800 | [diff] [blame] | 29 | // Defaults to enable various configurations of host bionic |
| 30 | // |
| 31 | |
| 32 | cc_defaults { |
| 33 | name: "linux_bionic_supported", |
| 34 | host_supported: true, |
| 35 | target: { |
| 36 | host: { |
| 37 | enabled: false, |
| 38 | }, |
| 39 | linux_bionic: { |
| 40 | enabled: true, |
| 41 | }, |
| 42 | }, |
| 43 | } |
| 44 | |
| 45 | // |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 46 | // C static libraries extracted from the gcc toolchain |
| 47 | // |
| 48 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 49 | toolchain_library { |
| 50 | name: "libatomic", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 51 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | 4416e5d | 2017-04-06 12:43:22 -0700 | [diff] [blame] | 52 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 53 | product_available: true, |
Yifan Hong | 50b3665 | 2020-01-21 16:38:29 -0800 | [diff] [blame] | 54 | ramdisk_available: true, |
Yifan Hong | 02e7dec | 2020-10-21 18:38:12 -0700 | [diff] [blame] | 55 | vendor_ramdisk_available: true, |
Jiyong Park | f9332f1 | 2018-02-01 00:54:12 +0900 | [diff] [blame] | 56 | recovery_available: true, |
dimitry | 1f33e40 | 2019-03-26 12:39:31 +0100 | [diff] [blame] | 57 | native_bridge_supported: true, |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 58 | |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 59 | arch: { |
| 60 | arm: { |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 61 | src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a", |
| 62 | }, |
| 63 | arm64: { |
| 64 | src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a", |
| 65 | }, |
| 66 | x86: { |
| 67 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a", |
| 68 | }, |
| 69 | x86_64: { |
| 70 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib64/libatomic.a", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 71 | }, |
| 72 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 73 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 74 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 75 | toolchain_library { |
| 76 | name: "libgcc", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 77 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | 4416e5d | 2017-04-06 12:43:22 -0700 | [diff] [blame] | 78 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 79 | product_available: true, |
Jiyong Park | f9332f1 | 2018-02-01 00:54:12 +0900 | [diff] [blame] | 80 | recovery_available: true, |
dimitry | 1f33e40 | 2019-03-26 12:39:31 +0100 | [diff] [blame] | 81 | native_bridge_supported: true, |
Jiyong Park | 99644e9 | 2020-11-17 22:21:02 +0900 | [diff] [blame] | 82 | apex_available: [ |
| 83 | "//apex_available:platform", |
| 84 | "//apex_available:anyapex", |
| 85 | ], |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 86 | |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 87 | arch: { |
| 88 | arm: { |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 89 | src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a", |
| 90 | }, |
| 91 | arm64: { |
| 92 | src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a", |
| 93 | }, |
| 94 | x86: { |
| 95 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a", |
| 96 | }, |
| 97 | x86_64: { |
| 98 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 99 | }, |
| 100 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 101 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 102 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 103 | toolchain_library { |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 104 | name: "libgcc_stripped", |
| 105 | defaults: ["linux_bionic_supported"], |
| 106 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 107 | product_available: true, |
Yifan Hong | 50b3665 | 2020-01-21 16:38:29 -0800 | [diff] [blame] | 108 | ramdisk_available: true, |
Yifan Hong | 02e7dec | 2020-10-21 18:38:12 -0700 | [diff] [blame] | 109 | vendor_ramdisk_available: true, |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 110 | recovery_available: true, |
dimitry | 0e55ba6 | 2019-05-06 10:58:10 +0200 | [diff] [blame] | 111 | native_bridge_supported: true, |
Peter Collingbourne | e5ba286 | 2019-12-10 18:37:45 -0800 | [diff] [blame] | 112 | sdk_version: "current", |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 113 | |
| 114 | arch: { |
| 115 | arm: { |
| 116 | src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a", |
Yi Kong | 14b65d1 | 2020-04-04 02:14:50 +0800 | [diff] [blame] | 117 | repack_objects_to_keep: [], |
| 118 | enabled: false, |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 119 | }, |
| 120 | arm64: { |
| 121 | src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a", |
Thiébaud Weksteen | 5e291c2 | 2020-06-26 14:04:00 +0200 | [diff] [blame] | 122 | repack_objects_to_keep: [ |
| 123 | "unwind-dw2.o", |
| 124 | "unwind-dw2-fde-dip.o", |
| 125 | ], |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 126 | }, |
| 127 | x86: { |
| 128 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a", |
Thiébaud Weksteen | 5e291c2 | 2020-06-26 14:04:00 +0200 | [diff] [blame] | 129 | repack_objects_to_keep: [ |
| 130 | "unwind-dw2.o", |
| 131 | "unwind-dw2-fde-dip.o", |
| 132 | ], |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 133 | }, |
| 134 | x86_64: { |
| 135 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a", |
Thiébaud Weksteen | 5e291c2 | 2020-06-26 14:04:00 +0200 | [diff] [blame] | 136 | repack_objects_to_keep: [ |
| 137 | "unwind-dw2.o", |
| 138 | "unwind-dw2-fde-dip.o", |
| 139 | ], |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 140 | }, |
| 141 | }, |
Yi Kong | acee27c | 2019-03-29 20:05:14 -0700 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | toolchain_library { |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 145 | name: "libwinpthread", |
| 146 | host_supported: true, |
| 147 | enabled: false, |
| 148 | target: { |
| 149 | windows: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 150 | enabled: true, |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 151 | }, |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 152 | windows_x86: { |
| 153 | src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a", |
| 154 | }, |
| 155 | windows_x86_64: { |
| 156 | src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a", |
| 157 | }, |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 158 | }, |
Jaewoong Jung | 62707f7 | 2018-11-16 13:26:43 -0800 | [diff] [blame] | 159 | notice: ":mingw-libwinpthread-notice", |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 160 | } |
| 161 | |
| 162 | toolchain_library { |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 163 | name: "libgcov", |
Dan Willemsen | 2e47b34 | 2016-11-17 01:02:25 -0800 | [diff] [blame] | 164 | defaults: ["linux_bionic_supported"], |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 165 | |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 166 | arch: { |
| 167 | arm: { |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 168 | src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a", |
| 169 | }, |
| 170 | arm64: { |
| 171 | src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a", |
| 172 | }, |
| 173 | x86: { |
| 174 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a", |
| 175 | }, |
| 176 | x86_64: { |
| 177 | src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcov.a", |
Dan Willemsen | eba363e | 2015-07-08 18:11:14 -0700 | [diff] [blame] | 178 | }, |
| 179 | }, |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 180 | } |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 181 | |
| 182 | kernel_headers { |
| 183 | name: "device_kernel_headers", |
| 184 | vendor: true, |
Hridya Valsaraju | d61df50 | 2018-08-21 15:51:20 -0700 | [diff] [blame] | 185 | recovery_available: true, |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 186 | } |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 187 | |
| 188 | cc_genrule { |
| 189 | name: "host_bionic_linker_asm", |
| 190 | host_supported: true, |
| 191 | device_supported: false, |
| 192 | target: { |
| 193 | linux_bionic: { |
| 194 | enabled: true, |
| 195 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 196 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 197 | enabled: false, |
| 198 | }, |
| 199 | darwin: { |
| 200 | enabled: false, |
| 201 | }, |
| 202 | }, |
| 203 | tools: ["extract_linker"], |
| 204 | cmd: "$(location) -s $(out) $(in)", |
| 205 | srcs: [":linker"], |
| 206 | out: ["linker.s"], |
| 207 | } |
| 208 | |
| 209 | cc_genrule { |
Dan Willemsen | a0790e3 | 2018-10-12 00:24:23 -0700 | [diff] [blame] | 210 | name: "host_bionic_linker_flags", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 211 | host_supported: true, |
| 212 | device_supported: false, |
| 213 | target: { |
| 214 | linux_bionic: { |
| 215 | enabled: true, |
| 216 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 217 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 218 | enabled: false, |
| 219 | }, |
| 220 | darwin: { |
| 221 | enabled: false, |
| 222 | }, |
| 223 | }, |
| 224 | tools: ["extract_linker"], |
Dan Willemsen | a0790e3 | 2018-10-12 00:24:23 -0700 | [diff] [blame] | 225 | cmd: "$(location) -f $(out) $(in)", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 226 | srcs: [":linker"], |
Dan Willemsen | a0790e3 | 2018-10-12 00:24:23 -0700 | [diff] [blame] | 227 | out: ["linker.flags"], |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 228 | } |
Paul Duffin | 1ab6186 | 2021-01-20 17:44:53 +0000 | [diff] [blame] | 229 | |
| 230 | // Instantiate the dex_bootjars singleton module. |
| 231 | dex_bootjars { |
| 232 | name: "dex_bootjars", |
| 233 | } |