blob: 4d698771a226e30fe473f47a8678e0210429dae9 [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,
Yifan Hong02e7dec2020-10-21 18:38:12 -070050 vendor_ramdisk_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090051 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010052 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -070053
Dan Willemseneba363e2015-07-08 18:11:14 -070054 arch: {
55 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070056 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
57 },
58 arm64: {
59 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
60 },
61 x86: {
62 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
63 },
64 x86_64: {
65 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 -070066 },
67 },
Colin Crossba442872015-03-14 14:26:32 -070068}
Colin Cross3f40fa42015-01-30 17:27:36 -080069
Colin Crossba442872015-03-14 14:26:32 -070070toolchain_library {
71 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -080072 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -070073 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +090074 recovery_available: true,
dimitry1f33e402019-03-26 12:39:31 +010075 native_bridge_supported: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -070076
Dan Willemseneba363e2015-07-08 18:11:14 -070077 arch: {
78 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -070079 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
80 },
81 arm64: {
82 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
83 },
84 x86: {
85 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
86 },
87 x86_64: {
88 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 -070089 },
90 },
Colin Crossba442872015-03-14 14:26:32 -070091}
Colin Cross3f40fa42015-01-30 17:27:36 -080092
Colin Crossba442872015-03-14 14:26:32 -070093toolchain_library {
Yi Kongacee27c2019-03-29 20:05:14 -070094 name: "libgcc_stripped",
95 defaults: ["linux_bionic_supported"],
96 vendor_available: true,
Yifan Hong50b36652020-01-21 16:38:29 -080097 ramdisk_available: true,
Yifan Hong02e7dec2020-10-21 18:38:12 -070098 vendor_ramdisk_available: true,
Yi Kongacee27c2019-03-29 20:05:14 -070099 recovery_available: true,
dimitry0e55ba62019-05-06 10:58:10 +0200100 native_bridge_supported: true,
Peter Collingbournee5ba2862019-12-10 18:37:45 -0800101 sdk_version: "current",
Yi Kongacee27c2019-03-29 20:05:14 -0700102
103 arch: {
104 arm: {
105 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 +0800106 repack_objects_to_keep: [],
107 enabled: false,
Yi Kongacee27c2019-03-29 20:05:14 -0700108 },
109 arm64: {
110 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
Thiébaud Weksteen5e291c22020-06-26 14:04:00 +0200111 repack_objects_to_keep: [
112 "unwind-dw2.o",
113 "unwind-dw2-fde-dip.o",
114 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700115 },
116 x86: {
117 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 Weksteen5e291c22020-06-26 14:04:00 +0200118 repack_objects_to_keep: [
119 "unwind-dw2.o",
120 "unwind-dw2-fde-dip.o",
121 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700122 },
123 x86_64: {
124 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 Weksteen5e291c22020-06-26 14:04:00 +0200125 repack_objects_to_keep: [
126 "unwind-dw2.o",
127 "unwind-dw2-fde-dip.o",
128 ],
Yi Kongacee27c2019-03-29 20:05:14 -0700129 },
130 },
Yi Kongacee27c2019-03-29 20:05:14 -0700131}
132
133toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800134 name: "libwinpthread",
135 host_supported: true,
136 enabled: false,
137 target: {
138 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700139 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800140 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700141 windows_x86: {
142 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
143 },
144 windows_x86_64: {
145 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
146 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800147 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800148 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800149}
150
151toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700152 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800153 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700154
Dan Willemseneba363e2015-07-08 18:11:14 -0700155 arch: {
156 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700157 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
158 },
159 arm64: {
160 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
161 },
162 x86: {
163 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
164 },
165 x86_64: {
166 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 -0700167 },
168 },
Colin Crossba442872015-03-14 14:26:32 -0700169}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900170
171kernel_headers {
172 name: "device_kernel_headers",
173 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -0700174 recovery_available: true,
Jiyong Parkd773eb32017-07-03 13:18:12 +0900175}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700176
177cc_genrule {
178 name: "host_bionic_linker_asm",
179 host_supported: true,
180 device_supported: false,
181 target: {
182 linux_bionic: {
183 enabled: true,
184 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700185 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700186 enabled: false,
187 },
188 darwin: {
189 enabled: false,
190 },
191 },
192 tools: ["extract_linker"],
193 cmd: "$(location) -s $(out) $(in)",
194 srcs: [":linker"],
195 out: ["linker.s"],
196}
197
198cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700199 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700200 host_supported: true,
201 device_supported: false,
202 target: {
203 linux_bionic: {
204 enabled: true,
205 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700206 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700207 enabled: false,
208 },
209 darwin: {
210 enabled: false,
211 },
212 },
213 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700214 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700215 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700216 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700217}