Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 5 | subdirs = [ |
| 6 | "androidmk", |
Jeff Gaston | aff66e5 | 2017-06-19 15:39:54 -0700 | [diff] [blame] | 7 | "bpfix", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 8 | "cmd/*", |
Jeff Gaston | f1fd45e | 2017-08-09 18:25:28 -0700 | [diff] [blame] | 9 | "fs", |
| 10 | "finder", |
Jeff Gaston | 01547b2 | 2017-08-21 20:13:28 -0700 | [diff] [blame] | 11 | "jar", |
Jeff Gaston | 11b5c51 | 2017-10-12 12:19:14 -0700 | [diff] [blame] | 12 | "zip", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 13 | "third_party/zip", |
Dan Willemsen | 1e70446 | 2016-08-21 15:17:17 -0700 | [diff] [blame] | 14 | "ui/*", |
Dan Willemsen | 377737a | 2016-08-15 15:02:23 -0700 | [diff] [blame] | 15 | ] |
Colin Cross | 68f5510 | 2015-03-25 14:43:57 -0700 | [diff] [blame] | 16 | |
| 17 | bootstrap_go_package { |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 18 | name: "soong", |
| 19 | pkgPath: "android/soong", |
| 20 | deps: [ |
| 21 | "blueprint", |
| 22 | ], |
| 23 | srcs: [ |
| 24 | "doc.go", |
Colin Cross | 463a90e | 2015-06-17 14:20:06 -0700 | [diff] [blame] | 25 | ], |
| 26 | } |
| 27 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 28 | // |
Dan Willemsen | 00fcbde | 2016-11-17 00:25:59 -0800 | [diff] [blame] | 29 | // Defaults to enable various configurations of host bionic |
| 30 | // |
| 31 | |
| 32 | cc_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 Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame] | 46 | // C static libraries extracted from the gcc toolchain |
| 47 | // |
| 48 | |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 49 | kernel_headers { |
| 50 | name: "device_kernel_headers", |
| 51 | vendor: true, |
Hridya Valsaraju | d61df50 | 2018-08-21 15:51:20 -0700 | [diff] [blame] | 52 | recovery_available: true, |
Daniel Norman | ca2ed38 | 2022-03-04 18:45:52 +0000 | [diff] [blame] | 53 | min_sdk_version: "apex_inherit", |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 54 | } |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 55 | |
| 56 | cc_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 Cross | 5b588dd | 2022-03-29 20:46:45 -0700 | [diff] [blame] | 64 | linux_musl: { |
| 65 | enabled: false, |
| 66 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 67 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 68 | 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 | |
| 80 | cc_genrule { |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 81 | name: "host_bionic_linker_script", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 82 | host_supported: true, |
| 83 | device_supported: false, |
| 84 | target: { |
| 85 | linux_bionic: { |
| 86 | enabled: true, |
| 87 | }, |
Colin Cross | 5b588dd | 2022-03-29 20:46:45 -0700 | [diff] [blame] | 88 | linux_musl: { |
| 89 | enabled: false, |
| 90 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 91 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 92 | enabled: false, |
| 93 | }, |
| 94 | darwin: { |
| 95 | enabled: false, |
| 96 | }, |
| 97 | }, |
| 98 | tools: ["extract_linker"], |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 99 | cmd: "$(location) -T $(out) $(in)", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 100 | srcs: [":linker"], |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 101 | out: ["linker.script"], |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 102 | } |
Paul Duffin | 1ab6186 | 2021-01-20 17:44:53 +0000 | [diff] [blame] | 103 | |
| 104 | // Instantiate the dex_bootjars singleton module. |
| 105 | dex_bootjars { |
| 106 | name: "dex_bootjars", |
Justin Yun | 22c8aca | 2024-06-05 20:25:03 +0900 | [diff] [blame] | 107 | no_full_install: true, |
Paul Duffin | 1ab6186 | 2021-01-20 17:44:53 +0000 | [diff] [blame] | 108 | } |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 109 | |
| 110 | // Pseudo-test that's run on checkbuilds to ensure that get_clang_version can |
| 111 | // parse cc/config/global.go. |
| 112 | genrule { |
| 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 Zhang | 0a0a2fb | 2021-09-30 09:38:19 +0000 | [diff] [blame] | 119 | |
| 120 | dexpreopt_systemserver_check { |
| 121 | name: "dexpreopt_systemserver_check", |
| 122 | } |
Inseob Kim | 4f1f3d9 | 2022-04-25 18:23:58 +0900 | [diff] [blame] | 123 | |
Spandan Das | e3fcb41 | 2023-10-26 20:48:02 +0000 | [diff] [blame] | 124 | // container for apex_contributions selected using build flags |
| 125 | all_apex_contributions { |
| 126 | name: "all_apex_contributions", |
| 127 | } |
Inseob Kim | 8cdaf51 | 2024-06-11 10:59:00 +0900 | [diff] [blame] | 128 | |
| 129 | product_config { |
| 130 | name: "product_config", |
Inseob Kim | 320628f | 2024-06-18 11:09:12 +0900 | [diff] [blame] | 131 | visibility: ["//device/google/cuttlefish/system_image"], |
Inseob Kim | 8cdaf51 | 2024-06-11 10:59:00 +0900 | [diff] [blame] | 132 | } |
Inseob Kim | 52ce101 | 2024-07-31 02:00:41 +0000 | [diff] [blame] | 133 | |
| 134 | build_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 Kim | a8bc86a | 2024-08-05 12:51:05 +0900 | [diff] [blame^] | 144 | |
| 145 | build_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 | } |