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 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 49 | toolchain_library { |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 50 | name: "libwinpthread", |
| 51 | host_supported: true, |
| 52 | enabled: false, |
| 53 | target: { |
| 54 | windows: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 55 | enabled: true, |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 56 | }, |
Dan Willemsen | feea4df | 2018-10-07 18:16:48 -0700 | [diff] [blame] | 57 | windows_x86: { |
| 58 | src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib32/libwinpthread.a", |
| 59 | }, |
| 60 | windows_x86_64: { |
| 61 | src: "prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/lib/libwinpthread.a", |
| 62 | }, |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 63 | }, |
Jaewoong Jung | 62707f7 | 2018-11-16 13:26:43 -0800 | [diff] [blame] | 64 | notice: ":mingw-libwinpthread-notice", |
Dan Willemsen | 9fe1410 | 2021-07-13 21:52:04 -0700 | [diff] [blame] | 65 | licenses: ["winpthreads_license"], |
Josh Gao | 7bd4c5c | 2017-02-23 17:52:24 -0800 | [diff] [blame] | 66 | } |
| 67 | |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 68 | kernel_headers { |
| 69 | name: "device_kernel_headers", |
| 70 | vendor: true, |
Hridya Valsaraju | d61df50 | 2018-08-21 15:51:20 -0700 | [diff] [blame] | 71 | recovery_available: true, |
Jiyong Park | d773eb3 | 2017-07-03 13:18:12 +0900 | [diff] [blame] | 72 | } |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 73 | |
| 74 | cc_genrule { |
| 75 | name: "host_bionic_linker_asm", |
| 76 | host_supported: true, |
| 77 | device_supported: false, |
| 78 | target: { |
| 79 | linux_bionic: { |
| 80 | enabled: true, |
| 81 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 82 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 83 | enabled: false, |
| 84 | }, |
| 85 | darwin: { |
| 86 | enabled: false, |
| 87 | }, |
| 88 | }, |
| 89 | tools: ["extract_linker"], |
| 90 | cmd: "$(location) -s $(out) $(in)", |
| 91 | srcs: [":linker"], |
| 92 | out: ["linker.s"], |
| 93 | } |
| 94 | |
| 95 | cc_genrule { |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 96 | name: "host_bionic_linker_script", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 97 | host_supported: true, |
| 98 | device_supported: false, |
| 99 | target: { |
| 100 | linux_bionic: { |
| 101 | enabled: true, |
| 102 | }, |
Dan Willemsen | 9d6c672 | 2017-10-02 10:41:07 -0700 | [diff] [blame] | 103 | linux_glibc: { |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 104 | enabled: false, |
| 105 | }, |
| 106 | darwin: { |
| 107 | enabled: false, |
| 108 | }, |
| 109 | }, |
| 110 | tools: ["extract_linker"], |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 111 | cmd: "$(location) -T $(out) $(in)", |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 112 | srcs: [":linker"], |
Colin Cross | 9cfe611 | 2021-06-11 18:02:22 -0700 | [diff] [blame] | 113 | out: ["linker.script"], |
Dan Willemsen | c77a0b3 | 2017-09-18 23:19:12 -0700 | [diff] [blame] | 114 | } |
Paul Duffin | 1ab6186 | 2021-01-20 17:44:53 +0000 | [diff] [blame] | 115 | |
| 116 | // Instantiate the dex_bootjars singleton module. |
| 117 | dex_bootjars { |
| 118 | name: "dex_bootjars", |
| 119 | } |
Pirama Arumuga Nainar | 2558ce3 | 2021-06-24 15:59:38 -0700 | [diff] [blame] | 120 | |
| 121 | // Pseudo-test that's run on checkbuilds to ensure that get_clang_version can |
| 122 | // parse cc/config/global.go. |
| 123 | genrule { |
| 124 | name: "get_clang_version_test", |
| 125 | cmd: "$(location get_clang_version) > $(out)", |
| 126 | tools: ["get_clang_version"], |
| 127 | srcs: ["cc/config/global.go"], |
| 128 | out: ["clang-prebuilts-version.txt"], |
| 129 | } |
Jiakai Zhang | 0a0a2fb | 2021-09-30 09:38:19 +0000 | [diff] [blame] | 130 | |
| 131 | dexpreopt_systemserver_check { |
| 132 | name: "dexpreopt_systemserver_check", |
| 133 | } |