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