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", |
| 107 | } |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 108 | |
| 109 | // Pseudo-test that's run on checkbuilds to ensure that get_clang_version can |
| 110 | // parse cc/config/global.go. |
| 111 | genrule { |
| 112 | name: "get_clang_version_test", |
| 113 | cmd: "$(location get_clang_version) > $(out)", |
| 114 | tools: ["get_clang_version"], |
| 115 | srcs: ["cc/config/global.go"], |
| 116 | out: ["clang-prebuilts-version.txt"], |
| 117 | } |
Jiakai Zhang | 0a0a2fb | 2021-09-30 09:38:19 +0000 | [diff] [blame] | 118 | |
| 119 | dexpreopt_systemserver_check { |
| 120 | name: "dexpreopt_systemserver_check", |
| 121 | } |
Inseob Kim | 4f1f3d9 | 2022-04-25 18:23:58 +0900 | [diff] [blame] | 122 | |
| 123 | // buildinfo.prop contains common properties for system/build.prop, like ro.build.version.* |
| 124 | buildinfo_prop { |
| 125 | name: "buildinfo.prop", |
| 126 | |
| 127 | // not installable because this will be included to system/build.prop |
| 128 | installable: false, |
| 129 | |
| 130 | // Currently, only microdroid can refer to buildinfo.prop |
| 131 | visibility: ["//packages/modules/Virtualization/microdroid"], |
| 132 | } |
Spandan Das | e3fcb41 | 2023-10-26 20:48:02 +0000 | [diff] [blame] | 133 | |
| 134 | // container for apex_contributions selected using build flags |
| 135 | all_apex_contributions { |
| 136 | name: "all_apex_contributions", |
| 137 | } |