blob: a57f3a4072e1aa2cbfd1451c6c6a647a50ec0921 [file] [log] [blame]
Tom Cherry14fc0132017-05-09 17:11:57 -07001//
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
Bob Badourd69ad692021-02-16 19:02:14 -080017package {
18 default_applicable_licenses: ["system_core_init_license"],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24 name: "system_core_init_license",
25 visibility: [":__subpackages__"],
26 license_kinds: [
27 "SPDX-license-identifier-Apache-2.0",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
Tom Cherry66196492020-02-06 11:56:58 -080034init_common_sources = [
35 "action.cpp",
36 "action_manager.cpp",
37 "action_parser.cpp",
38 "capabilities.cpp",
39 "epoll.cpp",
40 "import_parser.cpp",
41 "interface_utils.cpp",
42 "keychords.cpp",
43 "parser.cpp",
44 "property_type.cpp",
45 "rlimit_parser.cpp",
46 "service.cpp",
47 "service_list.cpp",
48 "service_parser.cpp",
49 "service_utils.cpp",
50 "subcontext.cpp",
51 "subcontext.proto",
52 "tokenizer.cpp",
53 "util.cpp",
54]
55init_device_sources = [
David Anderson41175592020-03-20 19:38:28 -070056 "block_dev_initializer.cpp",
Tom Cherry66196492020-02-06 11:56:58 -080057 "bootchart.cpp",
58 "builtins.cpp",
59 "devices.cpp",
60 "firmware_handler.cpp",
Steve Mucklea4bf2ce2019-11-01 13:58:02 -070061 "first_stage_console.cpp",
Tom Cherry66196492020-02-06 11:56:58 -080062 "first_stage_init.cpp",
63 "first_stage_mount.cpp",
64 "fscrypt_init_extensions.cpp",
65 "init.cpp",
66 "lmkd_service.cpp",
67 "modalias_handler.cpp",
68 "mount_handler.cpp",
69 "mount_namespace.cpp",
70 "persistent_properties.cpp",
71 "persistent_properties.proto",
72 "property_service.cpp",
73 "property_service.proto",
74 "reboot.cpp",
75 "reboot_utils.cpp",
76 "security.cpp",
77 "selabel.cpp",
78 "selinux.cpp",
79 "sigchld_handler.cpp",
David Anderson491e4da2020-12-08 00:21:20 -080080 "snapuserd_transition.cpp",
Tom Cherry66196492020-02-06 11:56:58 -080081 "switch_root.cpp",
82 "uevent_listener.cpp",
83 "ueventd.cpp",
84 "ueventd_parser.cpp",
85]
86init_host_sources = [
87 "check_builtins.cpp",
88 "host_import_parser.cpp",
89 "host_init_verifier.cpp",
90]
91
Yi-Yo Chiang1c1e2672021-09-11 19:33:33 +080092soong_config_module_type {
93 name: "libinit_cc_defaults",
94 module_type: "cc_defaults",
95 config_namespace: "ANDROID",
96 bool_variables: [
97 "PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT",
98 ],
99 properties: [
100 "cflags",
101 ],
102}
103
104libinit_cc_defaults {
Tom Cherry14fc0132017-05-09 17:11:57 -0700105 name: "init_defaults",
Tom Cherry14fc0132017-05-09 17:11:57 -0700106 sanitize: {
Tom Cherry2ffd65e2017-07-26 14:17:09 -0700107 misc_undefined: ["signed-integer-overflow"],
Tom Cherry14fc0132017-05-09 17:11:57 -0700108 },
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -0700109 cflags: [
Tom Cherry14fc0132017-05-09 17:11:57 -0700110 "-DLOG_UEVENTS=0",
111 "-Wall",
112 "-Wextra",
113 "-Wno-unused-parameter",
114 "-Werror",
Tom Cherry802864c2020-03-12 14:29:25 -0700115 "-Wthread-safety",
Steve Muckled75f30a2019-05-21 15:50:39 -0700116 "-DALLOW_FIRST_STAGE_CONSOLE=0",
Tom Cherry14fc0132017-05-09 17:11:57 -0700117 "-DALLOW_LOCAL_PROP_OVERRIDE=0",
118 "-DALLOW_PERMISSIVE_SELINUX=0",
119 "-DREBOOT_BOOTLOADER_ON_PANIC=0",
120 "-DWORLD_WRITABLE_KMSG=0",
121 "-DDUMP_ON_UMOUNT_FAILURE=0",
122 "-DSHUTDOWN_ZERO_TIMEOUT=0",
Tom Cherrya2f91362020-02-20 10:50:00 -0800123 "-DINIT_FULL_SOURCES",
Yi-Yo Chiang1c1e2672021-09-11 19:33:33 +0800124 "-DINSTALL_DEBUG_POLICY_TO_SYSTEM_EXT=0",
Tom Cherry14fc0132017-05-09 17:11:57 -0700125 ],
126 product_variables: {
127 debuggable: {
128 cppflags: [
Steve Muckled75f30a2019-05-21 15:50:39 -0700129 "-UALLOW_FIRST_STAGE_CONSOLE",
130 "-DALLOW_FIRST_STAGE_CONSOLE=1",
Tom Cherry14fc0132017-05-09 17:11:57 -0700131 "-UALLOW_LOCAL_PROP_OVERRIDE",
132 "-DALLOW_LOCAL_PROP_OVERRIDE=1",
133 "-UALLOW_PERMISSIVE_SELINUX",
134 "-DALLOW_PERMISSIVE_SELINUX=1",
135 "-UREBOOT_BOOTLOADER_ON_PANIC",
136 "-DREBOOT_BOOTLOADER_ON_PANIC=1",
137 "-UWORLD_WRITABLE_KMSG",
138 "-DWORLD_WRITABLE_KMSG=1",
139 "-UDUMP_ON_UMOUNT_FAILURE",
140 "-DDUMP_ON_UMOUNT_FAILURE=1",
141 ],
142 },
143 eng: {
144 cppflags: [
145 "-USHUTDOWN_ZERO_TIMEOUT",
146 "-DSHUTDOWN_ZERO_TIMEOUT=1",
147 ],
148 },
Dmitry Shmidtc3bc5092017-08-23 14:57:07 -0700149 uml: {
150 cppflags: ["-DUSER_MODE_LINUX"],
Elliott Hughesdc699a22018-02-16 17:58:14 -0800151 },
Tom Cherry14fc0132017-05-09 17:11:57 -0700152 },
Yi-Yo Chiang1c1e2672021-09-11 19:33:33 +0800153 soong_config_variables: {
154 PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT: {
155 cflags: [
156 "-UINSTALL_DEBUG_POLICY_TO_SYSTEM_EXT",
157 "-DINSTALL_DEBUG_POLICY_TO_SYSTEM_EXT=1",
158 ],
159 },
160 },
Tom Cherry618d3102018-01-19 14:25:48 -0800161 static_libs: [
Tom Cherry618d3102018-01-19 14:25:48 -0800162 "libavb",
Bowgo Tsai30afda72019-04-11 23:57:24 +0800163 "libc++fs",
Yifan Hongd8ce1fb2019-03-22 17:21:58 -0700164 "libcgrouprc_format",
Suren Baghdasaryanc29c2ba2019-10-22 17:18:42 -0700165 "liblmkd_utils",
Steve Muckle18b981e2019-04-15 17:43:02 -0700166 "libmodprobe",
David Anderson9fd88622021-03-05 14:10:55 -0800167 "libprocinfo",
Tom Cherry618d3102018-01-19 14:25:48 -0800168 "libprotobuf-cpp-lite",
169 "libpropertyinfoserializer",
170 "libpropertyinfoparser",
David Andersonaca0bea2020-09-21 16:34:25 -0700171 "libsnapshot_cow",
David Andersondfe6d072019-10-09 16:24:03 -0700172 "libsnapshot_init",
Jooyung Han1d951b72020-07-05 03:33:36 +0900173 "libxml2",
Jiyong Park648ae3a2019-12-08 00:25:15 +0900174 "lib_apex_manifest_proto_lite",
Yifan Hong66f01152020-04-16 11:05:16 -0700175 "update_metadata-protos",
Jiyong Park787322c2018-06-01 19:26:42 +0900176 ],
177 shared_libs: [
Tom Cherry59656fb2019-05-28 10:19:44 -0700178 "libbacktrace",
Jiyong Park787322c2018-06-01 19:26:42 +0900179 "libbase",
Tao Bao66209ca2018-07-25 22:35:45 -0700180 "libbootloader_message",
181 "libcutils",
Jiyong Park787322c2018-06-01 19:26:42 +0900182 "libdl",
Tao Bao66209ca2018-07-25 22:35:45 -0700183 "libext4_utils",
184 "libfs_mgr",
David Anderson0e330f12019-01-03 18:16:56 -0800185 "libgsi",
Tao Bao66209ca2018-07-25 22:35:45 -0700186 "libhidl-gen-utils",
187 "libkeyutils",
188 "liblog",
189 "liblogwrap",
Tom Cherry7bfea3d2018-11-06 14:12:05 -0800190 "liblp",
Suren Baghdasaryan82b72a52018-12-21 11:41:50 -0800191 "libprocessgroup",
Yifan Hong6f9ce2e2019-03-05 15:47:16 -0800192 "libprocessgroup_setup",
Jiyong Park012171d2018-06-19 16:55:05 +0900193 "libselinux",
Martijn Coenen62e985a2018-09-04 06:29:14 +0200194 "libutils",
Tom Cherry618d3102018-01-19 14:25:48 -0800195 ],
Jiyong Park93318d42018-12-26 17:34:39 +0900196 bootstrap: true,
Daniel Norman8082ba22019-07-23 10:26:15 -0700197 visibility: [":__subpackages__"],
Tom Cherry14fc0132017-05-09 17:11:57 -0700198}
199
200cc_library_static {
201 name: "libinit",
Tom Cherry31438482018-07-20 14:57:00 -0700202 recovery_available: true,
Daniel Norman8082ba22019-07-23 10:26:15 -0700203 defaults: [
204 "init_defaults",
205 "selinux_policy_version",
206 ],
Tom Cherry66196492020-02-06 11:56:58 -0800207 srcs: init_common_sources + init_device_sources,
Jooyung Han1d951b72020-07-05 03:33:36 +0900208 generated_sources: [
209 "apex-info-list",
210 ],
Daniel Norman8082ba22019-07-23 10:26:15 -0700211 whole_static_libs: [
212 "libcap",
213 "com.android.sysprop.apex",
Nikita Ioffe23dbd6d2019-11-14 01:21:24 +0000214 "com.android.sysprop.init",
Daniel Norman8082ba22019-07-23 10:26:15 -0700215 ],
Jayant Chowdhary478c7c12018-03-28 18:45:35 -0700216 header_libs: ["bootimg_headers"],
Tom Cherrya97faba2017-09-15 15:44:04 -0700217 proto: {
218 type: "lite",
219 export_proto_headers: true,
220 },
Martijn Coenen62e985a2018-09-04 06:29:14 +0200221
222 target: {
223 recovery: {
224 cflags: ["-DRECOVERY"],
Jooyung Han1d951b72020-07-05 03:33:36 +0900225 exclude_static_libs: [
226 "libxml2",
227 ],
228 exclude_generated_sources: [
229 "apex-info-list",
230 ],
Daniel Norman8082ba22019-07-23 10:26:15 -0700231 exclude_shared_libs: [
232 "libbinder",
233 "libutils",
234 ],
Martijn Coenen62e985a2018-09-04 06:29:14 +0200235 },
236 },
Tom Cherry14fc0132017-05-09 17:11:57 -0700237}
238
Steven Morelandceb36d02019-07-15 15:12:56 -0700239phony {
240 name: "init",
241 required: [
242 "init_second_stage",
243 ],
244}
245
Tom Cherry14fc0132017-05-09 17:11:57 -0700246cc_binary {
Tom Cherry31438482018-07-20 14:57:00 -0700247 name: "init_second_stage",
248 recovery_available: true,
249 stem: "init",
Tom Cherry14fc0132017-05-09 17:11:57 -0700250 defaults: ["init_defaults"],
Tom Cherry31438482018-07-20 14:57:00 -0700251 static_libs: ["libinit"],
Jin Qian00456972017-07-06 11:43:45 -0700252 required: [
253 "e2fsdroid",
Tom Cherryc9f53532019-11-04 10:30:36 -0800254 "init.rc",
Jin Qian00456972017-07-06 11:43:45 -0700255 "mke2fs",
Jaegeuk Kim899ad552017-11-28 19:26:34 -0800256 "sload_f2fs",
257 "make_f2fs",
Tom Cherryc9f53532019-11-04 10:30:36 -0800258 "ueventd.rc",
Jin Qian00456972017-07-06 11:43:45 -0700259 ],
Tom Cherry618d3102018-01-19 14:25:48 -0800260 srcs: ["main.cpp"],
Tom Cherry31438482018-07-20 14:57:00 -0700261 symlinks: ["ueventd"],
Martijn Coenen62e985a2018-09-04 06:29:14 +0200262 target: {
263 recovery: {
264 cflags: ["-DRECOVERY"],
Jooyung Han1d951b72020-07-05 03:33:36 +0900265 exclude_static_libs: [
266 "libxml2",
267 ],
Daniel Norman8082ba22019-07-23 10:26:15 -0700268 exclude_shared_libs: [
269 "libbinder",
270 "libutils",
271 ],
Martijn Coenen62e985a2018-09-04 06:29:14 +0200272 },
273 },
Jiyong Park90353782021-01-25 18:41:40 +0900274 visibility: ["//packages/modules/Virtualization/microdroid"],
Tom Cherry14fc0132017-05-09 17:11:57 -0700275}
Tom Cherry14fc0132017-05-09 17:11:57 -0700276
Inseob Kim651db092021-07-01 06:50:40 +0000277// This currently is only for the VM usecase.
278// TODO(jiyong): replace init_first_stage in Android.mk with this
Jiyong Park13eb0532021-02-15 14:13:51 +0900279cc_binary {
Inseob Kim651db092021-07-01 06:50:40 +0000280 name: "init_first_stage_soong",
281 stem: "init_vendor",
Jiyong Park13eb0532021-02-15 14:13:51 +0900282
283 srcs: [
284 "block_dev_initializer.cpp",
285 "devices.cpp",
286 "first_stage_console.cpp",
287 "first_stage_init.cpp",
288 "first_stage_main.cpp",
289 "first_stage_mount.cpp",
290 "reboot_utils.cpp",
291 "selabel.cpp",
292 "selinux.cpp",
293 "service_utils.cpp",
294 "snapuserd_transition.cpp",
295 "switch_root.cpp",
296 "uevent_listener.cpp",
297 "util.cpp",
298 ],
299
300 static_libs: [
301 "libc++fs",
302 "libfs_avb",
303 "libfs_mgr",
304 "libfec",
305 "libfec_rs",
306 "libsquashfs_utils",
307 "liblogwrap",
308 "libext4_utils",
309 "libcrypto_utils",
310 "libsparse",
311 "libavb",
312 "libkeyutils",
313 "liblp",
314 "libcutils",
315 "libbase",
316 "liblog",
317 "libcrypto_static",
318 "libdl",
319 "libz",
320 "libselinux",
321 "libcap",
322 "libgsi",
323 "libcom.android.sysprop.apex",
324 "liblzma",
325 "libunwindstack_no_dex",
326 "libbacktrace_no_dex",
327 "libmodprobe",
328 "libext2_uuid",
329 "libprotobuf-cpp-lite",
330 "libsnapshot_cow",
331 "libsnapshot_init",
332 "update_metadata-protos",
David Anderson9fd88622021-03-05 14:10:55 -0800333 "libprocinfo",
Jiyong Park13eb0532021-02-15 14:13:51 +0900334 ],
335
336 static_executable: true,
337
338 cflags: [
339 "-Wall",
340 "-Wextra",
341 "-Wno-unused-parameter",
342 "-Werror",
343 "-DALLOW_FIRST_STAGE_CONSOLE=0",
344 "-DALLOW_LOCAL_PROP_OVERRIDE=0",
345 "-DALLOW_PERMISSIVE_SELINUX=0",
346 "-DREBOOT_BOOTLOADER_ON_PANIC=0",
347 "-DWORLD_WRITABLE_KMSG=0",
348 "-DDUMP_ON_UMOUNT_FAILURE=0",
349 "-DSHUTDOWN_ZERO_TIMEOUT=0",
350 "-DLOG_UEVENTS=0",
351 "-DSEPOLICY_VERSION=30", // TODO(jiyong): externalize the version number
352 ],
353
354 product_variables: {
355 debuggable: {
356 cflags: [
357 "-UALLOW_FIRST_STAGE_CONSOLE",
358 "-DALLOW_FIRST_STAGE_CONSOLE=1",
359
360 "-UALLOW_LOCAL_PROP_OVERRIDE",
361 "-DALLOW_LOCAL_PROP_OVERRIDE=1",
362
363 "-UALLOW_PERMISSIVE_SELINUX",
364 "-DALLOW_PERMISSIVE_SELINUX=1",
365
366 "-UREBOOT_BOOTLOADER_ON_PANIC",
367 "-DREBOOT_BOOTLOADER_ON_PANIC=1",
368
369 "-UWORLD_WRITABLE_KMSG",
370 "-DWORLD_WRITABLE_KMSG=1",
371
372 "-UDUMP_ON_UMOUNT_FAILURE",
373 "-DDUMP_ON_UMOUNT_FAILURE=1",
374 ],
375 },
376
377 eng: {
378 cflags: [
379 "-USHUTDOWN_ZERO_TIMEOUT",
380 "-DSHUTDOWN_ZERO_TIMEOUT=1",
381 ],
382 },
383 },
384
385 sanitize: {
386 misc_undefined: ["signed-integer-overflow"],
387 hwaddress: false,
388 },
389}
390
Tom Cherry14fc0132017-05-09 17:11:57 -0700391// Tests
392// ------------------------------------------------------------------------------
393
394cc_test {
Tom Cherry17b2be02019-08-20 10:43:48 -0700395 name: "CtsInitTestCases",
Tom Cherry14fc0132017-05-09 17:11:57 -0700396 defaults: ["init_defaults"],
Josh Gao6cad1392019-08-27 16:02:38 -0700397 require_root: true,
398
Tom Cherry17b2be02019-08-20 10:43:48 -0700399 compile_multilib: "both",
400 multilib: {
401 lib32: {
402 suffix: "32",
403 },
404 lib64: {
405 suffix: "64",
406 },
407 },
408
Tom Cherry14fc0132017-05-09 17:11:57 -0700409 srcs: [
410 "devices_test.cpp",
David Anderson1de73842021-05-13 20:18:14 -0700411 "epoll_test.cpp",
Tom Cherrydcb3d152019-08-07 16:02:28 -0700412 "firmware_handler_test.cpp",
Tom Cherry14fc0132017-05-09 17:11:57 -0700413 "init_test.cpp",
Mark Salyzyn75b901d2018-05-15 11:19:43 -0700414 "keychords_test.cpp",
Tom Cherrybdbf5042020-03-04 10:52:08 -0800415 "oneshot_on_test.cpp",
Tom Cherry16fad422017-08-04 15:59:03 -0700416 "persistent_properties_test.cpp",
Tom Cherry14fc0132017-05-09 17:11:57 -0700417 "property_service_test.cpp",
Tom Cherry927c5d52017-12-11 01:40:07 -0800418 "property_type_test.cpp",
Nikita Ioffe660ffde2020-12-10 16:52:35 +0000419 "reboot_test.cpp",
Tom Cherry7ac013d2017-08-25 10:39:25 -0700420 "rlimit_parser_test.cpp",
Tom Cherry14fc0132017-05-09 17:11:57 -0700421 "service_test.cpp",
Tom Cherrycb0f9bb2017-09-12 15:58:47 -0700422 "subcontext_test.cpp",
Tom Cherry2a5a4e72018-06-26 13:56:34 -0700423 "tokenizer_test.cpp",
Tom Cherry5f0198b2018-07-17 15:28:16 -0700424 "ueventd_parser_test.cpp",
Tom Cherryc2e181c2017-07-14 16:29:23 -0700425 "ueventd_test.cpp",
Tom Cherry14fc0132017-05-09 17:11:57 -0700426 "util_test.cpp",
427 ],
Tom Cherry618d3102018-01-19 14:25:48 -0800428 static_libs: ["libinit"],
Tom Cherry17b2be02019-08-20 10:43:48 -0700429
430 test_suites: [
431 "cts",
432 "device-tests",
Tom Cherry17b2be02019-08-20 10:43:48 -0700433 ],
Tom Cherry14fc0132017-05-09 17:11:57 -0700434}
435
Tom Cherrycb0f9bb2017-09-12 15:58:47 -0700436cc_benchmark {
437 name: "init_benchmarks",
438 defaults: ["init_defaults"],
439 srcs: [
440 "subcontext_benchmark.cpp",
441 ],
Tom Cherry618d3102018-01-19 14:25:48 -0800442 static_libs: ["libinit"],
Tom Cherrycb0f9bb2017-09-12 15:58:47 -0700443}
444
Tom Cherrya2f91362020-02-20 10:50:00 -0800445cc_defaults {
446 name: "libinit_test_utils_libraries_defaults",
447 shared_libs: [
448 "libbase",
449 "libcutils",
450 "libselinux",
451 "libhidl-gen-utils",
452 "liblog",
453 "libprocessgroup",
454 "libprotobuf-cpp-lite",
455 ],
456}
457
458cc_library_static {
459 name: "libinit_test_utils",
460 defaults: ["libinit_test_utils_libraries_defaults"],
461 cflags: [
462 "-Wall",
463 "-Wextra",
464 "-Wno-unused-parameter",
465 "-Werror",
466 ],
467 srcs: init_common_sources + [
468 "test_utils/service_utils.cpp",
469 ],
470 whole_static_libs: [
471 "libcap",
472 ],
473 export_include_dirs: ["test_utils/include"], // for tests
474}
475
Tom Cherryde6bd502018-02-13 16:50:08 -0800476// Host Verifier
477// ------------------------------------------------------------------------------
478
479genrule {
480 name: "generated_stub_builtin_function_map",
Tom Cherry4772f1d2019-07-30 09:34:41 -0700481 tool_files: ["host_builtin_map.py"],
Tom Cherryde6bd502018-02-13 16:50:08 -0800482 out: ["generated_stub_builtin_function_map.h"],
Daniel Normand2533c32019-08-02 15:13:50 -0700483 srcs: [
484 "builtins.cpp",
485 "check_builtins.cpp",
486 ],
Tom Cherry4772f1d2019-07-30 09:34:41 -0700487 cmd: "$(location host_builtin_map.py) --builtins $(location builtins.cpp) --check_builtins $(location check_builtins.cpp) > $(out)",
Tom Cherryde6bd502018-02-13 16:50:08 -0800488}
489
490cc_binary {
491 name: "host_init_verifier",
492 host_supported: true,
Tom Cherryde6bd502018-02-13 16:50:08 -0800493 cflags: [
494 "-Wall",
495 "-Wextra",
496 "-Wno-unused-parameter",
497 "-Werror",
498 ],
499 static_libs: [
500 "libbase",
501 "libselinux",
Tom Cherryb5f2ec02019-11-08 17:54:27 -0800502 "libpropertyinfoserializer",
503 "libpropertyinfoparser",
Tom Cherryde6bd502018-02-13 16:50:08 -0800504 ],
505 whole_static_libs: ["libcap"],
506 shared_libs: [
Tom Cherryde6bd502018-02-13 16:50:08 -0800507 "libcutils",
Daniel Norman3f42a762019-07-09 11:00:53 -0700508 "libhidl-gen-utils",
Steven Moreland422a7582019-10-15 14:53:19 -0700509 "libhidlmetadata",
Daniel Norman3f42a762019-07-09 11:00:53 -0700510 "liblog",
511 "libprocessgroup",
512 "libprotobuf-cpp-lite",
Tom Cherryde6bd502018-02-13 16:50:08 -0800513 ],
Tom Cherry66196492020-02-06 11:56:58 -0800514 srcs: init_common_sources + init_host_sources,
Tom Cherryde6bd502018-02-13 16:50:08 -0800515 proto: {
516 type: "lite",
517 },
Yifan Hong3c4aa112018-06-20 22:49:48 +0000518 generated_headers: [
519 "generated_stub_builtin_function_map",
Daniel Norman8082ba22019-07-23 10:26:15 -0700520 "generated_android_ids",
Yifan Hong3c4aa112018-06-20 22:49:48 +0000521 ],
Tom Cherry96ff0fe2018-02-28 17:20:27 -0800522 target: {
Tom Cherry547f7312018-02-28 21:40:46 -0800523 android: {
524 enabled: false,
525 },
Tom Cherry96ff0fe2018-02-28 17:20:27 -0800526 darwin: {
Yifan Hong3c4aa112018-06-20 22:49:48 +0000527 enabled: false,
Tom Cherry96ff0fe2018-02-28 17:20:27 -0800528 },
529 },
Tom Cherryde6bd502018-02-13 16:50:08 -0800530}