blob: 0b441982c6f4db0b6059b0431a4c7c998df5b0d9 [file] [log] [blame]
Dan Willemsen377737a2016-08-15 15:02:23 -07001subdirs = [
2 "androidmk",
Jeff Gastonaff66e52017-06-19 15:39:54 -07003 "bpfix",
Dan Willemsen377737a2016-08-15 15:02:23 -07004 "cmd/*",
Jeff Gastonf1fd45e2017-08-09 18:25:28 -07005 "fs",
6 "finder",
Jeff Gaston01547b22017-08-21 20:13:28 -07007 "jar",
Jeff Gaston11b5c512017-10-12 12:19:14 -07008 "zip",
Dan Willemsen377737a2016-08-15 15:02:23 -07009 "third_party/zip",
Dan Willemsen1e704462016-08-21 15:17:17 -070010 "ui/*",
Dan Willemsen377737a2016-08-15 15:02:23 -070011]
Colin Cross68f55102015-03-25 14:43:57 -070012
13bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070014 name: "soong",
15 pkgPath: "android/soong",
16 deps: [
17 "blueprint",
18 ],
19 srcs: [
20 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070021 ],
22}
23
Colin Cross80031312015-03-14 14:28:22 -070024//
Dan Willemsen00fcbde2016-11-17 00:25:59 -080025// Defaults to enable various configurations of host bionic
26//
27
28cc_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 Cross80031312015-03-14 14:28:22 -070042// C static libraries extracted from the gcc toolchain
43//
44
Colin Crossba442872015-03-14 14:26:32 -070045toolchain_library {
46 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -080047 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -070048 vendor_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -080049 ramdisk_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090050 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010051 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -070052
Dan Willemseneba363e2015-07-08 18:11:14 -070053 arch: {
54 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070055 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
56 },
57 arm64: {
58 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
59 },
60 x86: {
61 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
62 },
63 x86_64: {
64 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib64/libatomic.a",
Dan Willemseneba363e2015-07-08 18:11:14 -070065 },
66 },
Colin Crossba442872015-03-14 14:26:32 -070067}
Colin Cross3f40fa42015-01-30 17:27:36 -080068
Colin Crossba442872015-03-14 14:26:32 -070069toolchain_library {
70 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -080071 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -070072 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090073 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010074 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -070075
Dan Willemseneba363e2015-07-08 18:11:14 -070076 arch: {
77 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070078 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
79 },
80 arm64: {
81 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
82 },
83 x86: {
84 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
85 },
86 x86_64: {
87 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a",
Dan Willemseneba363e2015-07-08 18:11:14 -070088 },
89 },
Colin Crossba442872015-03-14 14:26:32 -070090}
Colin Cross3f40fa42015-01-30 17:27:36 -080091
Colin Crossba442872015-03-14 14:26:32 -070092toolchain_library {
Yi Kongacee27c2019-03-29 20:05:14 -070093 name: "libgcc_stripped",
94 defaults: ["linux_bionic_supported"],
95 vendor_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -080096 ramdisk_available: true,
Yi Kongacee27c2019-03-29 20:05:14 -070097 recovery_available: true,
dimitry0e55ba62019-05-06 10:58:10 +020098 native_bridge_supported: true,
Peter Collingbournee5ba2862019-12-10 18:37:45 -080099 sdk_version: "current",
Yi Kongacee27c2019-03-29 20:05:14 -0700100
101 arch: {
102 arm: {
103 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
Yi Kong14b65d12020-04-04 02:14:50 +0800104 repack_objects_to_keep: [],
105 enabled: false,
Yi Kongacee27c2019-03-29 20:05:14 -0700106 },
107 arm64: {
108 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
Yi Kongc49c3932019-10-15 02:01:19 -0700109 repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
Yi Kongacee27c2019-03-29 20:05:14 -0700110 },
111 x86: {
112 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
Yi Kongc49c3932019-10-15 02:01:19 -0700113 repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
Yi Kongacee27c2019-03-29 20:05:14 -0700114 },
115 x86_64: {
116 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcc.a",
Yi Kongc49c3932019-10-15 02:01:19 -0700117 repack_objects_to_keep: ["unwind-dw2.o", "unwind-dw2-fde-dip.o"],
Yi Kongacee27c2019-03-29 20:05:14 -0700118 },
119 },
Yi Kongacee27c2019-03-29 20:05:14 -0700120}
121
122toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800123 name: "libwinpthread",
124 host_supported: true,
125 enabled: false,
126 target: {
127 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700128 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800129 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700130 windows_x86: {
131 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
132 },
133 windows_x86_64: {
134 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
135 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800136 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800137 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800138}
139
140toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700141 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800142 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700143
Dan Willemseneba363e2015-07-08 18:11:14 -0700144 arch: {
145 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700146 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
147 },
148 arm64: {
149 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
150 },
151 x86: {
152 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
153 },
154 x86_64: {
155 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/libgcov.a",
Dan Willemseneba363e2015-07-08 18:11:14 -0700156 },
157 },
Colin Crossba442872015-03-14 14:26:32 -0700158}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900159
160kernel_headers {
161 name: "device_kernel_headers",
162 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -0700163 recovery_available: true,
Jiyong Parkd773eb32017-07-03 13:18:12 +0900164}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700165
166cc_genrule {
167 name: "host_bionic_linker_asm",
168 host_supported: true,
169 device_supported: false,
170 target: {
171 linux_bionic: {
172 enabled: true,
173 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700174 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700175 enabled: false,
176 },
177 darwin: {
178 enabled: false,
179 },
180 },
181 tools: ["extract_linker"],
182 cmd: "$(location) -s $(out) $(in)",
183 srcs: [":linker"],
184 out: ["linker.s"],
185}
186
187cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700188 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700189 host_supported: true,
190 device_supported: false,
191 target: {
192 linux_bionic: {
193 enabled: true,
194 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700195 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700196 enabled: false,
197 },
198 darwin: {
199 enabled: false,
200 },
201 },
202 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700203 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700204 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700205 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700206}