Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 3 | default_visibility: [ |
| 4 | "//build/soong:__subpackages__", |
| 5 | ], |
Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 6 | } |
| 7 | |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 8 | subdirs = [ |
| 9 | "androidmk", |
Jeff Gaston | aff66e5 | 2017-06-19 15:39:54 -0700 | [diff] [blame] | 10 | "bpfix", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 11 | "cmd/*", |
Jeff Gaston | f1fd45e | 2017-08-09 18:25:28 -0700 | [diff] [blame] | 12 | "fs", |
| 13 | "finder", |
Jeff Gaston | 01547b2 | 2017-08-21 20:13:28 -0700 | [diff] [blame] | 14 | "jar", |
Jeff Gaston | 11b5c51 | 2017-10-12 12:19:14 -0700 | [diff] [blame] | 15 | "zip", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 16 | "third_party/zip", |
Dan Willemsen | 1e70446 | 2016-08-21 15:17:17 -0700 | [diff] [blame] | 17 | "ui/*", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 18 | ] |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 19 | |
| 20 | bootstrap_go_package { |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 21 | name: "soong", |
| 22 | pkgPath: "android/soong", |
| 23 | deps: [ |
| 24 | "blueprint", |
| 25 | ], |
| 26 | srcs: [ |
| 27 | "doc.go", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 28 | ], |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 29 | // Used by plugins, though probably shouldn't be. |
| 30 | visibility: ["//visibility:public"], |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 31 | } |
| 32 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 33 | // |
Dan Willemsen | 00fcbde | 2016-11-17 00:25:59 -0800 | [diff] [blame] | 34 | // Defaults to enable various configurations of host bionic |
| 35 | // |
| 36 | |
| 37 | cc_defaults { |
| 38 | name: "linux_bionic_supported", |
| 39 | host_supported: true, |
| 40 | target: { |
| 41 | host: { |
| 42 | enabled: false, |
| 43 | }, |
| 44 | linux_bionic: { |
| 45 | enabled: true, |
| 46 | }, |
| 47 | }, |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 48 | defaults_visibility: ["//visibility:public"], |
Dan Willemsen | 00fcbde | 2016-11-17 00:25:59 -0800 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | // |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 52 | // C static libraries extracted from the gcc toolchain |
| 53 | // |
| 54 | |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 55 | kernel_headers { |
| 56 | name: "device_kernel_headers", |
| 57 | vendor: true, |
Hridya Valsaraju | d61df50 | 2018-08-21 15:51:20 -0700 | [diff] [blame] | 58 | recovery_available: true, |
Daniel Norman | ca2ed38 | 2022-03-04 18:45:52 +0000 | [diff] [blame] | 59 | min_sdk_version: "apex_inherit", |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 60 | visibility: ["//visibility:public"], |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 61 | } |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 62 | |
| 63 | cc_genrule { |
| 64 | name: "host_bionic_linker_asm", |
| 65 | host_supported: true, |
| 66 | device_supported: false, |
| 67 | target: { |
| 68 | linux_bionic: { |
| 69 | enabled: true, |
| 70 | }, |
Colin Cross | 5b588dd | 2022-03-29 20:46:45 -0700 | [diff] [blame] | 71 | linux_musl: { |
| 72 | enabled: false, |
| 73 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 74 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 75 | enabled: false, |
| 76 | }, |
| 77 | darwin: { |
| 78 | enabled: false, |
| 79 | }, |
| 80 | }, |
| 81 | tools: ["extract_linker"], |
| 82 | cmd: "$(location) -s $(out) $(in)", |
| 83 | srcs: [":linker"], |
| 84 | out: ["linker.s"], |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 85 | visibility: ["//bionic/libc"], |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | cc_genrule { |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 89 | name: "host_bionic_linker_script", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 90 | host_supported: true, |
| 91 | device_supported: false, |
| 92 | target: { |
| 93 | linux_bionic: { |
| 94 | enabled: true, |
| 95 | }, |
Colin Cross | 5b588dd | 2022-03-29 20:46:45 -0700 | [diff] [blame] | 96 | linux_musl: { |
| 97 | enabled: false, |
| 98 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 99 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 100 | enabled: false, |
| 101 | }, |
| 102 | darwin: { |
| 103 | enabled: false, |
| 104 | }, |
| 105 | }, |
| 106 | tools: ["extract_linker"], |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 107 | cmd: "$(location) -T $(out) $(in)", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 108 | srcs: [":linker"], |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 109 | out: ["linker.script"], |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 110 | visibility: ["//visibility:public"], |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 111 | } |
Paul Duffin | 1ab6186 | 2021-01-20 17:44:53 +0000 | [diff] [blame] | 112 | |
| 113 | // Instantiate the dex_bootjars singleton module. |
| 114 | dex_bootjars { |
| 115 | name: "dex_bootjars", |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 116 | visibility: ["//visibility:public"], |
Paul Duffin | 1ab6186 | 2021-01-20 17:44:53 +0000 | [diff] [blame] | 117 | } |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 118 | |
| 119 | // Pseudo-test that's run on checkbuilds to ensure that get_clang_version can |
| 120 | // parse cc/config/global.go. |
| 121 | genrule { |
| 122 | name: "get_clang_version_test", |
| 123 | cmd: "$(location get_clang_version) > $(out)", |
| 124 | tools: ["get_clang_version"], |
| 125 | srcs: ["cc/config/global.go"], |
| 126 | out: ["clang-prebuilts-version.txt"], |
| 127 | } |
Jiakai Zhang | 0a0a2fb | 2021-09-30 09:38:19 +0000 | [diff] [blame] | 128 | |
| 129 | dexpreopt_systemserver_check { |
| 130 | name: "dexpreopt_systemserver_check", |
| 131 | } |
Inseob Kim | 4f1f3d9 | 2022-04-25 18:23:58 +0900 | [diff] [blame] | 132 | |
Spandan Das | e3fcb41 | 2023-10-26 20:48:02 +0000 | [diff] [blame] | 133 | // container for apex_contributions selected using build flags |
| 134 | all_apex_contributions { |
| 135 | name: "all_apex_contributions", |
Cole Faust | 16d227a | 2024-09-18 16:42:01 -0700 | [diff] [blame] | 136 | visibility: ["//visibility:public"], |
Spandan Das | e3fcb41 | 2023-10-26 20:48:02 +0000 | [diff] [blame] | 137 | } |
Inseob Kim | 58c802f | 2024-06-11 10:59:00 +0900 | [diff] [blame] | 138 | |
| 139 | product_config { |
| 140 | name: "product_config", |
Inseob Kim | 2da72af | 2024-06-18 11:09:12 +0900 | [diff] [blame] | 141 | visibility: ["//device/google/cuttlefish/system_image"], |
Inseob Kim | 58c802f | 2024-06-11 10:59:00 +0900 | [diff] [blame] | 142 | } |
Inseob Kim | bc4ef22 | 2024-07-31 02:00:41 +0000 | [diff] [blame] | 143 | |
| 144 | build_prop { |
| 145 | name: "system-build.prop", |
| 146 | stem: "build.prop", |
| 147 | product_config: ":product_config", |
| 148 | // Currently, only microdroid and cf system image can refer to system-build.prop |
| 149 | visibility: [ |
| 150 | "//device/google/cuttlefish/system_image", |
| 151 | "//packages/modules/Virtualization/build/microdroid", |
| 152 | ], |
| 153 | } |
Inseob Kim | acf9174 | 2024-08-05 12:51:05 +0900 | [diff] [blame] | 154 | |
| 155 | build_prop { |
| 156 | name: "system_ext-build.prop", |
| 157 | stem: "build.prop", |
| 158 | system_ext_specific: true, |
| 159 | product_config: ":product_config", |
| 160 | relative_install_path: "etc", // system_ext/etc/build.prop |
| 161 | visibility: ["//visibility:private"], |
| 162 | } |
Inseob Kim | 01d4f8b | 2024-08-08 17:47:14 +0900 | [diff] [blame] | 163 | |
| 164 | build_prop { |
| 165 | name: "product-build.prop", |
| 166 | stem: "build.prop", |
| 167 | product_specific: true, |
| 168 | product_config: ":product_config", |
| 169 | relative_install_path: "etc", // product/etc/build.prop |
| 170 | visibility: ["//visibility:private"], |
| 171 | } |
| 172 | |
| 173 | build_prop { |
| 174 | name: "odm-build.prop", |
| 175 | stem: "build.prop", |
| 176 | device_specific: true, |
| 177 | product_config: ":product_config", |
| 178 | relative_install_path: "etc", // odm/etc/build.prop |
| 179 | visibility: ["//visibility:private"], |
| 180 | } |