blob: 524579ae97bd2937dc64fdca508e8e0db806e99a [file] [log] [blame]
[email protected]743530f2014-06-12 19:38:501# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
mukai6ba73552014-10-09 19:05:175import("//build/config/ui.gni")
qsrfb5251d12015-01-21 15:57:226import("//testing/test.gni")
[email protected]743530f2014-06-12 19:38:507import("//third_party/protobuf/proto_library.gni")
8
mukai327e5f52014-10-16 19:10:529assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos")
10
hashimotoaa1465a2015-12-11 06:19:5911declare_args() {
12 # Use binder. Binder related code is compiled only when true.
13 use_binder = false
14}
15
mukai6ba73552014-10-09 19:05:1716component("chromeos") {
svaldez2135be52016-04-20 16:34:5317 configs += [ "//third_party/nss:system_nss_no_ssl_config" ]
scottmg34fb7e52014-12-03 23:27:2418 public_deps = [
19 "//dbus",
mukai6ba73552014-10-09 19:05:1720 ]
21 deps = [
drcrash7da3d8b2016-09-09 05:39:5322 ":attestation_proto",
rsorokinfc75ccee2017-02-10 13:16:4323 ":authpolicy_proto",
xiaoyinh58676cf2017-05-08 20:21:3124 ":biod_proto",
agrieved7a71c882015-11-20 19:53:2825 ":cryptohome_proto",
xiaohuic2f57e3f72017-05-31 01:29:5326 ":login_manager_proto",
lasorenf933419f2017-05-15 19:37:4527 ":media_perception_proto",
agrieved7a71c882015-11-20 19:53:2828 ":power_manager_proto",
mukai6ba73552014-10-09 19:05:1729 "//base",
Nico Webera3d0a422015-01-20 21:46:2130 "//base:i18n",
mukai6ba73552014-10-09 19:05:1731 "//base/third_party/dynamic_annotations",
tnagel020311f2016-12-01 20:53:4432 "//chrome/browser/chromeos:device_policy_proto",
reillyg4a849272015-02-20 21:38:4333 "//components/device_event_log",
mukai6ba73552014-10-09 19:05:1734 "//components/onc",
tnagel51accc42016-12-28 12:00:5835 "//components/policy:cloud_policy_proto_generated_compile",
agrieved7a71c882015-11-20 19:53:2836 "//components/policy/proto",
stevenjb100c6202016-10-28 02:28:0037 "//components/pref_registry",
brettw9f7802a22016-01-30 06:40:1738 "//components/prefs",
stevenjb83368882015-07-10 20:51:4539 "//components/proxy_config",
alematebd6a7332015-10-20 19:35:5340 "//components/signin/core/account_id",
stevenjbffe695c2017-01-10 21:35:5141 "//components/url_formatter",
alemate627f6532016-03-04 10:39:5442 "//components/user_manager",
mukai6ba73552014-10-09 19:05:1743 "//crypto",
nkostylev8d7d18d2015-01-28 11:25:0844 "//crypto:platform",
mukai6ba73552014-10-09 19:05:1745 "//google_apis",
shenghao77ec80c2017-02-22 20:14:1846 "//media/base:video_facing",
oshima3f959fa82016-05-02 18:42:5747 "//net",
stevenjb100c6202016-10-28 02:28:0048 "//skia", # For components/user_manager
mukai6ba73552014-10-09 19:05:1749 "//third_party/icu",
mukai6ba73552014-10-09 19:05:1750 "//third_party/protobuf:protobuf_lite",
mukai6ba73552014-10-09 19:05:1751 "//url",
mukai6ba73552014-10-09 19:05:1752 ]
teravest822d58e62017-03-20 16:31:5853 data_deps = [
54 ":dbus_service_files",
55 ]
teravest54ee2252017-03-17 14:18:1656 sources = [
57 "accelerometer/accelerometer_reader.cc",
58 "accelerometer/accelerometer_reader.h",
59 "accelerometer/accelerometer_types.cc",
60 "accelerometer/accelerometer_types.h",
61 "app_mode/kiosk_oem_manifest_parser.cc",
62 "app_mode/kiosk_oem_manifest_parser.h",
63 "attestation/attestation_constants.cc",
64 "attestation/attestation_constants.h",
65 "attestation/attestation_flow.cc",
66 "attestation/attestation_flow.h",
67 "audio/audio_a11y_controller.cc",
68 "audio/audio_a11y_controller.h",
69 "audio/audio_device.cc",
70 "audio/audio_device.h",
71 "audio/audio_devices_pref_handler.h",
72 "audio/audio_devices_pref_handler_impl.cc",
73 "audio/audio_devices_pref_handler_impl.h",
74 "audio/audio_devices_pref_handler_stub.cc",
75 "audio/audio_devices_pref_handler_stub.h",
76 "audio/audio_pref_observer.h",
77 "audio/chromeos_sounds.h",
78 "audio/cras_audio_handler.cc",
79 "audio/cras_audio_handler.h",
80 "binder/buffer_reader.cc",
81 "binder/buffer_reader.h",
82 "binder/command_broker.cc",
83 "binder/command_broker.h",
84 "binder/command_stream.cc",
85 "binder/command_stream.h",
86 "binder/constants.h",
87 "binder/driver.cc",
88 "binder/driver.h",
89 "binder/ipc_thread.cc",
90 "binder/ipc_thread.h",
91 "binder/local_object.cc",
92 "binder/local_object.h",
93 "binder/object.h",
94 "binder/remote_object.cc",
95 "binder/remote_object.h",
96 "binder/service_manager_proxy.cc",
97 "binder/service_manager_proxy.h",
98 "binder/status.h",
99 "binder/transaction_data.h",
100 "binder/transaction_data_from_driver.cc",
101 "binder/transaction_data_from_driver.h",
102 "binder/transaction_data_reader.cc",
103 "binder/transaction_data_reader.h",
104 "binder/transaction_status.cc",
105 "binder/transaction_status.h",
106 "binder/util.cc",
107 "binder/util.h",
108 "binder/writable_transaction_data.cc",
109 "binder/writable_transaction_data.h",
110 "cert_loader.cc",
111 "cert_loader.h",
112 "chromeos_constants.cc",
113 "chromeos_constants.h",
114 "chromeos_export.h",
115 "chromeos_paths.cc",
116 "chromeos_paths.h",
117 "chromeos_pref_names.cc",
118 "chromeos_pref_names.h",
119 "chromeos_switches.cc",
120 "chromeos_switches.h",
121 "cryptohome/async_method_caller.cc",
122 "cryptohome/async_method_caller.h",
123 "cryptohome/cryptohome_parameters.cc",
124 "cryptohome/cryptohome_parameters.h",
125 "cryptohome/cryptohome_util.cc",
126 "cryptohome/cryptohome_util.h",
127 "cryptohome/homedir_methods.cc",
128 "cryptohome/homedir_methods.h",
129 "cryptohome/system_salt_getter.cc",
130 "cryptohome/system_salt_getter.h",
Prashant Malani1025c4772017-08-24 20:22:30131 "dbus/arc_midis_client.cc",
132 "dbus/arc_midis_client.h",
teravest54ee2252017-03-17 14:18:16133 "dbus/arc_obb_mounter_client.cc",
134 "dbus/arc_obb_mounter_client.h",
Jeffrey Kardatzke49054cb72017-08-11 17:45:56135 "dbus/arc_oemcrypto_client.cc",
136 "dbus/arc_oemcrypto_client.h",
teravest54ee2252017-03-17 14:18:16137 "dbus/audio_node.cc",
138 "dbus/audio_node.h",
139 "dbus/auth_policy_client.cc",
140 "dbus/auth_policy_client.h",
sammiequon0958b7f2017-04-03 19:24:21141 "dbus/biod/biod_client.cc",
142 "dbus/biod/biod_client.h",
sammiequon86bf7842017-04-05 22:47:03143 "dbus/biod/fake_biod_client.cc",
144 "dbus/biod/fake_biod_client.h",
teravest54ee2252017-03-17 14:18:16145 "dbus/blocking_method_caller.cc",
146 "dbus/blocking_method_caller.h",
147 "dbus/cras_audio_client.cc",
148 "dbus/cras_audio_client.h",
149 "dbus/cros_disks_client.cc",
150 "dbus/cros_disks_client.h",
151 "dbus/cryptohome_client.cc",
152 "dbus/cryptohome_client.h",
153 "dbus/dbus_client_implementation_type.h",
154 "dbus/dbus_clients_browser.cc",
155 "dbus/dbus_clients_browser.h",
156 "dbus/dbus_clients_common.cc",
157 "dbus/dbus_clients_common.h",
158 "dbus/dbus_method_call_status.cc",
159 "dbus/dbus_method_call_status.h",
160 "dbus/dbus_thread_manager.cc",
161 "dbus/dbus_thread_manager.h",
162 "dbus/debug_daemon_client.cc",
163 "dbus/debug_daemon_client.h",
164 "dbus/easy_unlock_client.cc",
165 "dbus/easy_unlock_client.h",
Prashant Malani1025c4772017-08-24 20:22:30166 "dbus/fake_arc_midis_client.cc",
167 "dbus/fake_arc_midis_client.h",
teravest54ee2252017-03-17 14:18:16168 "dbus/fake_arc_obb_mounter_client.cc",
169 "dbus/fake_arc_obb_mounter_client.h",
Jeffrey Kardatzke49054cb72017-08-11 17:45:56170 "dbus/fake_arc_oemcrypto_client.cc",
171 "dbus/fake_arc_oemcrypto_client.h",
teravest54ee2252017-03-17 14:18:16172 "dbus/fake_auth_policy_client.cc",
173 "dbus/fake_auth_policy_client.h",
174 "dbus/fake_cras_audio_client.cc",
175 "dbus/fake_cras_audio_client.h",
176 "dbus/fake_cros_disks_client.cc",
177 "dbus/fake_cros_disks_client.h",
178 "dbus/fake_cryptohome_client.cc",
179 "dbus/fake_cryptohome_client.h",
180 "dbus/fake_debug_daemon_client.cc",
181 "dbus/fake_debug_daemon_client.h",
182 "dbus/fake_easy_unlock_client.cc",
183 "dbus/fake_easy_unlock_client.h",
184 "dbus/fake_gsm_sms_client.cc",
185 "dbus/fake_gsm_sms_client.h",
186 "dbus/fake_image_burner_client.cc",
187 "dbus/fake_image_burner_client.h",
188 "dbus/fake_image_loader_client.cc",
189 "dbus/fake_image_loader_client.h",
190 "dbus/fake_lorgnette_manager_client.cc",
191 "dbus/fake_lorgnette_manager_client.h",
lasorenf933419f2017-05-15 19:37:45192 "dbus/fake_media_analytics_client.cc",
193 "dbus/fake_media_analytics_client.h",
teravest54ee2252017-03-17 14:18:16194 "dbus/fake_modem_messaging_client.cc",
195 "dbus/fake_modem_messaging_client.h",
196 "dbus/fake_permission_broker_client.cc",
197 "dbus/fake_permission_broker_client.h",
198 "dbus/fake_power_manager_client.cc",
199 "dbus/fake_power_manager_client.h",
200 "dbus/fake_shill_device_client.cc",
201 "dbus/fake_shill_device_client.h",
202 "dbus/fake_shill_ipconfig_client.cc",
203 "dbus/fake_shill_ipconfig_client.h",
204 "dbus/fake_shill_manager_client.cc",
205 "dbus/fake_shill_manager_client.h",
206 "dbus/fake_shill_profile_client.cc",
207 "dbus/fake_shill_profile_client.h",
208 "dbus/fake_shill_service_client.cc",
209 "dbus/fake_shill_service_client.h",
210 "dbus/fake_shill_third_party_vpn_driver_client.cc",
211 "dbus/fake_shill_third_party_vpn_driver_client.h",
212 "dbus/fake_sms_client.cc",
213 "dbus/fake_sms_client.h",
214 "dbus/fake_system_clock_client.cc",
215 "dbus/fake_system_clock_client.h",
216 "dbus/fake_upstart_client.cc",
217 "dbus/fake_upstart_client.h",
Ryo Hashimoto44c140b2017-09-13 05:10:08218 "dbus/fake_virtual_file_provider_client.cc",
219 "dbus/fake_virtual_file_provider_client.h",
teravest54ee2252017-03-17 14:18:16220 "dbus/gsm_sms_client.cc",
221 "dbus/gsm_sms_client.h",
222 "dbus/image_burner_client.cc",
223 "dbus/image_burner_client.h",
224 "dbus/image_loader_client.cc",
225 "dbus/image_loader_client.h",
226 "dbus/lorgnette_manager_client.cc",
227 "dbus/lorgnette_manager_client.h",
lasorenf933419f2017-05-15 19:37:45228 "dbus/media_analytics_client.cc",
229 "dbus/media_analytics_client.h",
teravest54ee2252017-03-17 14:18:16230 "dbus/modem_messaging_client.cc",
231 "dbus/modem_messaging_client.h",
232 "dbus/permission_broker_client.cc",
233 "dbus/permission_broker_client.h",
234 "dbus/pipe_reader.cc",
235 "dbus/pipe_reader.h",
236 "dbus/power_manager_client.cc",
237 "dbus/power_manager_client.h",
238 "dbus/power_policy_controller.cc",
239 "dbus/power_policy_controller.h",
240 "dbus/services/console_service_provider.cc",
241 "dbus/services/console_service_provider.h",
242 "dbus/services/cros_dbus_service.cc",
243 "dbus/services/cros_dbus_service.h",
244 "dbus/services/display_power_service_provider.cc",
245 "dbus/services/display_power_service_provider.h",
246 "dbus/services/liveness_service_provider.cc",
247 "dbus/services/liveness_service_provider.h",
248 "dbus/services/proxy_resolution_service_provider.cc",
249 "dbus/services/proxy_resolution_service_provider.h",
Ryo Hashimoto6ff117012017-09-20 06:55:03250 "dbus/services/virtual_file_request_service_provider.cc",
251 "dbus/services/virtual_file_request_service_provider.h",
teravest54ee2252017-03-17 14:18:16252 "dbus/session_manager_client.cc",
253 "dbus/session_manager_client.h",
254 "dbus/shill_client_helper.cc",
255 "dbus/shill_client_helper.h",
256 "dbus/shill_device_client.cc",
257 "dbus/shill_device_client.h",
258 "dbus/shill_ipconfig_client.cc",
259 "dbus/shill_ipconfig_client.h",
260 "dbus/shill_manager_client.cc",
261 "dbus/shill_manager_client.h",
262 "dbus/shill_profile_client.cc",
263 "dbus/shill_profile_client.h",
264 "dbus/shill_service_client.cc",
265 "dbus/shill_service_client.h",
266 "dbus/shill_third_party_vpn_driver_client.cc",
267 "dbus/shill_third_party_vpn_driver_client.h",
268 "dbus/sms_client.cc",
269 "dbus/sms_client.h",
270 "dbus/system_clock_client.cc",
271 "dbus/system_clock_client.h",
272 "dbus/update_engine_client.cc",
273 "dbus/update_engine_client.h",
274 "dbus/upstart_client.cc",
275 "dbus/upstart_client.h",
Ryo Hashimoto44c140b2017-09-13 05:10:08276 "dbus/virtual_file_provider_client.cc",
277 "dbus/virtual_file_provider_client.h",
teravest54ee2252017-03-17 14:18:16278 "dbus/volume_state.cc",
279 "dbus/volume_state.h",
280 "disks/disk_mount_manager.cc",
281 "disks/disk_mount_manager.h",
282 "disks/suspend_unmount_manager.cc",
283 "disks/suspend_unmount_manager.h",
284 "geolocation/geoposition.cc",
285 "geolocation/geoposition.h",
286 "geolocation/simple_geolocation_provider.cc",
287 "geolocation/simple_geolocation_provider.h",
288 "geolocation/simple_geolocation_request.cc",
289 "geolocation/simple_geolocation_request.h",
290 "geolocation/simple_geolocation_request_test_monitor.cc",
291 "geolocation/simple_geolocation_request_test_monitor.h",
292 "hugepage_text/hugepage_text.cc",
293 "hugepage_text/hugepage_text.h",
294 "login/auth/auth_attempt_state.cc",
295 "login/auth/auth_attempt_state.h",
296 "login/auth/auth_attempt_state_resolver.cc",
297 "login/auth/auth_attempt_state_resolver.h",
298 "login/auth/auth_status_consumer.cc",
299 "login/auth/auth_status_consumer.h",
300 "login/auth/authenticator.cc",
301 "login/auth/authenticator.h",
rsorokind8c46c12017-04-11 08:43:19302 "login/auth/authpolicy_login_helper.cc",
303 "login/auth/authpolicy_login_helper.h",
teravest54ee2252017-03-17 14:18:16304 "login/auth/cryptohome_authenticator.cc",
305 "login/auth/cryptohome_authenticator.h",
306 "login/auth/extended_authenticator.cc",
307 "login/auth/extended_authenticator.h",
308 "login/auth/extended_authenticator_impl.cc",
309 "login/auth/extended_authenticator_impl.h",
310 "login/auth/key.cc",
311 "login/auth/key.h",
312 "login/auth/login_performer.cc",
313 "login/auth/login_performer.h",
314 "login/auth/stub_authenticator.cc",
315 "login/auth/stub_authenticator.h",
316 "login/auth/test_attempt_state.cc",
317 "login/auth/test_attempt_state.h",
318 "login/auth/user_context.cc",
319 "login/auth/user_context.h",
320 "login/login_state.cc",
321 "login/login_state.h",
322 "login_event_recorder.cc",
323 "login_event_recorder.h",
324 "network/auto_connect_handler.cc",
325 "network/auto_connect_handler.h",
Steven Bennetts538486f2017-05-18 21:02:04326 "network/certificate_helper.cc",
327 "network/certificate_helper.h",
teravest54ee2252017-03-17 14:18:16328 "network/certificate_pattern.cc",
329 "network/certificate_pattern.h",
330 "network/client_cert_resolver.cc",
331 "network/client_cert_resolver.h",
332 "network/client_cert_util.cc",
333 "network/client_cert_util.h",
334 "network/device_state.cc",
335 "network/device_state.h",
336 "network/dhcp_proxy_script_fetcher_chromeos.cc",
337 "network/dhcp_proxy_script_fetcher_chromeos.h",
mmenke14085ad2017-06-15 21:53:54338 "network/dhcp_proxy_script_fetcher_factory_chromeos.cc",
339 "network/dhcp_proxy_script_fetcher_factory_chromeos.h",
teravest54ee2252017-03-17 14:18:16340 "network/firewall_hole.cc",
341 "network/firewall_hole.h",
342 "network/geolocation_handler.cc",
343 "network/geolocation_handler.h",
344 "network/host_resolver_impl_chromeos.cc",
345 "network/host_resolver_impl_chromeos.h",
346 "network/managed_network_configuration_handler.cc",
347 "network/managed_network_configuration_handler.h",
348 "network/managed_network_configuration_handler_impl.cc",
349 "network/managed_network_configuration_handler_impl.h",
350 "network/managed_state.cc",
351 "network/managed_state.h",
352 "network/network_activation_handler.cc",
353 "network/network_activation_handler.h",
354 "network/network_cert_migrator.cc",
355 "network/network_cert_migrator.h",
stevenjbbbb23b72017-05-25 23:04:48356 "network/network_certificate_handler.cc",
357 "network/network_certificate_handler.h",
teravest54ee2252017-03-17 14:18:16358 "network/network_change_notifier_chromeos.cc",
359 "network/network_change_notifier_chromeos.h",
360 "network/network_change_notifier_factory_chromeos.cc",
361 "network/network_change_notifier_factory_chromeos.h",
362 "network/network_configuration_handler.cc",
363 "network/network_configuration_handler.h",
364 "network/network_configuration_observer.h",
365 "network/network_connect.cc",
366 "network/network_connect.h",
367 "network/network_connection_handler.cc",
368 "network/network_connection_handler.h",
khorimotoa2ff31632017-05-04 01:20:24369 "network/network_connection_handler_impl.cc",
370 "network/network_connection_handler_impl.h",
teravest54ee2252017-03-17 14:18:16371 "network/network_connection_observer.cc",
372 "network/network_connection_observer.h",
373 "network/network_device_handler.cc",
374 "network/network_device_handler.h",
375 "network/network_device_handler_impl.cc",
376 "network/network_device_handler_impl.h",
377 "network/network_event_log.h",
378 "network/network_handler.cc",
379 "network/network_handler.h",
380 "network/network_handler_callbacks.cc",
381 "network/network_handler_callbacks.h",
382 "network/network_ip_config.cc",
383 "network/network_ip_config.h",
384 "network/network_profile.cc",
385 "network/network_profile.h",
386 "network/network_profile_handler.cc",
387 "network/network_profile_handler.h",
388 "network/network_profile_observer.h",
389 "network/network_sms_handler.cc",
390 "network/network_sms_handler.h",
391 "network/network_state.cc",
392 "network/network_state.h",
393 "network/network_state_handler.cc",
394 "network/network_state_handler.h",
395 "network/network_state_handler_observer.cc",
396 "network/network_state_handler_observer.h",
397 "network/network_type_pattern.cc",
398 "network/network_type_pattern.h",
399 "network/network_ui_data.cc",
400 "network/network_ui_data.h",
401 "network/network_util.cc",
402 "network/network_util.h",
403 "network/onc/onc_certificate_importer.h",
404 "network/onc/onc_certificate_importer_impl.cc",
405 "network/onc/onc_certificate_importer_impl.h",
406 "network/onc/onc_mapper.cc",
407 "network/onc/onc_mapper.h",
408 "network/onc/onc_merger.cc",
409 "network/onc/onc_merger.h",
410 "network/onc/onc_normalizer.cc",
411 "network/onc/onc_normalizer.h",
412 "network/onc/onc_signature.cc",
413 "network/onc/onc_signature.h",
414 "network/onc/onc_translation_tables.cc",
415 "network/onc/onc_translation_tables.h",
416 "network/onc/onc_translator.h",
417 "network/onc/onc_translator_onc_to_shill.cc",
418 "network/onc/onc_translator_shill_to_onc.cc",
419 "network/onc/onc_utils.cc",
420 "network/onc/onc_utils.h",
421 "network/onc/onc_validator.cc",
422 "network/onc/onc_validator.h",
423 "network/policy_applicator.cc",
424 "network/policy_applicator.h",
425 "network/policy_util.cc",
426 "network/policy_util.h",
427 "network/portal_detector/network_portal_detector.cc",
428 "network/portal_detector/network_portal_detector.h",
429 "network/portal_detector/network_portal_detector_strategy.cc",
430 "network/portal_detector/network_portal_detector_strategy.h",
431 "network/portal_detector/network_portal_detector_stub.cc",
432 "network/portal_detector/network_portal_detector_stub.h",
433 "network/prohibited_technologies_handler.cc",
434 "network/prohibited_technologies_handler.h",
435 "network/proxy/proxy_config_handler.cc",
436 "network/proxy/proxy_config_handler.h",
437 "network/proxy/proxy_config_service_impl.cc",
438 "network/proxy/proxy_config_service_impl.h",
439 "network/proxy/ui_proxy_config.cc",
440 "network/proxy/ui_proxy_config.h",
441 "network/proxy/ui_proxy_config_service.cc",
442 "network/proxy/ui_proxy_config_service.h",
443 "network/shill_property_handler.cc",
444 "network/shill_property_handler.h",
445 "network/shill_property_util.cc",
446 "network/shill_property_util.h",
khorimotoe8e89d52017-04-19 21:16:04447 "network/tether_constants.cc",
448 "network/tether_constants.h",
teravest54ee2252017-03-17 14:18:16449 "printing/ppd_cache.cc",
450 "printing/ppd_cache.h",
451 "printing/ppd_provider.cc",
452 "printing/ppd_provider.h",
453 "printing/printer_configuration.cc",
454 "printing/printer_configuration.h",
455 "printing/printer_translator.cc",
456 "printing/printer_translator.h",
457 "process_proxy/process_output_watcher.cc",
458 "process_proxy/process_output_watcher.h",
459 "process_proxy/process_proxy.cc",
460 "process_proxy/process_proxy.h",
461 "process_proxy/process_proxy_registry.cc",
462 "process_proxy/process_proxy_registry.h",
463 "settings/cros_settings_names.cc",
464 "settings/cros_settings_names.h",
465 "settings/cros_settings_provider.cc",
466 "settings/cros_settings_provider.h",
467 "settings/timezone_settings.cc",
468 "settings/timezone_settings.h",
469 "settings/timezone_settings_helper.cc",
470 "settings/timezone_settings_helper.h",
squea15eba142017-04-25 15:41:36471 "system/cpu_temperature_reader.cc",
472 "system/cpu_temperature_reader.h",
teravest54ee2252017-03-17 14:18:16473 "system/devicemode.cc",
474 "system/devicemode.h",
475 "system/devicetype.cc",
476 "system/devicetype.h",
477
478 # Used when running mash, both on Linux and on real devices.
479 "system/fake_statistics_provider.cc",
480 "system/fake_statistics_provider.h",
481 "system/name_value_pairs_parser.cc",
482 "system/name_value_pairs_parser.h",
483 "system/statistics_provider.cc",
484 "system/statistics_provider.h",
485 "system/version_loader.cc",
486 "system/version_loader.h",
487 "timezone/timezone_provider.cc",
488 "timezone/timezone_provider.h",
489 "timezone/timezone_request.cc",
490 "timezone/timezone_request.h",
491 "timezone/timezone_resolver.cc",
492 "timezone/timezone_resolver.h",
493 "tpm/tpm_password_fetcher.cc",
494 "tpm/tpm_password_fetcher.h",
495 "tpm/tpm_token_info_getter.cc",
496 "tpm/tpm_token_info_getter.h",
497 "tpm/tpm_token_loader.cc",
498 "tpm/tpm_token_loader.h",
499 ]
mukai6ba73552014-10-09 19:05:17500 defines = [ "CHROMEOS_IMPLEMENTATION" ]
agrievec50a6542016-06-09 03:44:09501 if (current_cpu == "arm" || current_cpu == "x86") {
hashimotoc5ffb8b2016-03-09 03:19:31502 defines += [ "BINDER_IPC_32BIT" ]
hashimotoaa1465a2015-12-11 06:19:59503 }
mukai6ba73552014-10-09 19:05:17504}
505
teravest822d58e62017-03-20 16:31:58506copy("dbus_service_files") {
507 sources = [
Lann Martin7f6f28932017-07-26 15:35:00508 "dbus/services/org.chromium.DisplayService.conf",
teravest6e2e78742017-04-06 22:30:25509 "dbus/services/org.chromium.KioskAppService.conf",
teravest822d58e62017-03-20 16:31:58510 "dbus/services/org.chromium.LibCrosService.conf",
511 "dbus/services/org.chromium.LivenessService.conf",
derat34a136572017-03-30 03:29:20512 "dbus/services/org.chromium.NetworkProxyService.conf",
Ryo Hashimoto6ff117012017-09-20 06:55:03513 "dbus/services/org.chromium.VirtualFileRequestService.conf",
teravest822d58e62017-03-20 16:31:58514 ]
515 outputs = [
516 "$root_out_dir/dbus/{{source_file_part}}",
517 ]
518}
519
skau65455b5a02016-08-03 20:16:38520# This must be a static library instead of a source set because some of the
brettwc4e6a0f2015-08-27 18:28:32521# files pull in things with dependencies that aren't linked in all cases.
522#
523# TODO this should probably be changed such that it links in all cases and
524# can be converted to a source set.
Brett Wilson16eb70c2015-08-22 21:08:09525static_library("test_support") {
mukai6ba73552014-10-09 19:05:17526 testonly = true
agrieve95ba4442016-04-25 15:47:13527 configs += [ "//build/config/linux/dbus" ]
Brett Wilson817fec02015-08-22 20:36:49528 public_deps = [
drcrash7da3d8b2016-09-09 05:39:53529 ":attestation_proto",
xiaoyinh58676cf2017-05-08 20:21:31530 ":biod_proto",
mukai6ba73552014-10-09 19:05:17531 ":chromeos",
532 ":cryptohome_proto",
533 ":power_manager_proto",
oshima3f959fa82016-05-02 18:42:57534 ]
535 deps = [
mukai6ba73552014-10-09 19:05:17536 ":test_support_without_gmock",
oshima3f959fa82016-05-02 18:42:57537 "//components/signin/core/account_id",
538 "//dbus:test_support",
539 "//google_apis",
540 "//net:test_support",
Brett Wilson817fec02015-08-22 20:36:49541 "//testing/gmock",
oshima3f959fa82016-05-02 18:42:57542 "//testing/gtest",
mukai6ba73552014-10-09 19:05:17543 ]
544 sources = [
545 "attestation/mock_attestation_flow.cc",
546 "attestation/mock_attestation_flow.h",
547 "chromeos_test_utils.cc",
548 "chromeos_test_utils.h",
549 "cryptohome/mock_async_method_caller.cc",
550 "cryptohome/mock_async_method_caller.h",
551 "cryptohome/mock_homedir_methods.cc",
552 "cryptohome/mock_homedir_methods.h",
sammiequonb6dc62f52017-04-12 04:11:21553 "dbus/biod/test_utils.cc",
554 "dbus/biod/test_utils.h",
pstew9d392082014-11-05 14:45:20555 "dbus/mock_lorgnette_manager_client.cc",
556 "dbus/mock_lorgnette_manager_client.h",
reillyg556a9e92015-04-07 22:49:58557 "dbus/mock_permission_broker_client.cc",
558 "dbus/mock_permission_broker_client.h",
mukai6ba73552014-10-09 19:05:17559 "dbus/mock_session_manager_client.cc",
560 "dbus/mock_session_manager_client.h",
561 "dbus/mock_shill_manager_client.cc",
562 "dbus/mock_shill_manager_client.h",
563 "dbus/mock_shill_profile_client.cc",
564 "dbus/mock_shill_profile_client.h",
565 "dbus/mock_shill_service_client.cc",
566 "dbus/mock_shill_service_client.h",
hashimoto1472afe2014-11-18 06:18:40567 "dbus/services/service_provider_test_helper.cc",
568 "dbus/services/service_provider_test_helper.h",
mukai6ba73552014-10-09 19:05:17569 "disks/mock_disk_mount_manager.cc",
570 "disks/mock_disk_mount_manager.h",
brettw6c1a7722015-01-06 08:34:24571 "login/auth/fake_extended_authenticator.cc",
572 "login/auth/fake_extended_authenticator.h",
mukai6ba73552014-10-09 19:05:17573 "login/auth/mock_auth_attempt_state_resolver.cc",
574 "login/auth/mock_auth_attempt_state_resolver.h",
575 "login/auth/mock_auth_status_consumer.cc",
576 "login/auth/mock_auth_status_consumer.h",
mukai6ba73552014-10-09 19:05:17577 "login/auth/mock_url_fetchers.cc",
578 "login/auth/mock_url_fetchers.h",
isandrk12962022017-05-04 15:27:33579 "login/scoped_test_public_session_login_state.cc",
580 "login/scoped_test_public_session_login_state.h",
mukai6ba73552014-10-09 19:05:17581 "network/fake_network_device_handler.cc",
582 "network/fake_network_device_handler.h",
583 "network/mock_managed_network_configuration_handler.cc",
584 "network/mock_managed_network_configuration_handler.h",
malaykeshav77a1ea02016-04-21 18:55:50585 "network/mock_network_device_handler.cc",
586 "network/mock_network_device_handler.h",
khorimoto6c378ee2017-03-30 23:57:47587 "network/network_state_test.cc",
588 "network/network_state_test.h",
mukai6ba73552014-10-09 19:05:17589 "network/onc/onc_test_utils.cc",
590 "network/onc/onc_test_utils.h",
kumarniranjanf0973312017-05-20 00:00:34591 "network/portal_detector/mock_network_portal_detector.cc",
592 "network/portal_detector/mock_network_portal_detector.h",
mukai6ba73552014-10-09 19:05:17593 ]
594}
595
596static_library("test_support_without_gmock") {
597 testonly = true
agrieve95ba4442016-04-25 15:47:13598 configs += [ "//build/config/linux/dbus" ]
mukai6ba73552014-10-09 19:05:17599 deps = [
drcrash7da3d8b2016-09-09 05:39:53600 ":attestation_proto",
xiaoyinh58676cf2017-05-08 20:21:31601 ":biod_proto",
mukai6ba73552014-10-09 19:05:17602 ":chromeos",
603 ":cryptohome_proto",
604 ":power_manager_proto",
emaxx8aaab6c2017-03-07 14:57:33605 "//components/policy/proto",
agrieved7a71c882015-11-20 19:53:28606 "//crypto",
mukai6ba73552014-10-09 19:05:17607 ]
608 sources = [
609 "dbus/fake_cros_disks_client.cc",
610 "dbus/fake_cros_disks_client.h",
mukai6ba73552014-10-09 19:05:17611 "dbus/fake_session_manager_client.cc",
612 "dbus/fake_session_manager_client.h",
613 "dbus/fake_shill_manager_client.cc",
614 "dbus/fake_shill_manager_client.h",
615 "dbus/fake_update_engine_client.cc",
616 "dbus/fake_update_engine_client.h",
mukai6ba73552014-10-09 19:05:17617 ]
618}
619
620test("chromeos_unittests") {
621 configs += [
agrieve95ba4442016-04-25 15:47:13622 "//build/config/linux/dbus",
svaldez2135be52016-04-20 16:34:53623 "//third_party/nss:system_nss_no_ssl_config",
mukai6ba73552014-10-09 19:05:17624 ]
625 deps = [
drcrash7da3d8b2016-09-09 05:39:53626 ":attestation_proto",
xiaoyinh58676cf2017-05-08 20:21:31627 ":biod_proto",
agrieved7a71c882015-11-20 19:53:28628 ":cryptohome_proto",
629 ":power_manager_proto",
630 ":test_support",
mukai6ba73552014-10-09 19:05:17631 "//base/test:run_all_unittests",
632 "//base/test:test_support",
633 "//components/onc",
brettw9f7802a22016-01-30 06:40:17634 "//components/prefs:test_support",
stevenjb83368882015-07-10 20:51:45635 "//components/proxy_config",
alemate627f6532016-03-04 10:39:54636 "//components/signin/core/account_id",
mukai6ba73552014-10-09 19:05:17637 "//crypto",
638 "//crypto:test_support",
639 "//dbus:test_support",
640 "//google_apis",
jennyzfbaa3e62017-03-06 20:14:02641 "//media/base:video_facing",
mukai6ba73552014-10-09 19:05:17642 "//net",
643 "//net:test_support",
644 "//testing/gmock",
645 "//testing/gtest",
jshin77e507b2015-04-24 01:13:15646 "//third_party/icu",
mukai6ba73552014-10-09 19:05:17647 "//url",
mukai6ba73552014-10-09 19:05:17648 ]
teravest54ee2252017-03-17 14:18:16649 sources = [
650 "app_mode/kiosk_oem_manifest_parser_unittest.cc",
651 "attestation/attestation_flow_unittest.cc",
652 "audio/audio_devices_pref_handler_impl_unittest.cc",
653 "audio/cras_audio_handler_unittest.cc",
654 "cert_loader_unittest.cc",
655 "cryptohome/homedir_methods_unittest.cc",
656 "cryptohome/system_salt_getter_unittest.cc",
sammiequon0958b7f2017-04-03 19:24:21657 "dbus/biod/biod_client_unittest.cc",
sammiequonb6dc62f52017-04-12 04:11:21658 "dbus/biod/fake_biod_client_unittest.cc",
teravest54ee2252017-03-17 14:18:16659 "dbus/blocking_method_caller_unittest.cc",
660 "dbus/cras_audio_client_unittest.cc",
661 "dbus/cros_disks_client_unittest.cc",
662 "dbus/dbus_thread_manager_unittest.cc",
663 "dbus/fake_auth_policy_client_unittest.cc",
664 "dbus/fake_cryptohome_client_unittest.cc",
665 "dbus/fake_easy_unlock_client_unittest.cc",
666 "dbus/fake_power_manager_client_unittest.cc",
667 "dbus/gsm_sms_client_unittest.cc",
668 "dbus/modem_messaging_client_unittest.cc",
669 "dbus/power_manager_client_unittest.cc",
670 "dbus/power_policy_controller_unittest.cc",
671 "dbus/services/cros_dbus_service_unittest.cc",
672 "dbus/services/proxy_resolution_service_provider_unittest.cc",
673 "dbus/shill_client_unittest_base.cc",
674 "dbus/shill_client_unittest_base.h",
675 "dbus/shill_device_client_unittest.cc",
676 "dbus/shill_ipconfig_client_unittest.cc",
677 "dbus/shill_manager_client_unittest.cc",
678 "dbus/shill_profile_client_unittest.cc",
679 "dbus/shill_service_client_unittest.cc",
680 "dbus/shill_third_party_vpn_driver_client_unittest.cc",
681 "disks/disk_mount_manager_unittest.cc",
682 "disks/suspend_unmount_manager_unittest.cc",
683 "geolocation/simple_geolocation_unittest.cc",
684 "login/auth/key_unittest.cc",
685 "login/login_state_unittest.cc",
686 "network/auto_connect_handler_unittest.cc",
Steven Bennetts538486f2017-05-18 21:02:04687 "network/certificate_helper_unittest.cc",
teravest54ee2252017-03-17 14:18:16688 "network/client_cert_resolver_unittest.cc",
689 "network/firewall_hole_unittest.cc",
690 "network/geolocation_handler_unittest.cc",
691 "network/host_resolver_impl_chromeos_unittest.cc",
692 "network/managed_network_configuration_handler_unittest.cc",
693 "network/network_cert_migrator_unittest.cc",
694 "network/network_change_notifier_chromeos_unittest.cc",
695 "network/network_configuration_handler_unittest.cc",
696 "network/network_connect_unittest.cc",
khorimotoa2ff31632017-05-04 01:20:24697 "network/network_connection_handler_impl_unittest.cc",
teravest54ee2252017-03-17 14:18:16698 "network/network_device_handler_unittest.cc",
699 "network/network_sms_handler_unittest.cc",
700 "network/network_state_handler_unittest.cc",
701 "network/network_state_unittest.cc",
702 "network/network_type_pattern_unittest.cc",
703 "network/network_ui_data_unittest.cc",
704 "network/network_util_unittest.cc",
705 "network/onc/onc_certificate_importer_impl_unittest.cc",
706 "network/onc/onc_merger_unittest.cc",
707 "network/onc/onc_normalizer_unittest.cc",
708 "network/onc/onc_translator_unittest.cc",
709 "network/onc/onc_utils_unittest.cc",
710 "network/onc/onc_validator_unittest.cc",
711 "network/prohibited_technologies_handler_unittest.cc",
mmenke29e5a5d2017-06-21 21:35:37712 "network/proxy/proxy_config_service_impl_unittest.cc",
teravest54ee2252017-03-17 14:18:16713 "network/shill_property_handler_unittest.cc",
714 "printing/ppd_cache_unittest.cc",
715 "printing/ppd_provider_unittest.cc",
716 "printing/printer_translator_unittest.cc",
717 "process_proxy/process_output_watcher_unittest.cc",
718 "process_proxy/process_proxy_unittest.cc",
719 "settings/timezone_settings_unittest.cc",
squea15eba142017-04-25 15:41:36720 "system/cpu_temperature_reader_unittest.cc",
teravest54ee2252017-03-17 14:18:16721 "system/name_value_pairs_parser_unittest.cc",
722 "system/version_loader_unittest.cc",
723 "timezone/timezone_unittest.cc",
724 "tpm/tpm_token_info_getter_unittest.cc",
725 ]
hashimotoaa1465a2015-12-11 06:19:59726 if (use_binder) {
agrievec50a6542016-06-09 03:44:09727 if (current_cpu == "arm" || current_cpu == "x86") {
hashimotoaa1465a2015-12-11 06:19:59728 defines += [ "BINDER_IPC_32BIT" ]
729 }
teravest54ee2252017-03-17 14:18:16730 sources += [
731 "binder/buffer_reader_unittest.cc",
732 "binder/command_broker_unittest.cc",
733 "binder/command_stream_unittest.cc",
734 "binder/driver_unittest.cc",
735 "binder/end_to_end_unittest.cc",
736 "binder/service_manager_proxy_unittest.cc",
737 "binder/test_service.cc",
738 "binder/test_service.h",
739 "binder/transaction_data_read_write_unittest.cc",
740 ]
hashimotoaa1465a2015-12-11 06:19:59741 }
dpranke94c6fb22016-06-10 01:55:08742
743 data = [
744 "test/data/",
dpranke94c6fb22016-06-10 01:55:08745 ]
mukai6ba73552014-10-09 19:05:17746}
747
[email protected]743530f2014-06-12 19:38:50748proto_library("power_manager_proto") {
749 sources = [
750 "//third_party/cros_system_api/dbus/power_manager/input_event.proto",
751 "//third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto",
752 "//third_party/cros_system_api/dbus/power_manager/policy.proto",
753 "//third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto",
754 "//third_party/cros_system_api/dbus/power_manager/suspend.proto",
derat08e333d2017-03-21 21:51:22755 "//third_party/cros_system_api/dbus/power_manager/switch_states.proto",
[email protected]743530f2014-06-12 19:38:50756 ]
mukai6ba73552014-10-09 19:05:17757
758 proto_out_dir = "chromeos/dbus/power_manager"
759}
760
761proto_library("cryptohome_proto") {
762 sources = [
763 "//third_party/cros_system_api/dbus/cryptohome/key.proto",
764 "//third_party/cros_system_api/dbus/cryptohome/rpc.proto",
765 ]
766
767 proto_out_dir = "chromeos/dbus/cryptohome"
768}
769
xiaohuic2f57e3f72017-05-31 01:29:53770proto_library("login_manager_proto") {
771 sources = [
772 "//third_party/cros_system_api/dbus/login_manager/arc.proto",
773 ]
774
775 proto_out_dir = "chromeos/dbus/login_manager"
776}
777
drcrash7da3d8b2016-09-09 05:39:53778proto_library("attestation_proto") {
779 sources = [
780 "dbus/proto/attestation.proto",
781 ]
782
783 proto_out_dir = "chromeos/attestation"
784}
785
mukai6ba73552014-10-09 19:05:17786proto_library("cryptohome_signkey_proto") {
787 sources = [
788 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto",
789 ]
790
mukai4e5b67db2014-10-10 21:08:23791 proto_out_dir = "chromeos/cryptohome"
[email protected]743530f2014-06-12 19:38:50792}
rsorokinfc75ccee2017-02-10 13:16:43793
794proto_library("authpolicy_proto") {
795 sources = [
rsorokin01014b72017-04-28 12:26:29796 "//third_party/cros_system_api/dbus/authpolicy/active_directory_info.proto",
rsorokinfc75ccee2017-02-10 13:16:43797 ]
798
799 proto_out_dir = "chromeos/dbus/authpolicy"
800}
xiaoyinh58676cf2017-05-08 20:21:31801
802proto_library("biod_proto") {
803 sources = [
804 "//third_party/cros_system_api/dbus/biod/constants.proto",
805 "//third_party/cros_system_api/dbus/biod/messages.proto",
806 ]
807
808 proto_out_dir = "chromeos/dbus/biod"
809}
lasorenf933419f2017-05-15 19:37:45810
811proto_library("media_perception_proto") {
812 sources = [
813 "dbus/proto/media_perception.proto",
814 ]
815
816 proto_out_dir = "chromeos/media_perception"
817}