blob: 81d91ced0a7673128ef2ba48bb9903f666dc1fd4 [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
Jiyong Parkd773eb32017-07-03 13:18:12 +090049kernel_headers {
50 name: "device_kernel_headers",
51 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -070052 recovery_available: true,
Daniel Normanca2ed382022-03-04 18:45:52 +000053 min_sdk_version: "apex_inherit",
Jiyong Parkd773eb32017-07-03 13:18:12 +090054}
Dan Willemsenc77a0b32017-09-18 23:19:12 -070055
56cc_genrule {
57 name: "host_bionic_linker_asm",
58 host_supported: true,
59 device_supported: false,
60 target: {
61 linux_bionic: {
62 enabled: true,
63 },
Colin Cross5b588dd2022-03-29 20:46:45 -070064 linux_musl: {
65 enabled: false,
66 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -070067 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -070068 enabled: false,
69 },
70 darwin: {
71 enabled: false,
72 },
73 },
74 tools: ["extract_linker"],
75 cmd: "$(location) -s $(out) $(in)",
76 srcs: [":linker"],
77 out: ["linker.s"],
78}
79
80cc_genrule {
Colin Cross9cfe6112021-06-11 18:02:22 -070081 name: "host_bionic_linker_script",
Dan Willemsenc77a0b32017-09-18 23:19:12 -070082 host_supported: true,
83 device_supported: false,
84 target: {
85 linux_bionic: {
86 enabled: true,
87 },
Colin Cross5b588dd2022-03-29 20:46:45 -070088 linux_musl: {
89 enabled: false,
90 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -070091 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -070092 enabled: false,
93 },
94 darwin: {
95 enabled: false,
96 },
97 },
98 tools: ["extract_linker"],
Colin Cross9cfe6112021-06-11 18:02:22 -070099 cmd: "$(location) -T $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700100 srcs: [":linker"],
Colin Cross9cfe6112021-06-11 18:02:22 -0700101 out: ["linker.script"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700102}
Paul Duffin1ab61862021-01-20 17:44:53 +0000103
104// Instantiate the dex_bootjars singleton module.
105dex_bootjars {
106 name: "dex_bootjars",
Justin Yun22c8aca2024-06-05 20:25:03 +0900107 no_full_install: true,
Paul Duffin1ab61862021-01-20 17:44:53 +0000108}
Pirama Arumuga Nainar2558ce32021-06-24 15:59:38 -0700109
110// Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
111// parse cc/config/global.go.
112genrule {
113 name: "get_clang_version_test",
114 cmd: "$(location get_clang_version) > $(out)",
115 tools: ["get_clang_version"],
116 srcs: ["cc/config/global.go"],
117 out: ["clang-prebuilts-version.txt"],
118}
Jiakai Zhang0a0a2fb2021-09-30 09:38:19 +0000119
120dexpreopt_systemserver_check {
121 name: "dexpreopt_systemserver_check",
122}
Inseob Kim4f1f3d92022-04-25 18:23:58 +0900123
Spandan Dase3fcb412023-10-26 20:48:02 +0000124// container for apex_contributions selected using build flags
125all_apex_contributions {
126 name: "all_apex_contributions",
127}
Inseob Kim8cdaf512024-06-11 10:59:00 +0900128
129product_config {
130 name: "product_config",
Inseob Kim320628f2024-06-18 11:09:12 +0900131 visibility: ["//device/google/cuttlefish/system_image"],
Inseob Kim8cdaf512024-06-11 10:59:00 +0900132}
Inseob Kim52ce1012024-07-31 02:00:41 +0000133
134build_prop {
135 name: "system-build.prop",
136 stem: "build.prop",
137 product_config: ":product_config",
138 // Currently, only microdroid and cf system image can refer to system-build.prop
139 visibility: [
140 "//device/google/cuttlefish/system_image",
141 "//packages/modules/Virtualization/microdroid",
142 ],
143}
Inseob Kima8bc86a2024-08-05 12:51:05 +0900144
145build_prop {
146 name: "system_ext-build.prop",
147 stem: "build.prop",
148 system_ext_specific: true,
149 product_config: ":product_config",
150 relative_install_path: "etc", // system_ext/etc/build.prop
151 visibility: ["//visibility:private"],
152}
Inseob Kim46288272024-08-08 17:47:14 +0900153
154build_prop {
155 name: "product-build.prop",
156 stem: "build.prop",
157 product_specific: true,
158 product_config: ":product_config",
159 relative_install_path: "etc", // product/etc/build.prop
160 visibility: ["//visibility:private"],
161}
162
163build_prop {
164 name: "odm-build.prop",
165 stem: "build.prop",
166 device_specific: true,
167 product_config: ":product_config",
168 relative_install_path: "etc", // odm/etc/build.prop
169 visibility: ["//visibility:private"],
170}