blob: c0a1aeb3212e627dc2e18fd095a7f2203619b3a0 [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 {
14 name: "soong-env",
15 pkgPath: "android/soong/env",
16 srcs: [
17 "env/env.go",
18 ],
19}
20
Colin Crossba442872015-03-14 14:26:32 -070021bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070022 name: "soong",
23 pkgPath: "android/soong",
24 deps: [
25 "blueprint",
26 ],
27 srcs: [
28 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070029 ],
30}
31
32bootstrap_go_package {
Colin Cross635c3b02016-05-18 15:37:25 -070033 name: "soong-android",
34 pkgPath: "android/soong/android",
Colin Crossba442872015-03-14 14:26:32 -070035 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080036 "blueprint",
37 "blueprint-bootstrap",
Colin Cross463a90e2015-06-17 14:20:06 -070038 "soong",
Colin Cross68f55102015-03-25 14:43:57 -070039 "soong-env",
Colin Cross3f40fa42015-01-30 17:27:36 -080040 ],
Colin Crossba442872015-03-14 14:26:32 -070041 srcs: [
Colin Cross635c3b02016-05-18 15:37:25 -070042 "android/androidmk.go",
Jiyong Park9d452992018-10-03 00:38:19 +090043 "android/apex.go",
Dan Albert30c9d6e2017-03-28 14:54:55 -070044 "android/api_levels.go",
Colin Cross635c3b02016-05-18 15:37:25 -070045 "android/arch.go",
46 "android/config.go",
47 "android/defaults.go",
48 "android/defs.go",
Colin Cross6bde0942016-11-04 14:36:38 -070049 "android/expand.go",
Pirama Arumuga Nainar955dc492018-04-17 14:58:42 -070050 "android/filegroup.go",
Colin Cross178a5092016-09-13 13:42:32 -070051 "android/hooks.go",
Colin Cross635c3b02016-05-18 15:37:25 -070052 "android/makevars.go",
53 "android/module.go",
54 "android/mutator.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080055 "android/namespace.go",
Steven Moreland65b3fd92017-12-06 14:18:35 -080056 "android/neverallow.go",
Colin Cross9272ade2016-08-17 15:24:12 -070057 "android/onceper.go",
Colin Cross635c3b02016-05-18 15:37:25 -070058 "android/package_ctx.go",
Colin Cross1b488422019-03-04 22:33:56 -080059 "android/path_properties.go",
Colin Cross635c3b02016-05-18 15:37:25 -070060 "android/paths.go",
Colin Crossce75d2c2016-10-06 16:12:58 -070061 "android/prebuilt.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +090062 "android/prebuilt_etc.go",
Colin Cross38f794e2017-09-07 10:53:07 -070063 "android/proto.go",
Colin Cross798bfce2016-10-12 14:28:16 -070064 "android/register.go",
Colin Crossfeec25b2019-01-30 17:32:39 -080065 "android/rule_builder.go",
Dan Willemsenb0552672019-01-25 16:04:11 -080066 "android/sh_binary.go",
Colin Cross0875c522017-11-28 17:34:01 -080067 "android/singleton.go",
Colin Crosscec81712017-07-13 14:43:27 -070068 "android/testing.go",
Colin Cross635c3b02016-05-18 15:37:25 -070069 "android/util.go",
70 "android/variable.go",
Sasha Smundakff36da02019-02-12 17:12:08 -080071 "android/vts_config.go",
Colin Crosse87040b2017-12-11 15:52:26 -080072 "android/writedocs.go",
Dan Willemsene8b1bc02016-05-12 19:03:10 -070073
74 // Lock down environment access last
Colin Cross635c3b02016-05-18 15:37:25 -070075 "android/env.go",
Colin Cross3f40fa42015-01-30 17:27:36 -080076 ],
Dan Willemsen34cc69e2015-09-23 15:26:20 -070077 testSrcs: [
Colin Crosscb988072019-01-24 14:58:11 -080078 "android/arch_test.go",
Jeff Gastonf5f6e492017-11-20 14:31:11 -080079 "android/config_test.go",
Colin Cross6bde0942016-11-04 14:36:38 -070080 "android/expand_test.go",
Jeff Gaston088e29e2017-11-29 16:47:17 -080081 "android/namespace_test.go",
Logan Chienee97c3e2018-03-12 16:34:26 +080082 "android/neverallow_test.go",
Colin Cross571cccf2019-02-04 11:22:08 -080083 "android/onceper_test.go",
Colin Cross1b488422019-03-04 22:33:56 -080084 "android/path_properties_test.go",
Colin Cross635c3b02016-05-18 15:37:25 -070085 "android/paths_test.go",
Colin Cross0d614dd2016-10-14 15:38:43 -070086 "android/prebuilt_test.go",
Jiyong Park139a2e62018-10-26 21:49:39 +090087 "android/prebuilt_etc_test.go",
Colin Crossfeec25b2019-01-30 17:32:39 -080088 "android/rule_builder_test.go",
Colin Crossb6715442017-10-24 11:13:31 -070089 "android/util_test.go",
Colin Cross7e0eaf12017-05-05 16:16:24 -070090 "android/variable_test.go",
Sasha Smundakff36da02019-02-12 17:12:08 -080091 "android/vts_config_test.go",
Dan Willemsen34cc69e2015-09-23 15:26:20 -070092 ],
Colin Crossba442872015-03-14 14:26:32 -070093}
Colin Cross3f40fa42015-01-30 17:27:36 -080094
Colin Crossba442872015-03-14 14:26:32 -070095bootstrap_go_package {
Colin Crossb98c8b02016-07-29 13:44:28 -070096 name: "soong-cc-config",
97 pkgPath: "android/soong/cc/config",
98 deps: [
99 "soong-android",
100 ],
101 srcs: [
102 "cc/config/clang.go",
103 "cc/config/global.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700104 "cc/config/tidy.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700105 "cc/config/toolchain.go",
106
107 "cc/config/arm_device.go",
108 "cc/config/arm64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800109 "cc/config/arm64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700110 "cc/config/mips_device.go",
111 "cc/config/mips64_device.go",
112 "cc/config/x86_device.go",
113 "cc/config/x86_64_device.go",
Doug Hornc32c6b02019-01-17 14:44:05 -0800114 "cc/config/x86_64_fuchsia_device.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700115
116 "cc/config/x86_darwin_host.go",
117 "cc/config/x86_linux_host.go",
Dan Willemsen01a405a2016-06-13 17:19:03 -0700118 "cc/config/x86_linux_bionic_host.go",
Colin Crossb98c8b02016-07-29 13:44:28 -0700119 "cc/config/x86_windows_host.go",
120 ],
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700121 testSrcs: [
122 "cc/config/tidy_test.go",
123 ],
Colin Crossb98c8b02016-07-29 13:44:28 -0700124}
125
126bootstrap_go_package {
Colin Crossba442872015-03-14 14:26:32 -0700127 name: "soong-cc",
128 pkgPath: "android/soong/cc",
129 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -0800130 "blueprint",
131 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700132 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700133 "soong-android",
Colin Crossb98c8b02016-07-29 13:44:28 -0700134 "soong-cc-config",
Colin Cross5049f022015-03-18 13:28:46 -0700135 "soong-genrule",
Colin Cross303e21f2018-08-07 16:49:25 -0700136 "soong-tradefed",
Colin Cross3f40fa42015-01-30 17:27:36 -0800137 ],
Colin Crossba442872015-03-14 14:26:32 -0700138 srcs: [
Dan Willemsen218f6562015-07-08 18:13:11 -0700139 "cc/androidmk.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800140 "cc/builder.go",
141 "cc/cc.go",
Dan Willemsen20acc5c2016-05-25 14:47:21 -0700142 "cc/check.go",
Dan Willemsen581341d2017-02-09 16:16:31 -0800143 "cc/coverage.go",
Colin Cross581c1892015-04-07 16:50:10 -0700144 "cc/gen.go",
Stephen Craneba090d12017-05-09 15:44:35 -0700145 "cc/lto.go",
Dan Willemsen4b7d5de2016-01-12 23:20:28 -0800146 "cc/makevars.go",
Pirama Arumuga Nainarada83ec2017-08-31 23:38:27 -0700147 "cc/pgo.go",
Colin Crossce75d2c2016-10-06 16:12:58 -0700148 "cc/prebuilt.go",
Colin Cross0c461f12016-10-20 16:11:43 -0700149 "cc/proto.go",
Colin Cross2a252be2017-05-01 17:37:24 -0700150 "cc/rs.go",
Colin Cross16b23492016-01-06 14:41:07 -0800151 "cc/sanitize.go",
Jayant Chowdhary3e231fd2017-02-08 13:45:53 -0800152 "cc/sabi.go",
Colin Crossca860ac2016-01-04 14:34:37 -0800153 "cc/stl.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700154 "cc/strip.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900155 "cc/sysprop.go",
Dan Willemsena03cf6d2016-09-26 15:45:04 -0700156 "cc/tidy.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800157 "cc/util.go",
Justin Yun8effde42017-06-23 19:24:43 +0900158 "cc/vndk.go",
Justin Yun71549282017-11-17 12:10:28 +0900159 "cc/vndk_prebuilt.go",
Ivan Lozano074ec482018-11-21 08:59:37 -0800160 "cc/xom.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800161
Fabien Sanglardd61f1f42017-01-10 16:21:22 -0800162 "cc/cmakelists.go",
Alex Lightec868fc2018-04-17 16:50:48 -0700163 "cc/compdb.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700164 "cc/compiler.go",
165 "cc/installer.go",
166 "cc/linker.go",
167
168 "cc/binary.go",
169 "cc/library.go",
170 "cc/object.go",
171 "cc/test.go",
Colin Crossb916a382016-07-29 17:28:03 -0700172 "cc/toolchain_library.go",
Colin Cross4d9c2d12016-07-29 12:48:20 -0700173
174 "cc/ndk_prebuilt.go",
Dan Albert914449f2016-06-17 16:45:24 -0700175 "cc/ndk_headers.go",
176 "cc/ndk_library.go",
177 "cc/ndk_sysroot.go",
Dan Willemsenb916b802017-03-19 13:44:32 -0700178
179 "cc/llndk_library.go",
Jiyong Parkd773eb32017-07-03 13:18:12 +0900180
181 "cc/kernel_headers.go",
Dan Willemsen3e5bdf22017-09-13 18:37:08 -0700182
183 "cc/genrule.go",
Jiyong Park374510b2018-03-19 18:23:01 +0900184
185 "cc/vendor_public_library.go",
Inseob Kimc0907f12019-02-08 21:00:45 +0900186
187 "cc/testing.go",
Colin Cross3f40fa42015-01-30 17:27:36 -0800188 ],
Dan Willemsene5e20332015-06-23 19:46:20 -0700189 testSrcs: [
190 "cc/cc_test.go",
Colin Crossf18e1102017-11-16 14:33:08 -0800191 "cc/gen_test.go",
Colin Crossef354482018-10-23 11:27:50 -0700192 "cc/genrule_test.go",
Colin Crossad59e752017-11-16 14:29:11 -0800193 "cc/library_test.go",
Colin Crossfaeb7aa2017-02-01 14:12:44 -0800194 "cc/test_data_test.go",
Logan Chien031d2b32018-07-26 00:19:50 +0800195 "cc/util_test.go",
Dan Willemsene5e20332015-06-23 19:46:20 -0700196 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700197 pluginFor: ["soong_build"],
Colin Crossba442872015-03-14 14:26:32 -0700198}
Colin Cross3f40fa42015-01-30 17:27:36 -0800199
Colin Cross5049f022015-03-18 13:28:46 -0700200bootstrap_go_package {
201 name: "soong-genrule",
202 pkgPath: "android/soong/genrule",
203 deps: [
204 "blueprint",
205 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700206 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700207 "soong-android",
Jeff Gastonefc1b412017-03-29 17:29:06 -0700208 "soong-shared",
Colin Cross5049f022015-03-18 13:28:46 -0700209 ],
210 srcs: [
211 "genrule/genrule.go",
212 ],
Colin Cross2a076922018-10-04 23:28:25 -0700213 testSrcs: [
214 "genrule/genrule_test.go",
215 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700216 pluginFor: ["soong_build"],
Colin Cross5049f022015-03-18 13:28:46 -0700217}
Colin Cross2fe66872015-03-30 17:20:39 -0700218
Colin Cross2fe66872015-03-30 17:20:39 -0700219bootstrap_go_package {
Nan Zhang6d34b302017-02-04 17:47:46 -0800220 name: "soong-phony",
221 pkgPath: "android/soong/phony",
222 deps: [
223 "blueprint",
224 "soong-android",
225 ],
226 srcs: [
227 "phony/phony.go",
228 ],
229 pluginFor: ["soong_build"],
230}
231
232bootstrap_go_package {
Colin Cross2fe66872015-03-30 17:20:39 -0700233 name: "soong-java",
234 pkgPath: "android/soong/java",
235 deps: [
236 "blueprint",
237 "blueprint-pathtools",
Colin Cross463a90e2015-06-17 14:20:06 -0700238 "soong",
Colin Cross635c3b02016-05-18 15:37:25 -0700239 "soong-android",
Colin Crossa4f08812018-10-02 22:03:40 -0700240 "soong-cc",
Colin Cross43f08db2018-11-12 10:13:39 -0800241 "soong-dexpreopt",
Colin Cross0607cf72015-04-28 13:28:51 -0700242 "soong-genrule",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700243 "soong-java-config",
Colin Cross303e21f2018-08-07 16:49:25 -0700244 "soong-tradefed",
Colin Cross2fe66872015-03-30 17:20:39 -0700245 ],
246 srcs: [
Colin Cross3bc7ffa2017-11-22 16:19:37 -0800247 "java/aapt2.go",
Colin Crossfabb6082018-02-20 17:22:23 -0800248 "java/aar.go",
Colin Cross31656952018-05-24 16:11:20 -0700249 "java/android_manifest.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700250 "java/android_resources.go",
Dan Willemsen218f6562015-07-08 18:13:11 -0700251 "java/androidmk.go",
Colin Cross30e076a2015-04-13 13:58:27 -0700252 "java/app_builder.go",
253 "java/app.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700254 "java/builder.go",
Colin Cross3d7c9822019-03-01 13:46:24 -0800255 "java/device_host_converter.go",
Colin Crossf0056cb2017-12-22 15:56:08 -0800256 "java/dex.go",
Colin Cross43f08db2018-11-12 10:13:39 -0800257 "java/dexpreopt.go",
Colin Cross800fe132019-02-11 14:21:24 -0800258 "java/dexpreopt_bootjars.go",
Colin Cross44df5812019-02-15 23:06:46 -0800259 "java/dexpreopt_config.go",
Nan Zhang581fd212018-01-10 16:06:12 -0800260 "java/droiddoc.go",
Colin Crossc0b06f12015-04-08 13:03:43 -0700261 "java/gen.go",
Colin Cross54250902017-12-05 09:28:08 -0800262 "java/genrule.go",
Colin Cross8faf8fc2019-01-16 15:15:52 -0800263 "java/hiddenapi.go",
Colin Crossf24a22a2019-01-31 14:12:44 -0800264 "java/hiddenapi_singleton.go",
Colin Crosscb933592017-11-22 13:49:43 -0800265 "java/jacoco.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700266 "java/java.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700267 "java/jdeps.go",
Colin Crossa97c5d32018-03-28 14:58:31 -0700268 "java/java_resources.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800269 "java/kotlin.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800270 "java/plugin.go",
Jiyong Park58c518b2018-05-12 22:29:12 +0900271 "java/prebuilt_apis.go",
Colin Cross6af17aa2017-09-20 12:59:05 -0700272 "java/proto.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800273 "java/sdk.go",
Jiyong Parkc678ad32018-04-10 13:07:10 +0900274 "java/sdk_library.go",
Colin Crossb2559a02018-04-19 15:26:10 -0700275 "java/support_libraries.go",
Colin Cross1369cdb2017-09-29 17:58:17 -0700276 "java/system_modules.go",
Colin Crosse4759b92019-02-15 10:37:39 -0800277 "java/testing.go",
Colin Cross2fe66872015-03-30 17:20:39 -0700278 ],
Colin Cross72bb3632017-07-13 16:23:21 -0700279 testSrcs: [
Colin Cross44f06682017-11-29 00:17:36 -0800280 "java/app_test.go",
Colin Cross3d7c9822019-03-01 13:46:24 -0800281 "java/device_host_converter_test.go",
Colin Cross638149e2019-01-05 22:12:12 -0800282 "java/dexpreopt_test.go",
Colin Cross76228672019-02-25 16:40:34 -0800283 "java/dexpreopt_bootjars_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700284 "java/java_test.go",
Brandon Lee5d45c6f2018-08-15 15:35:38 -0700285 "java/jdeps_test.go",
Colin Cross21fc9bb2019-01-18 15:05:09 -0800286 "java/kotlin_test.go",
Colin Crossbe9cdb82019-01-21 21:37:16 -0800287 "java/plugin_test.go",
Colin Crossfb6d7812019-01-09 22:17:55 -0800288 "java/sdk_test.go",
Colin Cross72bb3632017-07-13 16:23:21 -0700289 ],
Dan Willemsen98b26c52015-07-27 15:08:24 -0700290 pluginFor: ["soong_build"],
Colin Cross2fe66872015-03-30 17:20:39 -0700291}
292
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800293bootstrap_go_package {
Colin Cross3e3e72d2017-06-22 17:20:19 -0700294 name: "soong-java-config",
295 pkgPath: "android/soong/java/config",
296 deps: [
297 "blueprint-proptools",
298 "soong-android",
299 ],
300 srcs: [
301 "java/config/config.go",
Colin Crossfee57cb2017-09-05 13:16:45 -0700302 "java/config/error_prone.go",
Colin Cross93e85952017-08-15 13:34:18 -0700303 "java/config/kotlin.go",
Colin Cross3e3e72d2017-06-22 17:20:19 -0700304 "java/config/makevars.go",
305 ],
306}
307
308bootstrap_go_package {
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800309 name: "soong-python",
310 pkgPath: "android/soong/python",
311 deps: [
312 "blueprint",
313 "soong-android",
yelinhsieh80880a32018-11-06 11:49:55 +0800314 "soong-tradefed",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800315 ],
316 srcs: [
Nan Zhang5323f8e2017-05-10 13:37:54 -0700317 "python/androidmk.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800318 "python/binary.go",
319 "python/builder.go",
Nan Zhanga3fc4ba2017-07-20 17:43:37 -0700320 "python/defaults.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700321 "python/installer.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800322 "python/library.go",
Nan Zhangb8fa1972017-12-22 16:12:00 -0800323 "python/proto.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800324 "python/python.go",
Nan Zhang5323f8e2017-05-10 13:37:54 -0700325 "python/test.go",
Nan Zhangdb0b9a32017-02-27 10:12:13 -0800326 ],
327 testSrcs: [
328 "python/python_test.go",
329 ],
330 pluginFor: ["soong_build"],
331}
332
Jeff Gastonefc1b412017-03-29 17:29:06 -0700333bootstrap_go_package {
334 name: "soong-shared",
335 pkgPath: "android/soong/shared",
336 srcs: [
337 "shared/paths.go",
338 ],
339}
340
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900341bootstrap_go_package {
Colin Cross303e21f2018-08-07 16:49:25 -0700342 name: "soong-tradefed",
343 pkgPath: "android/soong/tradefed",
344 deps: [
345 "blueprint",
346 "soong-android",
347 ],
348 srcs: [
349 "tradefed/autogen.go",
350 "tradefed/config.go",
351 "tradefed/makevars.go",
352 ],
353 pluginFor: ["soong_build"],
354}
355
356bootstrap_go_package {
Jiyong Park5a8d1be2018-04-25 22:57:34 +0900357 name: "soong-xml",
358 pkgPath: "android/soong/xml",
359 deps: [
360 "blueprint",
361 "blueprint-pathtools",
362 "soong",
363 "soong-android",
364 ],
365 srcs: [
366 "xml/xml.go",
367 ],
368 testSrcs: [
369 "xml/xml_test.go",
370 ],
371 pluginFor: ["soong_build"],
372}
373
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900374bootstrap_go_package {
375 name: "soong-apex",
376 pkgPath: "android/soong/apex",
377 deps: [
378 "blueprint",
379 "soong",
380 "soong-android",
381 "soong-cc",
382 "soong-java",
Alex Light778127a2019-02-27 14:19:50 -0800383 "soong-python",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900384 ],
385 srcs: [
386 "apex/apex.go",
Jiyong Parkff1458f2018-10-12 21:49:38 +0900387 "apex/key.go",
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900388 ],
Jiyong Park25fc6a92018-11-18 18:02:45 +0900389 testSrcs: [
390 "apex/apex_test.go",
391 ],
Jiyong Park48ca7dc2018-10-10 14:01:00 +0900392 pluginFor: ["soong_build"],
393}
394
Inseob Kimc0907f12019-02-08 21:00:45 +0900395bootstrap_go_package {
396 name: "soong-sysprop",
397 pkgPath: "android/soong/sysprop",
398 deps: [
399 "blueprint",
400 "soong",
401 "soong-android",
402 "soong-cc",
403 "soong-java",
404 ],
405 srcs: [
406 "sysprop/sysprop_library.go",
407 ],
408 testSrcs: [
409 "sysprop/sysprop_test.go",
410 ],
411 pluginFor: ["soong_build"],
412}
413
Colin Cross80031312015-03-14 14:28:22 -0700414//
Dan Willemsen00fcbde2016-11-17 00:25:59 -0800415// Defaults to enable various configurations of host bionic
416//
417
418cc_defaults {
419 name: "linux_bionic_supported",
420 host_supported: true,
421 target: {
422 host: {
423 enabled: false,
424 },
425 linux_bionic: {
426 enabled: true,
427 },
428 },
429}
430
431//
Colin Cross80031312015-03-14 14:28:22 -0700432// C static libraries extracted from the gcc toolchain
433//
434
Colin Crossba442872015-03-14 14:26:32 -0700435toolchain_library {
436 name: "libatomic",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800437 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700438 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900439 recovery_available: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700440
Dan Willemseneba363e2015-07-08 18:11:14 -0700441 arch: {
442 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700443 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/lib/libatomic.a",
444 },
445 arm64: {
446 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/lib64/libatomic.a",
447 },
448 x86: {
449 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/lib/libatomic.a",
450 },
451 x86_64: {
452 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 -0700453 },
454 },
Colin Crossba442872015-03-14 14:26:32 -0700455}
Colin Cross3f40fa42015-01-30 17:27:36 -0800456
Colin Crossba442872015-03-14 14:26:32 -0700457toolchain_library {
458 name: "libgcc",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800459 defaults: ["linux_bionic_supported"],
Dan Willemsen4416e5d2017-04-06 12:43:22 -0700460 vendor_available: true,
Jiyong Parkf9332f12018-02-01 00:54:12 +0900461 recovery_available: true,
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700462
Dan Willemseneba363e2015-07-08 18:11:14 -0700463 arch: {
464 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700465 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a",
466 },
467 arm64: {
468 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a",
469 },
470 x86: {
471 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcc.a",
472 },
473 x86_64: {
474 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 -0700475 },
476 },
Colin Crossba442872015-03-14 14:26:32 -0700477}
Colin Cross3f40fa42015-01-30 17:27:36 -0800478
Colin Crossba442872015-03-14 14:26:32 -0700479toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800480 name: "libwinpthread",
481 host_supported: true,
482 enabled: false,
483 target: {
484 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700485 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800486 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700487 windows_x86: {
488 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
489 },
490 windows_x86_64: {
491 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
492 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800493 },
Jaewoong Jung62707f72018-11-16 13:26:43 -0800494 notice: ":mingw-libwinpthread-notice",
Josh Gao7bd4c5c2017-02-23 17:52:24 -0800495}
496
497toolchain_library {
Colin Crossba442872015-03-14 14:26:32 -0700498 name: "libgcov",
Dan Willemsen2e47b342016-11-17 01:02:25 -0800499 defaults: ["linux_bionic_supported"],
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700500
Dan Willemseneba363e2015-07-08 18:11:14 -0700501 arch: {
502 arm: {
Dan Willemsenfeea4df2018-10-07 18:16:48 -0700503 src: "prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/lib/gcc/arm-linux-androideabi/4.9.x/libgcov.a",
504 },
505 arm64: {
506 src: "prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x/libgcov.a",
507 },
508 x86: {
509 src: "prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/lib/gcc/x86_64-linux-android/4.9.x/32/libgcov.a",
510 },
511 x86_64: {
512 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 -0700513 },
514 },
Colin Crossba442872015-03-14 14:26:32 -0700515}
Jiyong Parkd773eb32017-07-03 13:18:12 +0900516
517kernel_headers {
518 name: "device_kernel_headers",
519 vendor: true,
520}
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700521
522cc_genrule {
523 name: "host_bionic_linker_asm",
524 host_supported: true,
525 device_supported: false,
526 target: {
527 linux_bionic: {
528 enabled: true,
529 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700530 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700531 enabled: false,
532 },
533 darwin: {
534 enabled: false,
535 },
536 },
537 tools: ["extract_linker"],
538 cmd: "$(location) -s $(out) $(in)",
539 srcs: [":linker"],
540 out: ["linker.s"],
541}
542
543cc_genrule {
Dan Willemsena0790e32018-10-12 00:24:23 -0700544 name: "host_bionic_linker_flags",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700545 host_supported: true,
546 device_supported: false,
547 target: {
548 linux_bionic: {
549 enabled: true,
550 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700551 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700552 enabled: false,
553 },
554 darwin: {
555 enabled: false,
556 },
557 },
558 tools: ["extract_linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700559 cmd: "$(location) -f $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700560 srcs: [":linker"],
Dan Willemsena0790e32018-10-12 00:24:23 -0700561 out: ["linker.flags"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700562}