blob: 9588e670eea01c8c71cf02defee9ae11079220dd [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/*",
liquan.zhou18b74f02023-02-09 15:58:33 +080015 "t2m",
Dan Willemsen377737a2016-08-15 15:02:23 -070016]
Colin Cross68f55102015-03-25 14:43:57 -070017
18bootstrap_go_package {
Colin Cross463a90e2015-06-17 14:20:06 -070019 name: "soong",
20 pkgPath: "android/soong",
21 deps: [
22 "blueprint",
23 ],
24 srcs: [
25 "doc.go",
Colin Cross463a90e2015-06-17 14:20:06 -070026 ],
27}
28
Colin Cross80031312015-03-14 14:28:22 -070029//
Dan Willemsen00fcbde2016-11-17 00:25:59 -080030// Defaults to enable various configurations of host bionic
31//
32
33cc_defaults {
34 name: "linux_bionic_supported",
35 host_supported: true,
36 target: {
37 host: {
38 enabled: false,
39 },
40 linux_bionic: {
41 enabled: true,
42 },
43 },
44}
45
46//
Colin Cross80031312015-03-14 14:28:22 -070047// C static libraries extracted from the gcc toolchain
48//
49
Jiyong Parkd773eb32017-07-03 13:18:12 +090050kernel_headers {
51 name: "device_kernel_headers",
52 vendor: true,
Hridya Valsarajud61df502018-08-21 15:51:20 -070053 recovery_available: true,
Daniel Normanca2ed382022-03-04 18:45:52 +000054 min_sdk_version: "apex_inherit",
Jiyong Parkd773eb32017-07-03 13:18:12 +090055}
Dan Willemsenc77a0b32017-09-18 23:19:12 -070056
57cc_genrule {
58 name: "host_bionic_linker_asm",
59 host_supported: true,
60 device_supported: false,
61 target: {
62 linux_bionic: {
63 enabled: true,
64 },
Colin Cross5b588dd2022-03-29 20:46:45 -070065 linux_musl: {
66 enabled: false,
67 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -070068 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -070069 enabled: false,
70 },
71 darwin: {
72 enabled: false,
73 },
74 },
75 tools: ["extract_linker"],
76 cmd: "$(location) -s $(out) $(in)",
77 srcs: [":linker"],
78 out: ["linker.s"],
79}
80
81cc_genrule {
Colin Cross9cfe6112021-06-11 18:02:22 -070082 name: "host_bionic_linker_script",
Dan Willemsenc77a0b32017-09-18 23:19:12 -070083 host_supported: true,
84 device_supported: false,
85 target: {
86 linux_bionic: {
87 enabled: true,
88 },
Colin Cross5b588dd2022-03-29 20:46:45 -070089 linux_musl: {
90 enabled: false,
91 },
Dan Willemsen9d6c6722017-10-02 10:41:07 -070092 linux_glibc: {
Dan Willemsenc77a0b32017-09-18 23:19:12 -070093 enabled: false,
94 },
95 darwin: {
96 enabled: false,
97 },
98 },
99 tools: ["extract_linker"],
Colin Cross9cfe6112021-06-11 18:02:22 -0700100 cmd: "$(location) -T $(out) $(in)",
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700101 srcs: [":linker"],
Colin Cross9cfe6112021-06-11 18:02:22 -0700102 out: ["linker.script"],
Dan Willemsenc77a0b32017-09-18 23:19:12 -0700103}
Paul Duffin1ab61862021-01-20 17:44:53 +0000104
105// Instantiate the dex_bootjars singleton module.
106dex_bootjars {
107 name: "dex_bootjars",
108}
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 Kimc7c47462022-04-25 18:23:58 +0900123
124// buildinfo.prop contains common properties for system/build.prop, like ro.build.version.*
125buildinfo_prop {
126 name: "buildinfo.prop",
127
128 // not installable because this will be included to system/build.prop
129 installable: false,
130
131 // Currently, only microdroid can refer to buildinfo.prop
132 visibility: ["//packages/modules/Virtualization/microdroid"],
133}