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