Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 1 | // Copyright (C) 2019 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package cc |
| 16 | |
| 17 | import ( |
| 18 | "android/soong/android" |
Colin Cross | e9fe294 | 2020-11-10 18:12:15 -0800 | [diff] [blame] | 19 | "android/soong/genrule" |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 20 | ) |
| 21 | |
Paul Duffin | 77980a8 | 2019-12-19 16:01:36 +0000 | [diff] [blame] | 22 | func RegisterRequiredBuildComponentsForTest(ctx android.RegistrationContext) { |
Paul Duffin | d686791 | 2019-12-19 14:38:36 +0000 | [diff] [blame] | 23 | RegisterPrebuiltBuildComponents(ctx) |
Paul Duffin | 036e700 | 2019-12-19 19:16:28 +0000 | [diff] [blame] | 24 | RegisterCCBuildComponents(ctx) |
Paul Duffin | 2ee6979 | 2020-01-16 12:14:42 +0000 | [diff] [blame] | 25 | RegisterBinaryBuildComponents(ctx) |
Paul Duffin | 6c26dc7 | 2019-12-19 15:02:40 +0000 | [diff] [blame] | 26 | RegisterLibraryBuildComponents(ctx) |
Paul Duffin | 1c6c1c7 | 2020-02-21 10:28:43 +0000 | [diff] [blame] | 27 | RegisterLibraryHeadersBuildComponents(ctx) |
Paul Duffin | 6c26dc7 | 2019-12-19 15:02:40 +0000 | [diff] [blame] | 28 | |
| 29 | ctx.RegisterModuleType("toolchain_library", ToolchainLibraryFactory) |
Jiyong Park | 46a512f | 2020-12-04 18:02:13 +0900 | [diff] [blame] | 30 | ctx.RegisterModuleType("cc_benchmark", BenchmarkFactory) |
Paul Duffin | 6c26dc7 | 2019-12-19 15:02:40 +0000 | [diff] [blame] | 31 | ctx.RegisterModuleType("cc_object", ObjectFactory) |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 32 | ctx.RegisterModuleType("cc_genrule", genRuleFactory) |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 33 | ctx.RegisterModuleType("ndk_prebuilt_shared_stl", NdkPrebuiltSharedStlFactory) |
| 34 | ctx.RegisterModuleType("ndk_prebuilt_object", NdkPrebuiltObjectFactory) |
Dan Albert | de5aade | 2020-06-30 12:32:51 -0700 | [diff] [blame] | 35 | ctx.RegisterModuleType("ndk_library", NdkLibraryFactory) |
Paul Duffin | 77980a8 | 2019-12-19 16:01:36 +0000 | [diff] [blame] | 36 | } |
| 37 | |
Paul Duffin | a04c107 | 2020-03-02 10:16:35 +0000 | [diff] [blame] | 38 | func GatherRequiredDepsForTest(oses ...android.OsType) string { |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 39 | ret := commonDefaultModules() |
| 40 | |
| 41 | supportLinuxBionic := false |
| 42 | for _, os := range oses { |
| 43 | if os == android.Fuchsia { |
| 44 | ret += withFuchsiaModules() |
| 45 | } |
| 46 | if os == android.Windows { |
| 47 | ret += withWindowsModules() |
| 48 | } |
| 49 | if os == android.LinuxBionic { |
| 50 | supportLinuxBionic = true |
| 51 | ret += withLinuxBionic() |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | if !supportLinuxBionic { |
| 56 | ret += withoutLinuxBionic() |
| 57 | } |
| 58 | |
| 59 | return ret |
| 60 | } |
| 61 | |
| 62 | func commonDefaultModules() string { |
| 63 | return ` |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 64 | toolchain_library { |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 65 | name: "libcompiler_rt-extras", |
| 66 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 67 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 68 | product_available: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 69 | recovery_available: true, |
| 70 | src: "", |
| 71 | } |
| 72 | |
| 73 | toolchain_library { |
| 74 | name: "libclang_rt.builtins-arm-android", |
| 75 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 76 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 77 | product_available: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 78 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 79 | native_bridge_supported: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 80 | src: "", |
| 81 | } |
| 82 | |
| 83 | toolchain_library { |
| 84 | name: "libclang_rt.builtins-aarch64-android", |
| 85 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 86 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 87 | product_available: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 88 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 89 | native_bridge_supported: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 90 | src: "", |
| 91 | } |
| 92 | |
Jooyung Han | 7556839 | 2020-03-20 04:29:24 +0900 | [diff] [blame] | 93 | cc_prebuilt_library_shared { |
| 94 | name: "libclang_rt.hwasan-aarch64-android", |
| 95 | nocrt: true, |
| 96 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 97 | product_available: true, |
Jooyung Han | 7556839 | 2020-03-20 04:29:24 +0900 | [diff] [blame] | 98 | recovery_available: true, |
| 99 | system_shared_libs: [], |
| 100 | stl: "none", |
| 101 | srcs: [""], |
| 102 | check_elf_files: false, |
| 103 | sanitize: { |
| 104 | never: true, |
| 105 | }, |
| 106 | } |
| 107 | |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 108 | toolchain_library { |
| 109 | name: "libclang_rt.builtins-i686-android", |
| 110 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 111 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 112 | product_available: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 113 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 114 | native_bridge_supported: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 115 | src: "", |
| 116 | } |
| 117 | |
| 118 | toolchain_library { |
| 119 | name: "libclang_rt.builtins-x86_64-android", |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 120 | defaults: ["linux_bionic_supported"], |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 121 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 122 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 123 | product_available: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 124 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 125 | native_bridge_supported: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 126 | src: "", |
| 127 | } |
| 128 | |
| 129 | toolchain_library { |
Ryan Prichard | b35a85e | 2021-01-13 19:18:53 -0800 | [diff] [blame] | 130 | name: "libunwind", |
| 131 | defaults: ["linux_bionic_supported"], |
| 132 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 133 | vendor_ramdisk_available: true, |
Ryan Prichard | b35a85e | 2021-01-13 19:18:53 -0800 | [diff] [blame] | 134 | product_available: true, |
| 135 | recovery_available: true, |
| 136 | native_bridge_supported: true, |
| 137 | src: "", |
| 138 | } |
| 139 | |
| 140 | toolchain_library { |
Mitch Phillips | da9a463 | 2019-07-15 09:34:09 -0700 | [diff] [blame] | 141 | name: "libclang_rt.fuzzer-arm-android", |
| 142 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 143 | product_available: true, |
Mitch Phillips | da9a463 | 2019-07-15 09:34:09 -0700 | [diff] [blame] | 144 | recovery_available: true, |
| 145 | src: "", |
| 146 | } |
| 147 | |
| 148 | toolchain_library { |
| 149 | name: "libclang_rt.fuzzer-aarch64-android", |
| 150 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 151 | product_available: true, |
Mitch Phillips | da9a463 | 2019-07-15 09:34:09 -0700 | [diff] [blame] | 152 | recovery_available: true, |
| 153 | src: "", |
| 154 | } |
| 155 | |
| 156 | toolchain_library { |
| 157 | name: "libclang_rt.fuzzer-i686-android", |
| 158 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 159 | product_available: true, |
Mitch Phillips | da9a463 | 2019-07-15 09:34:09 -0700 | [diff] [blame] | 160 | recovery_available: true, |
| 161 | src: "", |
| 162 | } |
| 163 | |
| 164 | toolchain_library { |
| 165 | name: "libclang_rt.fuzzer-x86_64-android", |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 166 | defaults: ["linux_bionic_supported"], |
Mitch Phillips | da9a463 | 2019-07-15 09:34:09 -0700 | [diff] [blame] | 167 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 168 | product_available: true, |
Mitch Phillips | da9a463 | 2019-07-15 09:34:09 -0700 | [diff] [blame] | 169 | recovery_available: true, |
| 170 | src: "", |
| 171 | } |
| 172 | |
| 173 | toolchain_library { |
| 174 | name: "libclang_rt.fuzzer-x86_64", |
| 175 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 176 | product_available: true, |
Mitch Phillips | da9a463 | 2019-07-15 09:34:09 -0700 | [diff] [blame] | 177 | recovery_available: true, |
| 178 | src: "", |
| 179 | } |
| 180 | |
Paul Duffin | d686791 | 2019-12-19 14:38:36 +0000 | [diff] [blame] | 181 | // Needed for sanitizer |
| 182 | cc_prebuilt_library_shared { |
| 183 | name: "libclang_rt.ubsan_standalone-aarch64-android", |
| 184 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 185 | product_available: true, |
Paul Duffin | d686791 | 2019-12-19 14:38:36 +0000 | [diff] [blame] | 186 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 187 | system_shared_libs: [], |
Paul Duffin | d686791 | 2019-12-19 14:38:36 +0000 | [diff] [blame] | 188 | srcs: [""], |
| 189 | } |
| 190 | |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 191 | cc_library { |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 192 | name: "libc", |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 193 | defaults: ["linux_bionic_supported"], |
Yi Kong | e7fe991 | 2019-06-02 00:53:50 -0700 | [diff] [blame] | 194 | no_libcrt: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 195 | nocrt: true, |
Peter Collingbourne | e5ba286 | 2019-12-10 18:37:45 -0800 | [diff] [blame] | 196 | stl: "none", |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 197 | system_shared_libs: [], |
| 198 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 199 | stubs: { |
| 200 | versions: ["27", "28", "29"], |
| 201 | }, |
Colin Cross | 203b421 | 2021-04-26 17:19:41 -0700 | [diff] [blame^] | 202 | llndk: { |
| 203 | symbol_file: "libc.map.txt", |
| 204 | }, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 205 | } |
| 206 | cc_library { |
| 207 | name: "libm", |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 208 | defaults: ["linux_bionic_supported"], |
Yi Kong | e7fe991 | 2019-06-02 00:53:50 -0700 | [diff] [blame] | 209 | no_libcrt: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 210 | nocrt: true, |
Peter Collingbourne | e5ba286 | 2019-12-10 18:37:45 -0800 | [diff] [blame] | 211 | stl: "none", |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 212 | system_shared_libs: [], |
| 213 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 214 | stubs: { |
| 215 | versions: ["27", "28", "29"], |
| 216 | }, |
| 217 | apex_available: [ |
| 218 | "//apex_available:platform", |
| 219 | "myapex" |
| 220 | ], |
Colin Cross | 203b421 | 2021-04-26 17:19:41 -0700 | [diff] [blame^] | 221 | llndk: { |
| 222 | symbol_file: "libm.map.txt", |
| 223 | }, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 224 | } |
Ivan Lozano | a0cd8f9 | 2020-04-09 09:56:02 -0400 | [diff] [blame] | 225 | |
| 226 | // Coverage libraries |
| 227 | cc_library { |
| 228 | name: "libprofile-extras", |
| 229 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 230 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 231 | product_available: true, |
Ivan Lozano | a0cd8f9 | 2020-04-09 09:56:02 -0400 | [diff] [blame] | 232 | recovery_available: true, |
| 233 | native_coverage: false, |
| 234 | system_shared_libs: [], |
| 235 | stl: "none", |
| 236 | notice: "custom_notice", |
| 237 | } |
| 238 | cc_library { |
| 239 | name: "libprofile-clang-extras", |
| 240 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 241 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 242 | product_available: true, |
Ivan Lozano | a0cd8f9 | 2020-04-09 09:56:02 -0400 | [diff] [blame] | 243 | recovery_available: true, |
| 244 | native_coverage: false, |
| 245 | system_shared_libs: [], |
| 246 | stl: "none", |
| 247 | notice: "custom_notice", |
| 248 | } |
| 249 | cc_library { |
| 250 | name: "libprofile-extras_ndk", |
| 251 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 252 | product_available: true, |
Ivan Lozano | a0cd8f9 | 2020-04-09 09:56:02 -0400 | [diff] [blame] | 253 | native_coverage: false, |
| 254 | system_shared_libs: [], |
| 255 | stl: "none", |
| 256 | notice: "custom_notice", |
| 257 | sdk_version: "current", |
| 258 | } |
| 259 | cc_library { |
| 260 | name: "libprofile-clang-extras_ndk", |
| 261 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 262 | product_available: true, |
Ivan Lozano | a0cd8f9 | 2020-04-09 09:56:02 -0400 | [diff] [blame] | 263 | native_coverage: false, |
| 264 | system_shared_libs: [], |
| 265 | stl: "none", |
| 266 | notice: "custom_notice", |
| 267 | sdk_version: "current", |
| 268 | } |
| 269 | |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 270 | cc_library { |
| 271 | name: "libdl", |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 272 | defaults: ["linux_bionic_supported"], |
Yi Kong | e7fe991 | 2019-06-02 00:53:50 -0700 | [diff] [blame] | 273 | no_libcrt: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 274 | nocrt: true, |
Peter Collingbourne | e5ba286 | 2019-12-10 18:37:45 -0800 | [diff] [blame] | 275 | stl: "none", |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 276 | system_shared_libs: [], |
| 277 | recovery_available: true, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 278 | stubs: { |
| 279 | versions: ["27", "28", "29"], |
| 280 | }, |
| 281 | apex_available: [ |
| 282 | "//apex_available:platform", |
| 283 | "myapex" |
| 284 | ], |
Colin Cross | 203b421 | 2021-04-26 17:19:41 -0700 | [diff] [blame^] | 285 | llndk: { |
| 286 | symbol_file: "libdl.map.txt", |
| 287 | }, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 288 | } |
| 289 | cc_library { |
Jooyung Han | 097087b | 2019-10-22 19:32:18 +0900 | [diff] [blame] | 290 | name: "libft2", |
| 291 | no_libcrt: true, |
| 292 | nocrt: true, |
| 293 | system_shared_libs: [], |
| 294 | recovery_available: true, |
Colin Cross | 203b421 | 2021-04-26 17:19:41 -0700 | [diff] [blame^] | 295 | llndk: { |
| 296 | symbol_file: "libft2.map.txt", |
| 297 | private: true, |
| 298 | } |
Jooyung Han | 097087b | 2019-10-22 19:32:18 +0900 | [diff] [blame] | 299 | } |
| 300 | cc_library { |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 301 | name: "libc++_static", |
Yi Kong | e7fe991 | 2019-06-02 00:53:50 -0700 | [diff] [blame] | 302 | no_libcrt: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 303 | nocrt: true, |
| 304 | system_shared_libs: [], |
| 305 | stl: "none", |
| 306 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 307 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 308 | product_available: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 309 | recovery_available: true, |
Inseob Kim | 89db15d | 2020-02-03 18:06:46 +0900 | [diff] [blame] | 310 | host_supported: true, |
Jooyung Han | 749dc69 | 2020-04-15 11:03:39 +0900 | [diff] [blame] | 311 | min_sdk_version: "29", |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 312 | apex_available: [ |
| 313 | "//apex_available:platform", |
| 314 | "//apex_available:anyapex", |
| 315 | ], |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 316 | } |
| 317 | cc_library { |
| 318 | name: "libc++", |
Yi Kong | e7fe991 | 2019-06-02 00:53:50 -0700 | [diff] [blame] | 319 | no_libcrt: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 320 | nocrt: true, |
| 321 | system_shared_libs: [], |
| 322 | stl: "none", |
| 323 | vendor_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 324 | product_available: true, |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 325 | recovery_available: true, |
Inseob Kim | 89db15d | 2020-02-03 18:06:46 +0900 | [diff] [blame] | 326 | host_supported: true, |
Jooyung Han | 749dc69 | 2020-04-15 11:03:39 +0900 | [diff] [blame] | 327 | min_sdk_version: "29", |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 328 | vndk: { |
| 329 | enabled: true, |
| 330 | support_system_process: true, |
| 331 | }, |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 332 | apex_available: [ |
| 333 | "//apex_available:platform", |
Ivan Lozano | 3e9f9e4 | 2020-12-04 15:05:43 -0500 | [diff] [blame] | 334 | "//apex_available:anyapex", |
Colin Cross | f9aabd7 | 2020-02-15 11:29:50 -0800 | [diff] [blame] | 335 | ], |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 336 | } |
| 337 | cc_library { |
Dan Albert | 2da19cb | 2019-07-24 12:17:40 -0700 | [diff] [blame] | 338 | name: "libc++demangle", |
| 339 | no_libcrt: true, |
| 340 | nocrt: true, |
| 341 | system_shared_libs: [], |
| 342 | stl: "none", |
| 343 | host_supported: false, |
| 344 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 345 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 346 | product_available: true, |
Dan Albert | 2da19cb | 2019-07-24 12:17:40 -0700 | [diff] [blame] | 347 | recovery_available: true, |
Jooyung Han | 749dc69 | 2020-04-15 11:03:39 +0900 | [diff] [blame] | 348 | min_sdk_version: "29", |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 349 | apex_available: [ |
| 350 | "//apex_available:platform", |
| 351 | "//apex_available:anyapex", |
| 352 | ], |
Dan Albert | 2da19cb | 2019-07-24 12:17:40 -0700 | [diff] [blame] | 353 | } |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 354 | |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 355 | cc_defaults { |
| 356 | name: "crt_defaults", |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 357 | defaults: ["linux_bionic_supported"], |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 358 | recovery_available: true, |
| 359 | vendor_available: true, |
Ivan Lozano | e6d3098 | 2021-02-05 10:57:43 -0500 | [diff] [blame] | 360 | vendor_ramdisk_available: true, |
Justin Yun | 63e9ec7 | 2020-10-29 16:49:43 +0900 | [diff] [blame] | 361 | product_available: true, |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 362 | native_bridge_supported: true, |
| 363 | stl: "none", |
Dan Albert | 92fe740 | 2020-07-15 13:33:30 -0700 | [diff] [blame] | 364 | min_sdk_version: "16", |
| 365 | crt: true, |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 366 | apex_available: [ |
| 367 | "//apex_available:platform", |
| 368 | "//apex_available:anyapex", |
| 369 | ], |
| 370 | } |
| 371 | |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 372 | cc_object { |
| 373 | name: "crtbegin_so", |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 374 | defaults: ["crt_defaults"], |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 375 | } |
| 376 | |
| 377 | cc_object { |
Colin Cross | 815daf9 | 2019-05-14 16:05:20 -0700 | [diff] [blame] | 378 | name: "crtbegin_dynamic", |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 379 | defaults: ["crt_defaults"], |
Colin Cross | 815daf9 | 2019-05-14 16:05:20 -0700 | [diff] [blame] | 380 | } |
| 381 | |
| 382 | cc_object { |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 383 | name: "crtbegin_static", |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 384 | defaults: ["crt_defaults"], |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 385 | } |
| 386 | |
| 387 | cc_object { |
| 388 | name: "crtend_so", |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 389 | defaults: ["crt_defaults"], |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 390 | } |
| 391 | |
| 392 | cc_object { |
| 393 | name: "crtend_android", |
Jiyong Park | 541142c | 2020-03-07 16:35:46 +0900 | [diff] [blame] | 394 | defaults: ["crt_defaults"], |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 395 | } |
| 396 | |
| 397 | cc_library { |
| 398 | name: "libprotobuf-cpp-lite", |
| 399 | } |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 400 | |
| 401 | cc_library { |
| 402 | name: "ndk_libunwind", |
| 403 | sdk_version: "current", |
| 404 | stl: "none", |
| 405 | system_shared_libs: [], |
| 406 | } |
| 407 | |
Dan Albert | de5aade | 2020-06-30 12:32:51 -0700 | [diff] [blame] | 408 | ndk_library { |
| 409 | name: "libc", |
| 410 | first_version: "minimum", |
| 411 | symbol_file: "libc.map.txt", |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 412 | } |
| 413 | |
Dan Albert | de5aade | 2020-06-30 12:32:51 -0700 | [diff] [blame] | 414 | ndk_library { |
| 415 | name: "libm", |
| 416 | first_version: "minimum", |
| 417 | symbol_file: "libm.map.txt", |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 418 | } |
| 419 | |
Dan Albert | de5aade | 2020-06-30 12:32:51 -0700 | [diff] [blame] | 420 | ndk_library { |
| 421 | name: "libdl", |
| 422 | first_version: "minimum", |
| 423 | symbol_file: "libdl.map.txt", |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 424 | } |
| 425 | |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 426 | ndk_prebuilt_shared_stl { |
| 427 | name: "ndk_libc++_shared", |
| 428 | } |
Jiyong Park | 46a512f | 2020-12-04 18:02:13 +0900 | [diff] [blame] | 429 | |
| 430 | cc_library_static { |
| 431 | name: "libgoogle-benchmark", |
| 432 | sdk_version: "current", |
| 433 | stl: "none", |
| 434 | system_shared_libs: [], |
| 435 | } |
Evgenii Stepanov | 193ac2e | 2020-04-28 15:09:12 -0700 | [diff] [blame] | 436 | |
| 437 | cc_library_static { |
| 438 | name: "note_memtag_heap_async", |
| 439 | } |
| 440 | |
| 441 | cc_library_static { |
| 442 | name: "note_memtag_heap_sync", |
| 443 | } |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 444 | ` |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 445 | } |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 446 | |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 447 | func withWindowsModules() string { |
| 448 | return ` |
Paul Duffin | a04c107 | 2020-03-02 10:16:35 +0000 | [diff] [blame] | 449 | toolchain_library { |
| 450 | name: "libwinpthread", |
| 451 | host_supported: true, |
| 452 | enabled: false, |
| 453 | target: { |
| 454 | windows: { |
| 455 | enabled: true, |
| 456 | }, |
| 457 | }, |
| 458 | src: "", |
| 459 | } |
| 460 | ` |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 461 | } |
| 462 | |
| 463 | func withFuchsiaModules() string { |
| 464 | return ` |
| 465 | cc_library { |
| 466 | name: "libbioniccompat", |
| 467 | stl: "none", |
Paul Duffin | a04c107 | 2020-03-02 10:16:35 +0000 | [diff] [blame] | 468 | } |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 469 | cc_library { |
| 470 | name: "libcompiler_rt", |
| 471 | stl: "none", |
| 472 | } |
| 473 | ` |
| 474 | } |
| 475 | |
| 476 | func withLinuxBionic() string { |
| 477 | return ` |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 478 | cc_binary { |
| 479 | name: "linker", |
| 480 | defaults: ["linux_bionic_supported"], |
| 481 | recovery_available: true, |
| 482 | stl: "none", |
| 483 | nocrt: true, |
| 484 | static_executable: true, |
| 485 | native_coverage: false, |
| 486 | system_shared_libs: [], |
| 487 | } |
| 488 | |
| 489 | cc_genrule { |
| 490 | name: "host_bionic_linker_flags", |
| 491 | host_supported: true, |
| 492 | device_supported: false, |
| 493 | target: { |
| 494 | host: { |
| 495 | enabled: false, |
| 496 | }, |
| 497 | linux_bionic: { |
| 498 | enabled: true, |
| 499 | }, |
| 500 | }, |
| 501 | out: ["linker.flags"], |
| 502 | } |
| 503 | |
| 504 | cc_defaults { |
| 505 | name: "linux_bionic_supported", |
| 506 | host_supported: true, |
| 507 | target: { |
| 508 | host: { |
| 509 | enabled: false, |
| 510 | }, |
| 511 | linux_bionic: { |
| 512 | enabled: true, |
| 513 | }, |
| 514 | }, |
| 515 | } |
| 516 | ` |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 517 | } |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 518 | |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 519 | func withoutLinuxBionic() string { |
| 520 | return ` |
Martin Stjernholm | 7feceb2 | 2020-07-11 04:33:29 +0100 | [diff] [blame] | 521 | cc_defaults { |
| 522 | name: "linux_bionic_supported", |
| 523 | } |
| 524 | ` |
Inseob Kim | c0907f1 | 2019-02-08 21:00:45 +0900 | [diff] [blame] | 525 | } |
Colin Cross | 9a94287 | 2019-05-14 15:44:26 -0700 | [diff] [blame] | 526 | |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 527 | func GatherRequiredFilesForTest(fs map[string][]byte) { |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 528 | } |
| 529 | |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 530 | // The directory in which cc linux bionic default modules will be defined. |
| 531 | // |
| 532 | // Placing them here ensures that their location does not conflict with default test modules |
| 533 | // defined by other packages. |
| 534 | const linuxBionicDefaultsPath = "defaults/cc/linux-bionic/Android.bp" |
| 535 | |
| 536 | // The directory in which the default cc common test modules will be defined. |
| 537 | // |
| 538 | // Placing them here ensures that their location does not conflict with default test modules |
| 539 | // defined by other packages. |
| 540 | const DefaultCcCommonTestModulesDir = "defaults/cc/common/" |
| 541 | |
| 542 | // Test fixture preparer that will register most cc build components. |
| 543 | // |
| 544 | // Singletons and mutators should only be added here if they are needed for a majority of cc |
| 545 | // module types, otherwise they should be added under a separate preparer to allow them to be |
| 546 | // selected only when needed to reduce test execution time. |
| 547 | // |
| 548 | // Module types do not have much of an overhead unless they are used so this should include as many |
| 549 | // module types as possible. The exceptions are those module types that require mutators and/or |
| 550 | // singletons in order to function in which case they should be kept together in a separate |
| 551 | // preparer. |
| 552 | var PrepareForTestWithCcBuildComponents = android.GroupFixturePreparers( |
| 553 | android.PrepareForTestWithAndroidBuildComponents, |
| 554 | android.FixtureRegisterWithContext(RegisterRequiredBuildComponentsForTest), |
| 555 | android.FixtureRegisterWithContext(func(ctx android.RegistrationContext) { |
| 556 | ctx.RegisterModuleType("cc_fuzz", FuzzFactory) |
| 557 | ctx.RegisterModuleType("cc_test", TestFactory) |
| 558 | ctx.RegisterModuleType("cc_test_library", TestLibraryFactory) |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 559 | ctx.RegisterModuleType("vendor_public_library", vendorPublicLibraryFactory) |
| 560 | ctx.RegisterModuleType("vndk_prebuilt_shared", VndkPrebuiltSharedFactory) |
| 561 | |
| 562 | RegisterVndkLibraryTxtTypes(ctx) |
| 563 | }), |
Paul Duffin | db462dd | 2021-03-21 22:01:55 +0000 | [diff] [blame] | 564 | |
| 565 | // Additional files needed in tests that disallow non-existent source files. |
| 566 | // This includes files that are needed by all, or at least most, instances of a cc module type. |
| 567 | android.MockFS{ |
| 568 | // Needed for ndk_prebuilt_(shared|static)_stl. |
| 569 | "prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libs": nil, |
| 570 | }.AddToFixture(), |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 571 | ) |
| 572 | |
| 573 | // Preparer that will define default cc modules, e.g. standard prebuilt modules. |
| 574 | var PrepareForTestWithCcDefaultModules = android.GroupFixturePreparers( |
| 575 | PrepareForTestWithCcBuildComponents, |
Paul Duffin | db462dd | 2021-03-21 22:01:55 +0000 | [diff] [blame] | 576 | |
| 577 | // Additional files needed in tests that disallow non-existent source. |
| 578 | android.MockFS{ |
| 579 | "defaults/cc/common/libc.map.txt": nil, |
| 580 | "defaults/cc/common/libdl.map.txt": nil, |
| 581 | "defaults/cc/common/libm.map.txt": nil, |
| 582 | }.AddToFixture(), |
| 583 | |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 584 | // Place the default cc test modules that are common to all platforms in a location that will not |
| 585 | // conflict with default test modules defined by other packages. |
| 586 | android.FixtureAddTextFile(DefaultCcCommonTestModulesDir+"Android.bp", commonDefaultModules()), |
| 587 | // Disable linux bionic by default. |
| 588 | android.FixtureAddTextFile(linuxBionicDefaultsPath, withoutLinuxBionic()), |
| 589 | ) |
| 590 | |
| 591 | // Prepare a fixture to use all cc module types, mutators and singletons fully. |
| 592 | // |
| 593 | // This should only be used by tests that want to run with as much of the build enabled as possible. |
| 594 | var PrepareForIntegrationTestWithCc = android.GroupFixturePreparers( |
| 595 | android.PrepareForIntegrationTestWithAndroid, |
| 596 | genrule.PrepareForIntegrationTestWithGenrule, |
| 597 | PrepareForTestWithCcDefaultModules, |
| 598 | ) |
| 599 | |
| 600 | // The preparer to include if running a cc related test for windows. |
| 601 | var PrepareForTestOnWindows = android.GroupFixturePreparers( |
| 602 | // Place the default cc test modules for windows platforms in a location that will not conflict |
| 603 | // with default test modules defined by other packages. |
| 604 | android.FixtureAddTextFile("defaults/cc/windows/Android.bp", withWindowsModules()), |
| 605 | ) |
| 606 | |
| 607 | // The preparer to include if running a cc related test for linux bionic. |
| 608 | var PrepareForTestOnLinuxBionic = android.GroupFixturePreparers( |
Paul Duffin | 6e9a400 | 2021-03-11 19:01:26 +0000 | [diff] [blame] | 609 | // Enable linux bionic |
| 610 | // |
| 611 | // Can be used after PrepareForTestWithCcDefaultModules to override its default behavior of |
| 612 | // disabling linux bionic, hence why this uses FixtureOverrideTextFile. |
| 613 | android.FixtureOverrideTextFile(linuxBionicDefaultsPath, withLinuxBionic()), |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 614 | ) |
| 615 | |
Paul Duffin | ecdac8a | 2021-02-24 19:18:42 +0000 | [diff] [blame] | 616 | // The preparer to include if running a cc related test for fuchsia. |
| 617 | var PrepareForTestOnFuchsia = android.GroupFixturePreparers( |
| 618 | // Place the default cc test modules for fuschia in a location that will not conflict with default |
| 619 | // test modules defined by other packages. |
| 620 | android.FixtureAddTextFile("defaults/cc/fuschia/Android.bp", withFuchsiaModules()), |
| 621 | android.PrepareForTestSetDeviceToFuchsia, |
| 622 | ) |
| 623 | |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 624 | // This adds some additional modules and singletons which might negatively impact the performance |
| 625 | // of tests so they are not included in the PrepareForIntegrationTestWithCc. |
| 626 | var PrepareForTestWithCcIncludeVndk = android.GroupFixturePreparers( |
| 627 | PrepareForIntegrationTestWithCc, |
| 628 | android.FixtureRegisterWithContext(func(ctx android.RegistrationContext) { |
| 629 | vendorSnapshotImageSingleton.init(ctx) |
| 630 | recoverySnapshotImageSingleton.init(ctx) |
| 631 | ctx.RegisterSingletonType("vndk-snapshot", VndkSnapshotSingleton) |
| 632 | }), |
| 633 | ) |
| 634 | |
| 635 | // TestConfig is the legacy way of creating a test Config for testing cc modules. |
| 636 | // |
| 637 | // See testCc for an explanation as to how to stop using this deprecated method. |
| 638 | // |
| 639 | // deprecated |
Colin Cross | 98be1bb | 2019-12-13 20:41:13 -0800 | [diff] [blame] | 640 | func TestConfig(buildDir string, os android.OsType, env map[string]string, |
| 641 | bp string, fs map[string][]byte) android.Config { |
Colin Cross | 9a94287 | 2019-05-14 15:44:26 -0700 | [diff] [blame] | 642 | |
Colin Cross | 98be1bb | 2019-12-13 20:41:13 -0800 | [diff] [blame] | 643 | // add some modules that are required by the compiler and/or linker |
| 644 | bp = bp + GatherRequiredDepsForTest(os) |
| 645 | |
Colin Cross | 2fce23a | 2020-06-07 17:02:48 -0700 | [diff] [blame] | 646 | mockFS := map[string][]byte{} |
Colin Cross | 98be1bb | 2019-12-13 20:41:13 -0800 | [diff] [blame] | 647 | |
Colin Cross | f28329d | 2020-02-15 11:00:10 -0800 | [diff] [blame] | 648 | GatherRequiredFilesForTest(mockFS) |
| 649 | |
Colin Cross | 98be1bb | 2019-12-13 20:41:13 -0800 | [diff] [blame] | 650 | for k, v := range fs { |
| 651 | mockFS[k] = v |
| 652 | } |
| 653 | |
| 654 | var config android.Config |
| 655 | if os == android.Fuchsia { |
Paul Duffin | ecdac8a | 2021-02-24 19:18:42 +0000 | [diff] [blame] | 656 | panic("Fuchsia not supported use test fixture instead") |
Colin Cross | 98be1bb | 2019-12-13 20:41:13 -0800 | [diff] [blame] | 657 | } else { |
| 658 | config = android.TestArchConfig(buildDir, env, bp, mockFS) |
| 659 | } |
| 660 | |
| 661 | return config |
| 662 | } |
| 663 | |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 664 | // CreateTestContext is the legacy way of creating a TestContext for testing cc modules. |
| 665 | // |
| 666 | // See testCc for an explanation as to how to stop using this deprecated method. |
| 667 | // |
| 668 | // deprecated |
Colin Cross | ae8600b | 2020-10-29 17:09:13 -0700 | [diff] [blame] | 669 | func CreateTestContext(config android.Config) *android.TestContext { |
| 670 | ctx := android.NewTestArchContext(config) |
Paul Duffin | d6ceb86 | 2021-03-04 23:02:31 +0000 | [diff] [blame] | 671 | genrule.RegisterGenruleBuildComponents(ctx) |
Colin Cross | 4b49b76 | 2019-11-22 15:25:03 -0800 | [diff] [blame] | 672 | ctx.RegisterModuleType("cc_fuzz", FuzzFactory) |
Colin Cross | 4b49b76 | 2019-11-22 15:25:03 -0800 | [diff] [blame] | 673 | ctx.RegisterModuleType("cc_test", TestFactory) |
Chris Parsons | 79d66a5 | 2020-06-05 17:26:16 -0400 | [diff] [blame] | 674 | ctx.RegisterModuleType("cc_test_library", TestLibraryFactory) |
Colin Cross | 4b49b76 | 2019-11-22 15:25:03 -0800 | [diff] [blame] | 675 | ctx.RegisterModuleType("vendor_public_library", vendorPublicLibraryFactory) |
Colin Cross | 4b49b76 | 2019-11-22 15:25:03 -0800 | [diff] [blame] | 676 | ctx.RegisterModuleType("filegroup", android.FileGroupFactory) |
| 677 | ctx.RegisterModuleType("vndk_prebuilt_shared", VndkPrebuiltSharedFactory) |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 678 | |
Colin Cross | e0edaf9 | 2021-01-11 17:31:17 -0800 | [diff] [blame] | 679 | vendorSnapshotImageSingleton.init(ctx) |
| 680 | recoverySnapshotImageSingleton.init(ctx) |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 681 | ctx.RegisterSingletonType("vndk-snapshot", VndkSnapshotSingleton) |
Colin Cross | e4e44bc | 2020-12-28 13:50:21 -0800 | [diff] [blame] | 682 | RegisterVndkLibraryTxtTypes(ctx) |
Paul Duffin | 02a3d65 | 2021-02-24 18:51:54 +0000 | [diff] [blame] | 683 | |
Colin Cross | e1bb5d0 | 2019-09-24 14:55:04 -0700 | [diff] [blame] | 684 | ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators) |
Paul Duffin | 021f4e5 | 2020-07-30 16:04:17 +0100 | [diff] [blame] | 685 | android.RegisterPrebuiltMutators(ctx) |
Paul Duffin | c988c8e | 2020-04-29 18:27:14 +0100 | [diff] [blame] | 686 | RegisterRequiredBuildComponentsForTest(ctx) |
Colin Cross | 9a94287 | 2019-05-14 15:44:26 -0700 | [diff] [blame] | 687 | |
Colin Cross | 9a94287 | 2019-05-14 15:44:26 -0700 | [diff] [blame] | 688 | return ctx |
| 689 | } |