blob: 0e8d86d3b7d809038d976fde9e6033cb869ce737 [file] [log] [blame]
Bob Badour02040de2021-02-03 18:08:28 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Dan Willemsen377737a2016-08-15 15:02:23 -07005subdirs = [
6 "androidmk",
Jeff Gastonaff66e52017-06-19 15:39:54 -07007 "bpfix",
Dan Willemsen377737a2016-08-15 15:02:23 -07008 "cmd/*",
Jeff Gastonf1fd45e2017-08-09 18:25:28 -07009 "fs",
10 "finder",
Jeff Gaston01547b22017-08-21 20:13:28 -070011 "jar",
Jeff Gaston11b5c512017-10-12 12:19:14 -070012 "zip",
Dan Willemsen377737a2016-08-15 15:02:23 -070013 "third_party/zip",
Dan Willemsen1e704462016-08-21 15:17:17 -070014 "ui/*",
Dan Willemsen377737a2016-08-15 15:02:23 -070015]
Colin Cross68f55102015-03-25 14:43:57 -070016
17bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070018 name: "soong",
19 pkgPath: "android/soong",
20 deps: [
21 "blueprint",
22 ],
23 srcs: [
24 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070025 ],
26}
27
Colin Cross80031312015-03-14 14:28:22 -070028//
Dan Willemsen00fcbde2016-11-17 00:25:59 -080029// Defaults to enable various configurations of host bionic
30//
31
32cc_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 Cross80031312015-03-14 14:28:22 -070046// C static libraries extracted from the gcc toolchain
47//
48
Colin Crossba442872015-03-14 14:26:32 -070049toolchain_library {
Josh Gao7bd4c5c2017-02-23 17:52:24 -080050 name: "libwinpthread",
51 host_supported: true,
52 enabled: false,
53 target: {
54 windows: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -070055 enabled: true,
Josh Gao7bd4c5c2017-02-23 17:52:24 -080056 },
Dan Willemsenfeea4df2018-10-07 18:16:48 -070057 windows_x86: {
58 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a",
59 },
60 windows_x86_64: {
61 src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a",
62 },
Josh Gao7bd4c5c2017-02-23 17:52:24 -080063 },
Jaewoong Jung62707f72018-11-16 13:26:43 -080064 notice: ":mingw-libwinpthread-notice",
Dan Willemsen9fe14102021-07-13 21:52:04 -070065 licenses: ["winpthreads_license"],
Josh Gao7bd4c5c2017-02-23 17:52:24 -080066}
67
Jiyong Parkd773eb32017-07-03 13:18:12 +090068kernel_headers {
69 name: "device_kernel_headers",
70 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -070071 recovery_available: true,
Jiyong Parkd773eb32017-07-03 13:18:12 +090072}
Dan Willemsenc77a0b32017-09-18 23:19:12 -070073
74cc_genrule {
75 name: "host_bionic_linker_asm",
76 host_supported: true,
77 device_supported: false,
78 target: {
79 linux_bionic: {
80 enabled: true,
81 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -070082 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -070083 enabled: false,
84 },
85 darwin: {
86 enabled: false,
87 },
88 },
89 tools: ["extract_linker"],
90 cmd: "$(location) -s $(out) $(in)",
91 srcs: [":linker"],
92 out: ["linker.s"],
93}
94
95cc_genrule {
Colin Cross9cfe6112021-06-11 18:02:22 -070096 name: "host_bionic_linker_script",
Dan Willemsenc77a0b32017-09-18 23:19:12 -070097 host_supported: true,
98 device_supported: false,
99 target: {
100 linux_bionic: {
101 enabled: true,
102 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -0700103 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700104 enabled: false,
105 },
106 darwin: {
107 enabled: false,
108 },
109 },
110 tools: ["extract_linker"],
Colin Cross9cfe6112021-06-11 18:02:22 -0700111 cmd: "$(location) -T $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700112 srcs: [":linker"],
Colin Cross9cfe6112021-06-11 18:02:22 -0700113 out: ["linker.script"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700114}
Paul Duffin1ab61862021-01-20 17:44:53 +0000115
116// Instantiate the dex_bootjars singleton module.
117dex_bootjars {
118 name: "dex_bootjars",
119}
Pirama Arumuga Nainar2558ce32021-06-24 15:59:38 -0700120
121// Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
122// parse cc/config/global.go.
123genrule {
124 name: "get_clang_version_test",
125 cmd: "$(location get_clang_version) > $(out)",
126 tools: ["get_clang_version"],
127 srcs: ["cc/config/global.go"],
128 out: ["clang-prebuilts-version.txt"],
129}
Jiakai Zhang0a0a2fb2021-09-30 09:38:19 +0000130
131dexpreopt_systemserver_check {
132 name: "dexpreopt_systemserver_check",
133}