Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2017 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Tom Cherry | 6619649 | 2020-02-06 11:56:58 -0800 | [diff] [blame] | 17 | init_common_sources = [ |
| 18 | "action.cpp", |
| 19 | "action_manager.cpp", |
| 20 | "action_parser.cpp", |
| 21 | "capabilities.cpp", |
| 22 | "epoll.cpp", |
| 23 | "import_parser.cpp", |
| 24 | "interface_utils.cpp", |
| 25 | "keychords.cpp", |
| 26 | "parser.cpp", |
| 27 | "property_type.cpp", |
| 28 | "rlimit_parser.cpp", |
| 29 | "service.cpp", |
| 30 | "service_list.cpp", |
| 31 | "service_parser.cpp", |
| 32 | "service_utils.cpp", |
| 33 | "subcontext.cpp", |
| 34 | "subcontext.proto", |
| 35 | "tokenizer.cpp", |
| 36 | "util.cpp", |
| 37 | ] |
| 38 | init_device_sources = [ |
| 39 | "bootchart.cpp", |
| 40 | "builtins.cpp", |
| 41 | "devices.cpp", |
| 42 | "firmware_handler.cpp", |
| 43 | "first_stage_init.cpp", |
| 44 | "first_stage_mount.cpp", |
| 45 | "fscrypt_init_extensions.cpp", |
| 46 | "init.cpp", |
| 47 | "lmkd_service.cpp", |
| 48 | "modalias_handler.cpp", |
| 49 | "mount_handler.cpp", |
| 50 | "mount_namespace.cpp", |
| 51 | "persistent_properties.cpp", |
| 52 | "persistent_properties.proto", |
| 53 | "property_service.cpp", |
| 54 | "property_service.proto", |
| 55 | "reboot.cpp", |
| 56 | "reboot_utils.cpp", |
| 57 | "security.cpp", |
| 58 | "selabel.cpp", |
| 59 | "selinux.cpp", |
| 60 | "sigchld_handler.cpp", |
| 61 | "switch_root.cpp", |
| 62 | "uevent_listener.cpp", |
| 63 | "ueventd.cpp", |
| 64 | "ueventd_parser.cpp", |
| 65 | ] |
| 66 | init_host_sources = [ |
| 67 | "check_builtins.cpp", |
| 68 | "host_import_parser.cpp", |
| 69 | "host_init_verifier.cpp", |
| 70 | ] |
| 71 | |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 72 | cc_defaults { |
| 73 | name: "init_defaults", |
| 74 | cpp_std: "experimental", |
| 75 | sanitize: { |
Tom Cherry | 2ffd65e | 2017-07-26 14:17:09 -0700 | [diff] [blame] | 76 | misc_undefined: ["signed-integer-overflow"], |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 77 | }, |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 78 | cflags: [ |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 79 | "-DLOG_UEVENTS=0", |
| 80 | "-Wall", |
| 81 | "-Wextra", |
| 82 | "-Wno-unused-parameter", |
| 83 | "-Werror", |
Tom Cherry | 802864c | 2020-03-12 14:29:25 -0700 | [diff] [blame] | 84 | "-Wthread-safety", |
Steve Muckle | d75f30a | 2019-05-21 15:50:39 -0700 | [diff] [blame] | 85 | "-DALLOW_FIRST_STAGE_CONSOLE=0", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 86 | "-DALLOW_LOCAL_PROP_OVERRIDE=0", |
| 87 | "-DALLOW_PERMISSIVE_SELINUX=0", |
| 88 | "-DREBOOT_BOOTLOADER_ON_PANIC=0", |
| 89 | "-DWORLD_WRITABLE_KMSG=0", |
| 90 | "-DDUMP_ON_UMOUNT_FAILURE=0", |
| 91 | "-DSHUTDOWN_ZERO_TIMEOUT=0", |
Tom Cherry | a2f9136 | 2020-02-20 10:50:00 -0800 | [diff] [blame] | 92 | "-DINIT_FULL_SOURCES", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 93 | ], |
| 94 | product_variables: { |
| 95 | debuggable: { |
| 96 | cppflags: [ |
Steve Muckle | d75f30a | 2019-05-21 15:50:39 -0700 | [diff] [blame] | 97 | "-UALLOW_FIRST_STAGE_CONSOLE", |
| 98 | "-DALLOW_FIRST_STAGE_CONSOLE=1", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 99 | "-UALLOW_LOCAL_PROP_OVERRIDE", |
| 100 | "-DALLOW_LOCAL_PROP_OVERRIDE=1", |
| 101 | "-UALLOW_PERMISSIVE_SELINUX", |
| 102 | "-DALLOW_PERMISSIVE_SELINUX=1", |
| 103 | "-UREBOOT_BOOTLOADER_ON_PANIC", |
| 104 | "-DREBOOT_BOOTLOADER_ON_PANIC=1", |
| 105 | "-UWORLD_WRITABLE_KMSG", |
| 106 | "-DWORLD_WRITABLE_KMSG=1", |
| 107 | "-UDUMP_ON_UMOUNT_FAILURE", |
| 108 | "-DDUMP_ON_UMOUNT_FAILURE=1", |
| 109 | ], |
| 110 | }, |
| 111 | eng: { |
| 112 | cppflags: [ |
| 113 | "-USHUTDOWN_ZERO_TIMEOUT", |
| 114 | "-DSHUTDOWN_ZERO_TIMEOUT=1", |
| 115 | ], |
| 116 | }, |
Dmitry Shmidt | c3bc509 | 2017-08-23 14:57:07 -0700 | [diff] [blame] | 117 | uml: { |
| 118 | cppflags: ["-DUSER_MODE_LINUX"], |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 119 | }, |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 120 | }, |
Tom Cherry | 618d310 | 2018-01-19 14:25:48 -0800 | [diff] [blame] | 121 | static_libs: [ |
Tom Cherry | 618d310 | 2018-01-19 14:25:48 -0800 | [diff] [blame] | 122 | "libavb", |
Bowgo Tsai | 30afda7 | 2019-04-11 23:57:24 +0800 | [diff] [blame] | 123 | "libc++fs", |
Yifan Hong | d8ce1fb | 2019-03-22 17:21:58 -0700 | [diff] [blame] | 124 | "libcgrouprc_format", |
Suren Baghdasaryan | c29c2ba | 2019-10-22 17:18:42 -0700 | [diff] [blame] | 125 | "liblmkd_utils", |
Steve Muckle | 18b981e | 2019-04-15 17:43:02 -0700 | [diff] [blame] | 126 | "libmodprobe", |
Tom Cherry | 618d310 | 2018-01-19 14:25:48 -0800 | [diff] [blame] | 127 | "libprotobuf-cpp-lite", |
| 128 | "libpropertyinfoserializer", |
| 129 | "libpropertyinfoparser", |
David Anderson | dfe6d07 | 2019-10-09 16:24:03 -0700 | [diff] [blame] | 130 | "libsnapshot_init", |
Jiyong Park | 648ae3a | 2019-12-08 00:25:15 +0900 | [diff] [blame] | 131 | "lib_apex_manifest_proto_lite", |
Jiyong Park | 787322c | 2018-06-01 19:26:42 +0900 | [diff] [blame] | 132 | ], |
| 133 | shared_libs: [ |
Tom Cherry | 59656fb | 2019-05-28 10:19:44 -0700 | [diff] [blame] | 134 | "libbacktrace", |
Jiyong Park | 787322c | 2018-06-01 19:26:42 +0900 | [diff] [blame] | 135 | "libbase", |
Tao Bao | 66209ca | 2018-07-25 22:35:45 -0700 | [diff] [blame] | 136 | "libbootloader_message", |
| 137 | "libcutils", |
Jiyong Park | 787322c | 2018-06-01 19:26:42 +0900 | [diff] [blame] | 138 | "libdl", |
Tao Bao | 66209ca | 2018-07-25 22:35:45 -0700 | [diff] [blame] | 139 | "libext4_utils", |
| 140 | "libfs_mgr", |
David Anderson | 0e330f1 | 2019-01-03 18:16:56 -0800 | [diff] [blame] | 141 | "libgsi", |
Tao Bao | 66209ca | 2018-07-25 22:35:45 -0700 | [diff] [blame] | 142 | "libhidl-gen-utils", |
| 143 | "libkeyutils", |
| 144 | "liblog", |
| 145 | "liblogwrap", |
Tom Cherry | 7bfea3d | 2018-11-06 14:12:05 -0800 | [diff] [blame] | 146 | "liblp", |
Suren Baghdasaryan | 82b72a5 | 2018-12-21 11:41:50 -0800 | [diff] [blame] | 147 | "libprocessgroup", |
Yifan Hong | 6f9ce2e | 2019-03-05 15:47:16 -0800 | [diff] [blame] | 148 | "libprocessgroup_setup", |
Jiyong Park | 012171d | 2018-06-19 16:55:05 +0900 | [diff] [blame] | 149 | "libselinux", |
Martijn Coenen | 62e985a | 2018-09-04 06:29:14 +0200 | [diff] [blame] | 150 | "libutils", |
Tom Cherry | 618d310 | 2018-01-19 14:25:48 -0800 | [diff] [blame] | 151 | ], |
Jiyong Park | 93318d4 | 2018-12-26 17:34:39 +0900 | [diff] [blame] | 152 | bootstrap: true, |
Daniel Norman | 8082ba2 | 2019-07-23 10:26:15 -0700 | [diff] [blame] | 153 | visibility: [":__subpackages__"], |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 154 | } |
| 155 | |
| 156 | cc_library_static { |
| 157 | name: "libinit", |
Tom Cherry | 3143848 | 2018-07-20 14:57:00 -0700 | [diff] [blame] | 158 | recovery_available: true, |
Daniel Norman | 8082ba2 | 2019-07-23 10:26:15 -0700 | [diff] [blame] | 159 | defaults: [ |
| 160 | "init_defaults", |
| 161 | "selinux_policy_version", |
| 162 | ], |
Tom Cherry | 6619649 | 2020-02-06 11:56:58 -0800 | [diff] [blame] | 163 | srcs: init_common_sources + init_device_sources, |
Daniel Norman | 8082ba2 | 2019-07-23 10:26:15 -0700 | [diff] [blame] | 164 | whole_static_libs: [ |
| 165 | "libcap", |
| 166 | "com.android.sysprop.apex", |
Nikita Ioffe | 23dbd6d | 2019-11-14 01:21:24 +0000 | [diff] [blame] | 167 | "com.android.sysprop.init", |
Daniel Norman | 8082ba2 | 2019-07-23 10:26:15 -0700 | [diff] [blame] | 168 | ], |
Jayant Chowdhary | 478c7c1 | 2018-03-28 18:45:35 -0700 | [diff] [blame] | 169 | header_libs: ["bootimg_headers"], |
Tom Cherry | a97faba | 2017-09-15 15:44:04 -0700 | [diff] [blame] | 170 | proto: { |
| 171 | type: "lite", |
| 172 | export_proto_headers: true, |
| 173 | }, |
Martijn Coenen | 62e985a | 2018-09-04 06:29:14 +0200 | [diff] [blame] | 174 | |
| 175 | target: { |
| 176 | recovery: { |
| 177 | cflags: ["-DRECOVERY"], |
Daniel Norman | 8082ba2 | 2019-07-23 10:26:15 -0700 | [diff] [blame] | 178 | exclude_shared_libs: [ |
| 179 | "libbinder", |
| 180 | "libutils", |
| 181 | ], |
Martijn Coenen | 62e985a | 2018-09-04 06:29:14 +0200 | [diff] [blame] | 182 | }, |
| 183 | }, |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 184 | } |
| 185 | |
Steven Moreland | ceb36d0 | 2019-07-15 15:12:56 -0700 | [diff] [blame] | 186 | phony { |
| 187 | name: "init", |
| 188 | required: [ |
| 189 | "init_second_stage", |
| 190 | ], |
| 191 | } |
| 192 | |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 193 | cc_binary { |
Tom Cherry | 3143848 | 2018-07-20 14:57:00 -0700 | [diff] [blame] | 194 | name: "init_second_stage", |
| 195 | recovery_available: true, |
| 196 | stem: "init", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 197 | defaults: ["init_defaults"], |
Tom Cherry | 3143848 | 2018-07-20 14:57:00 -0700 | [diff] [blame] | 198 | static_libs: ["libinit"], |
Jin Qian | 0045697 | 2017-07-06 11:43:45 -0700 | [diff] [blame] | 199 | required: [ |
| 200 | "e2fsdroid", |
Tom Cherry | c9f5353 | 2019-11-04 10:30:36 -0800 | [diff] [blame] | 201 | "init.rc", |
Jin Qian | 0045697 | 2017-07-06 11:43:45 -0700 | [diff] [blame] | 202 | "mke2fs", |
Jaegeuk Kim | 899ad55 | 2017-11-28 19:26:34 -0800 | [diff] [blame] | 203 | "sload_f2fs", |
| 204 | "make_f2fs", |
Tom Cherry | c9f5353 | 2019-11-04 10:30:36 -0800 | [diff] [blame] | 205 | "ueventd.rc", |
Jin Qian | 0045697 | 2017-07-06 11:43:45 -0700 | [diff] [blame] | 206 | ], |
Tom Cherry | 618d310 | 2018-01-19 14:25:48 -0800 | [diff] [blame] | 207 | srcs: ["main.cpp"], |
Tom Cherry | 3143848 | 2018-07-20 14:57:00 -0700 | [diff] [blame] | 208 | symlinks: ["ueventd"], |
Martijn Coenen | 62e985a | 2018-09-04 06:29:14 +0200 | [diff] [blame] | 209 | target: { |
| 210 | recovery: { |
| 211 | cflags: ["-DRECOVERY"], |
Daniel Norman | 8082ba2 | 2019-07-23 10:26:15 -0700 | [diff] [blame] | 212 | exclude_shared_libs: [ |
| 213 | "libbinder", |
| 214 | "libutils", |
| 215 | ], |
Martijn Coenen | 62e985a | 2018-09-04 06:29:14 +0200 | [diff] [blame] | 216 | }, |
| 217 | }, |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 218 | } |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 219 | |
| 220 | // Tests |
| 221 | // ------------------------------------------------------------------------------ |
| 222 | |
| 223 | cc_test { |
Tom Cherry | 17b2be0 | 2019-08-20 10:43:48 -0700 | [diff] [blame] | 224 | name: "CtsInitTestCases", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 225 | defaults: ["init_defaults"], |
Josh Gao | 6cad139 | 2019-08-27 16:02:38 -0700 | [diff] [blame] | 226 | require_root: true, |
| 227 | |
Tom Cherry | 17b2be0 | 2019-08-20 10:43:48 -0700 | [diff] [blame] | 228 | compile_multilib: "both", |
| 229 | multilib: { |
| 230 | lib32: { |
| 231 | suffix: "32", |
| 232 | }, |
| 233 | lib64: { |
| 234 | suffix: "64", |
| 235 | }, |
| 236 | }, |
| 237 | |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 238 | srcs: [ |
| 239 | "devices_test.cpp", |
Tom Cherry | dcb3d15 | 2019-08-07 16:02:28 -0700 | [diff] [blame] | 240 | "firmware_handler_test.cpp", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 241 | "init_test.cpp", |
Mark Salyzyn | 75b901d | 2018-05-15 11:19:43 -0700 | [diff] [blame] | 242 | "keychords_test.cpp", |
Tom Cherry | bdbf504 | 2020-03-04 10:52:08 -0800 | [diff] [blame^] | 243 | "oneshot_on_test.cpp", |
Tom Cherry | 16fad42 | 2017-08-04 15:59:03 -0700 | [diff] [blame] | 244 | "persistent_properties_test.cpp", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 245 | "property_service_test.cpp", |
Tom Cherry | 927c5d5 | 2017-12-11 01:40:07 -0800 | [diff] [blame] | 246 | "property_type_test.cpp", |
Tom Cherry | 7ac013d | 2017-08-25 10:39:25 -0700 | [diff] [blame] | 247 | "rlimit_parser_test.cpp", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 248 | "service_test.cpp", |
Tom Cherry | cb0f9bb | 2017-09-12 15:58:47 -0700 | [diff] [blame] | 249 | "subcontext_test.cpp", |
Tom Cherry | 2a5a4e7 | 2018-06-26 13:56:34 -0700 | [diff] [blame] | 250 | "tokenizer_test.cpp", |
Tom Cherry | 5f0198b | 2018-07-17 15:28:16 -0700 | [diff] [blame] | 251 | "ueventd_parser_test.cpp", |
Tom Cherry | c2e181c | 2017-07-14 16:29:23 -0700 | [diff] [blame] | 252 | "ueventd_test.cpp", |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 253 | "util_test.cpp", |
| 254 | ], |
Tom Cherry | 618d310 | 2018-01-19 14:25:48 -0800 | [diff] [blame] | 255 | static_libs: ["libinit"], |
Tom Cherry | 17b2be0 | 2019-08-20 10:43:48 -0700 | [diff] [blame] | 256 | |
| 257 | test_suites: [ |
| 258 | "cts", |
| 259 | "device-tests", |
| 260 | "vts", |
| 261 | ], |
Tom Cherry | 14fc013 | 2017-05-09 17:11:57 -0700 | [diff] [blame] | 262 | } |
| 263 | |
Tom Cherry | cb0f9bb | 2017-09-12 15:58:47 -0700 | [diff] [blame] | 264 | cc_benchmark { |
| 265 | name: "init_benchmarks", |
| 266 | defaults: ["init_defaults"], |
| 267 | srcs: [ |
| 268 | "subcontext_benchmark.cpp", |
| 269 | ], |
Tom Cherry | 618d310 | 2018-01-19 14:25:48 -0800 | [diff] [blame] | 270 | static_libs: ["libinit"], |
Tom Cherry | cb0f9bb | 2017-09-12 15:58:47 -0700 | [diff] [blame] | 271 | } |
| 272 | |
Tom Cherry | a2f9136 | 2020-02-20 10:50:00 -0800 | [diff] [blame] | 273 | cc_defaults { |
| 274 | name: "libinit_test_utils_libraries_defaults", |
| 275 | shared_libs: [ |
| 276 | "libbase", |
| 277 | "libcutils", |
| 278 | "libselinux", |
| 279 | "libhidl-gen-utils", |
| 280 | "liblog", |
| 281 | "libprocessgroup", |
| 282 | "libprotobuf-cpp-lite", |
| 283 | ], |
| 284 | } |
| 285 | |
| 286 | cc_library_static { |
| 287 | name: "libinit_test_utils", |
| 288 | defaults: ["libinit_test_utils_libraries_defaults"], |
| 289 | cflags: [ |
| 290 | "-Wall", |
| 291 | "-Wextra", |
| 292 | "-Wno-unused-parameter", |
| 293 | "-Werror", |
| 294 | ], |
| 295 | srcs: init_common_sources + [ |
| 296 | "test_utils/service_utils.cpp", |
| 297 | ], |
| 298 | whole_static_libs: [ |
| 299 | "libcap", |
| 300 | ], |
| 301 | export_include_dirs: ["test_utils/include"], // for tests |
| 302 | } |
| 303 | |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 304 | // Host Verifier |
| 305 | // ------------------------------------------------------------------------------ |
| 306 | |
| 307 | genrule { |
| 308 | name: "generated_stub_builtin_function_map", |
Tom Cherry | 4772f1d | 2019-07-30 09:34:41 -0700 | [diff] [blame] | 309 | tool_files: ["host_builtin_map.py"], |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 310 | out: ["generated_stub_builtin_function_map.h"], |
Daniel Norman | d2533c3 | 2019-08-02 15:13:50 -0700 | [diff] [blame] | 311 | srcs: [ |
| 312 | "builtins.cpp", |
| 313 | "check_builtins.cpp", |
| 314 | ], |
Tom Cherry | 4772f1d | 2019-07-30 09:34:41 -0700 | [diff] [blame] | 315 | cmd: "$(location host_builtin_map.py) --builtins $(location builtins.cpp) --check_builtins $(location check_builtins.cpp) > $(out)", |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 316 | } |
| 317 | |
| 318 | cc_binary { |
| 319 | name: "host_init_verifier", |
| 320 | host_supported: true, |
| 321 | cpp_std: "experimental", |
| 322 | cflags: [ |
| 323 | "-Wall", |
| 324 | "-Wextra", |
| 325 | "-Wno-unused-parameter", |
| 326 | "-Werror", |
| 327 | ], |
| 328 | static_libs: [ |
| 329 | "libbase", |
| 330 | "libselinux", |
Tom Cherry | b5f2ec0 | 2019-11-08 17:54:27 -0800 | [diff] [blame] | 331 | "libpropertyinfoserializer", |
| 332 | "libpropertyinfoparser", |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 333 | ], |
| 334 | whole_static_libs: ["libcap"], |
| 335 | shared_libs: [ |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 336 | "libcutils", |
Daniel Norman | 3f42a76 | 2019-07-09 11:00:53 -0700 | [diff] [blame] | 337 | "libhidl-gen-utils", |
Steven Moreland | 422a758 | 2019-10-15 14:53:19 -0700 | [diff] [blame] | 338 | "libhidlmetadata", |
Daniel Norman | 3f42a76 | 2019-07-09 11:00:53 -0700 | [diff] [blame] | 339 | "liblog", |
| 340 | "libprocessgroup", |
| 341 | "libprotobuf-cpp-lite", |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 342 | ], |
Tom Cherry | 6619649 | 2020-02-06 11:56:58 -0800 | [diff] [blame] | 343 | srcs: init_common_sources + init_host_sources, |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 344 | proto: { |
| 345 | type: "lite", |
| 346 | }, |
Yifan Hong | 3c4aa11 | 2018-06-20 22:49:48 +0000 | [diff] [blame] | 347 | generated_headers: [ |
| 348 | "generated_stub_builtin_function_map", |
Daniel Norman | 8082ba2 | 2019-07-23 10:26:15 -0700 | [diff] [blame] | 349 | "generated_android_ids", |
Yifan Hong | 3c4aa11 | 2018-06-20 22:49:48 +0000 | [diff] [blame] | 350 | ], |
Tom Cherry | 96ff0fe | 2018-02-28 17:20:27 -0800 | [diff] [blame] | 351 | target: { |
Tom Cherry | 547f731 | 2018-02-28 21:40:46 -0800 | [diff] [blame] | 352 | android: { |
| 353 | enabled: false, |
| 354 | }, |
Tom Cherry | 96ff0fe | 2018-02-28 17:20:27 -0800 | [diff] [blame] | 355 | darwin: { |
Yifan Hong | 3c4aa11 | 2018-06-20 22:49:48 +0000 | [diff] [blame] | 356 | enabled: false, |
Tom Cherry | 96ff0fe | 2018-02-28 17:20:27 -0800 | [diff] [blame] | 357 | }, |
| 358 | }, |
Tom Cherry | de6bd50 | 2018-02-13 16:50:08 -0800 | [diff] [blame] | 359 | } |