blob: 07f37f0a177070ad551d00539b1eec63d095fb82 [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",
Allen Vicencio02457102017-11-28 01:20:2029 ":smbprovider_proto",
mukai6ba73552014-10-09 19:05:1730 "//base",
Nico Webera3d0a422015-01-20 21:46:2131 "//base:i18n",
mukai6ba73552014-10-09 19:05:1732 "//base/third_party/dynamic_annotations",
reillyg4a849272015-02-20 21:38:4333 "//components/device_event_log",
mukai6ba73552014-10-09 19:05:1734 "//components/onc",
Jialiu Lin20ae9492018-01-04 18:15:0735 "//components/password_manager/core/browser:hash_password_manager",
tnagel51accc42016-12-28 12:00:5836 "//components/policy:cloud_policy_proto_generated_compile",
agrieved7a71c882015-11-20 19:53:2837 "//components/policy/proto",
stevenjb100c6202016-10-28 02:28:0038 "//components/pref_registry",
brettw9f7802a22016-01-30 06:40:1739 "//components/prefs",
stevenjb83368882015-07-10 20:51:4540 "//components/proxy_config",
alematebd6a7332015-10-20 19:35:5341 "//components/signin/core/account_id",
stevenjbffe695c2017-01-10 21:35:5142 "//components/url_formatter",
alemate627f6532016-03-04 10:39:5443 "//components/user_manager",
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",
James Cooka7478252018-02-23 23:03:1151 "//ui/gfx/geometry", # For accelerometer.
mukai6ba73552014-10-09 19:05:1752 "//url",
mukai6ba73552014-10-09 19:05:1753 ]
teravest822d58e62017-03-20 16:31:5854 data_deps = [
55 ":dbus_service_files",
56 ]
teravest54ee2252017-03-17 14:18:1657 sources = [
58 "accelerometer/accelerometer_reader.cc",
59 "accelerometer/accelerometer_reader.h",
60 "accelerometer/accelerometer_types.cc",
61 "accelerometer/accelerometer_types.h",
62 "app_mode/kiosk_oem_manifest_parser.cc",
63 "app_mode/kiosk_oem_manifest_parser.h",
64 "attestation/attestation_constants.cc",
65 "attestation/attestation_constants.h",
66 "attestation/attestation_flow.cc",
67 "attestation/attestation_flow.h",
teravest54ee2252017-03-17 14:18:1668 "audio/audio_device.cc",
69 "audio/audio_device.h",
70 "audio/audio_devices_pref_handler.h",
71 "audio/audio_devices_pref_handler_impl.cc",
72 "audio/audio_devices_pref_handler_impl.h",
73 "audio/audio_devices_pref_handler_stub.cc",
74 "audio/audio_devices_pref_handler_stub.h",
75 "audio/audio_pref_observer.h",
76 "audio/chromeos_sounds.h",
77 "audio/cras_audio_handler.cc",
78 "audio/cras_audio_handler.h",
79 "binder/buffer_reader.cc",
80 "binder/buffer_reader.h",
81 "binder/command_broker.cc",
82 "binder/command_broker.h",
83 "binder/command_stream.cc",
84 "binder/command_stream.h",
85 "binder/constants.h",
86 "binder/driver.cc",
87 "binder/driver.h",
88 "binder/ipc_thread.cc",
89 "binder/ipc_thread.h",
90 "binder/local_object.cc",
91 "binder/local_object.h",
92 "binder/object.h",
93 "binder/remote_object.cc",
94 "binder/remote_object.h",
95 "binder/service_manager_proxy.cc",
96 "binder/service_manager_proxy.h",
97 "binder/status.h",
98 "binder/transaction_data.h",
99 "binder/transaction_data_from_driver.cc",
100 "binder/transaction_data_from_driver.h",
101 "binder/transaction_data_reader.cc",
102 "binder/transaction_data_reader.h",
103 "binder/transaction_status.cc",
104 "binder/transaction_status.h",
105 "binder/util.cc",
106 "binder/util.h",
107 "binder/writable_transaction_data.cc",
108 "binder/writable_transaction_data.h",
109 "cert_loader.cc",
110 "cert_loader.h",
111 "chromeos_constants.cc",
112 "chromeos_constants.h",
113 "chromeos_export.h",
114 "chromeos_paths.cc",
115 "chromeos_paths.h",
116 "chromeos_pref_names.cc",
117 "chromeos_pref_names.h",
118 "chromeos_switches.cc",
119 "chromeos_switches.h",
120 "cryptohome/async_method_caller.cc",
121 "cryptohome/async_method_caller.h",
122 "cryptohome/cryptohome_parameters.cc",
123 "cryptohome/cryptohome_parameters.h",
Maajid75b8ee42017-12-25 05:42:40124 "cryptohome/cryptohome_util.cc",
125 "cryptohome/cryptohome_util.h",
teravest54ee2252017-03-17 14:18:16126 "cryptohome/homedir_methods.cc",
127 "cryptohome/homedir_methods.h",
128 "cryptohome/system_salt_getter.cc",
129 "cryptohome/system_salt_getter.h",
Maajid4618f8602017-12-21 03:36:03130 "cryptohome/tpm_util.cc",
131 "cryptohome/tpm_util.h",
Prashant Malani1025c4772017-08-24 20:22:30132 "dbus/arc_midis_client.cc",
133 "dbus/arc_midis_client.h",
teravest54ee2252017-03-17 14:18:16134 "dbus/arc_obb_mounter_client.cc",
135 "dbus/arc_obb_mounter_client.h",
Jeffrey Kardatzke49054cb72017-08-11 17:45:56136 "dbus/arc_oemcrypto_client.cc",
137 "dbus/arc_oemcrypto_client.h",
teravest54ee2252017-03-17 14:18:16138 "dbus/audio_node.cc",
139 "dbus/audio_node.h",
140 "dbus/auth_policy_client.cc",
141 "dbus/auth_policy_client.h",
sammiequon0958b7f2017-04-03 19:24:21142 "dbus/biod/biod_client.cc",
143 "dbus/biod/biod_client.h",
sammiequon86bf7842017-04-05 22:47:03144 "dbus/biod/fake_biod_client.cc",
145 "dbus/biod/fake_biod_client.h",
teravest54ee2252017-03-17 14:18:16146 "dbus/blocking_method_caller.cc",
147 "dbus/blocking_method_caller.h",
148 "dbus/cras_audio_client.cc",
149 "dbus/cras_audio_client.h",
150 "dbus/cros_disks_client.cc",
151 "dbus/cros_disks_client.h",
152 "dbus/cryptohome_client.cc",
153 "dbus/cryptohome_client.h",
154 "dbus/dbus_client_implementation_type.h",
155 "dbus/dbus_clients_browser.cc",
156 "dbus/dbus_clients_browser.h",
157 "dbus/dbus_clients_common.cc",
158 "dbus/dbus_clients_common.h",
159 "dbus/dbus_method_call_status.cc",
160 "dbus/dbus_method_call_status.h",
161 "dbus/dbus_thread_manager.cc",
162 "dbus/dbus_thread_manager.h",
163 "dbus/debug_daemon_client.cc",
164 "dbus/debug_daemon_client.h",
165 "dbus/easy_unlock_client.cc",
166 "dbus/easy_unlock_client.h",
Prashant Malani1025c4772017-08-24 20:22:30167 "dbus/fake_arc_midis_client.cc",
168 "dbus/fake_arc_midis_client.h",
teravest54ee2252017-03-17 14:18:16169 "dbus/fake_arc_obb_mounter_client.cc",
170 "dbus/fake_arc_obb_mounter_client.h",
Jeffrey Kardatzke49054cb72017-08-11 17:45:56171 "dbus/fake_arc_oemcrypto_client.cc",
172 "dbus/fake_arc_oemcrypto_client.h",
teravest54ee2252017-03-17 14:18:16173 "dbus/fake_auth_policy_client.cc",
174 "dbus/fake_auth_policy_client.h",
175 "dbus/fake_cras_audio_client.cc",
176 "dbus/fake_cras_audio_client.h",
177 "dbus/fake_cros_disks_client.cc",
178 "dbus/fake_cros_disks_client.h",
179 "dbus/fake_cryptohome_client.cc",
180 "dbus/fake_cryptohome_client.h",
181 "dbus/fake_debug_daemon_client.cc",
182 "dbus/fake_debug_daemon_client.h",
183 "dbus/fake_easy_unlock_client.cc",
184 "dbus/fake_easy_unlock_client.h",
185 "dbus/fake_gsm_sms_client.cc",
186 "dbus/fake_gsm_sms_client.h",
187 "dbus/fake_image_burner_client.cc",
188 "dbus/fake_image_burner_client.h",
189 "dbus/fake_image_loader_client.cc",
190 "dbus/fake_image_loader_client.h",
191 "dbus/fake_lorgnette_manager_client.cc",
192 "dbus/fake_lorgnette_manager_client.h",
lasorenf933419f2017-05-15 19:37:45193 "dbus/fake_media_analytics_client.cc",
194 "dbus/fake_media_analytics_client.h",
teravest54ee2252017-03-17 14:18:16195 "dbus/fake_modem_messaging_client.cc",
196 "dbus/fake_modem_messaging_client.h",
197 "dbus/fake_permission_broker_client.cc",
198 "dbus/fake_permission_broker_client.h",
199 "dbus/fake_power_manager_client.cc",
200 "dbus/fake_power_manager_client.h",
Qijiang Fan0f3005f2018-01-24 08:53:49201 "dbus/fake_session_manager_client.cc",
202 "dbus/fake_session_manager_client.h",
teravest54ee2252017-03-17 14:18:16203 "dbus/fake_shill_device_client.cc",
204 "dbus/fake_shill_device_client.h",
205 "dbus/fake_shill_ipconfig_client.cc",
206 "dbus/fake_shill_ipconfig_client.h",
207 "dbus/fake_shill_manager_client.cc",
208 "dbus/fake_shill_manager_client.h",
209 "dbus/fake_shill_profile_client.cc",
210 "dbus/fake_shill_profile_client.h",
211 "dbus/fake_shill_service_client.cc",
212 "dbus/fake_shill_service_client.h",
213 "dbus/fake_shill_third_party_vpn_driver_client.cc",
214 "dbus/fake_shill_third_party_vpn_driver_client.h",
Allen Vicencio02457102017-11-28 01:20:20215 "dbus/fake_smb_provider_client.cc",
216 "dbus/fake_smb_provider_client.h",
teravest54ee2252017-03-17 14:18:16217 "dbus/fake_sms_client.cc",
218 "dbus/fake_sms_client.h",
219 "dbus/fake_system_clock_client.cc",
220 "dbus/fake_system_clock_client.h",
221 "dbus/fake_upstart_client.cc",
222 "dbus/fake_upstart_client.h",
Ryo Hashimoto44c140b2017-09-13 05:10:08223 "dbus/fake_virtual_file_provider_client.cc",
224 "dbus/fake_virtual_file_provider_client.h",
teravest54ee2252017-03-17 14:18:16225 "dbus/gsm_sms_client.cc",
226 "dbus/gsm_sms_client.h",
227 "dbus/image_burner_client.cc",
228 "dbus/image_burner_client.h",
229 "dbus/image_loader_client.cc",
230 "dbus/image_loader_client.h",
231 "dbus/lorgnette_manager_client.cc",
232 "dbus/lorgnette_manager_client.h",
lasorenf933419f2017-05-15 19:37:45233 "dbus/media_analytics_client.cc",
234 "dbus/media_analytics_client.h",
teravest54ee2252017-03-17 14:18:16235 "dbus/modem_messaging_client.cc",
236 "dbus/modem_messaging_client.h",
237 "dbus/permission_broker_client.cc",
238 "dbus/permission_broker_client.h",
239 "dbus/pipe_reader.cc",
240 "dbus/pipe_reader.h",
241 "dbus/power_manager_client.cc",
242 "dbus/power_manager_client.h",
243 "dbus/power_policy_controller.cc",
244 "dbus/power_policy_controller.h",
Tim Zheng78822b3e2018-01-21 04:48:13245 "dbus/services/chrome_features_service_provider.cc",
246 "dbus/services/chrome_features_service_provider.h",
Xiaochu Liu12c14b42017-09-21 22:54:48247 "dbus/services/component_updater_service_provider.cc",
248 "dbus/services/component_updater_service_provider.h",
teravest54ee2252017-03-17 14:18:16249 "dbus/services/console_service_provider.cc",
250 "dbus/services/console_service_provider.h",
251 "dbus/services/cros_dbus_service.cc",
252 "dbus/services/cros_dbus_service.h",
253 "dbus/services/display_power_service_provider.cc",
254 "dbus/services/display_power_service_provider.h",
255 "dbus/services/liveness_service_provider.cc",
256 "dbus/services/liveness_service_provider.h",
257 "dbus/services/proxy_resolution_service_provider.cc",
258 "dbus/services/proxy_resolution_service_provider.h",
Ryo Hashimoto6ff117012017-09-20 06:55:03259 "dbus/services/virtual_file_request_service_provider.cc",
260 "dbus/services/virtual_file_request_service_provider.h",
teravest54ee2252017-03-17 14:18:16261 "dbus/session_manager_client.cc",
262 "dbus/session_manager_client.h",
263 "dbus/shill_client_helper.cc",
264 "dbus/shill_client_helper.h",
265 "dbus/shill_device_client.cc",
266 "dbus/shill_device_client.h",
267 "dbus/shill_ipconfig_client.cc",
268 "dbus/shill_ipconfig_client.h",
269 "dbus/shill_manager_client.cc",
270 "dbus/shill_manager_client.h",
271 "dbus/shill_profile_client.cc",
272 "dbus/shill_profile_client.h",
273 "dbus/shill_service_client.cc",
274 "dbus/shill_service_client.h",
275 "dbus/shill_third_party_vpn_driver_client.cc",
276 "dbus/shill_third_party_vpn_driver_client.h",
Allen Vicencio02457102017-11-28 01:20:20277 "dbus/smb_provider_client.cc",
278 "dbus/smb_provider_client.h",
teravest54ee2252017-03-17 14:18:16279 "dbus/sms_client.cc",
280 "dbus/sms_client.h",
281 "dbus/system_clock_client.cc",
282 "dbus/system_clock_client.h",
283 "dbus/update_engine_client.cc",
284 "dbus/update_engine_client.h",
285 "dbus/upstart_client.cc",
286 "dbus/upstart_client.h",
Ryo Hashimoto44c140b2017-09-13 05:10:08287 "dbus/virtual_file_provider_client.cc",
288 "dbus/virtual_file_provider_client.h",
teravest54ee2252017-03-17 14:18:16289 "dbus/volume_state.cc",
290 "dbus/volume_state.h",
291 "disks/disk_mount_manager.cc",
292 "disks/disk_mount_manager.h",
293 "disks/suspend_unmount_manager.cc",
294 "disks/suspend_unmount_manager.h",
295 "geolocation/geoposition.cc",
296 "geolocation/geoposition.h",
297 "geolocation/simple_geolocation_provider.cc",
298 "geolocation/simple_geolocation_provider.h",
299 "geolocation/simple_geolocation_request.cc",
300 "geolocation/simple_geolocation_request.h",
301 "geolocation/simple_geolocation_request_test_monitor.cc",
302 "geolocation/simple_geolocation_request_test_monitor.h",
303 "hugepage_text/hugepage_text.cc",
304 "hugepage_text/hugepage_text.h",
305 "login/auth/auth_attempt_state.cc",
306 "login/auth/auth_attempt_state.h",
307 "login/auth/auth_attempt_state_resolver.cc",
308 "login/auth/auth_attempt_state_resolver.h",
309 "login/auth/auth_status_consumer.cc",
310 "login/auth/auth_status_consumer.h",
311 "login/auth/authenticator.cc",
312 "login/auth/authenticator.h",
rsorokind8c46c12017-04-11 08:43:19313 "login/auth/authpolicy_login_helper.cc",
314 "login/auth/authpolicy_login_helper.h",
teravest54ee2252017-03-17 14:18:16315 "login/auth/cryptohome_authenticator.cc",
316 "login/auth/cryptohome_authenticator.h",
317 "login/auth/extended_authenticator.cc",
318 "login/auth/extended_authenticator.h",
319 "login/auth/extended_authenticator_impl.cc",
320 "login/auth/extended_authenticator_impl.h",
321 "login/auth/key.cc",
322 "login/auth/key.h",
323 "login/auth/login_performer.cc",
324 "login/auth/login_performer.h",
325 "login/auth/stub_authenticator.cc",
326 "login/auth/stub_authenticator.h",
327 "login/auth/test_attempt_state.cc",
328 "login/auth/test_attempt_state.h",
329 "login/auth/user_context.cc",
330 "login/auth/user_context.h",
331 "login/login_state.cc",
332 "login/login_state.h",
333 "login_event_recorder.cc",
334 "login_event_recorder.h",
335 "network/auto_connect_handler.cc",
336 "network/auto_connect_handler.h",
Steven Bennetts538486f2017-05-18 21:02:04337 "network/certificate_helper.cc",
338 "network/certificate_helper.h",
teravest54ee2252017-03-17 14:18:16339 "network/certificate_pattern.cc",
340 "network/certificate_pattern.h",
341 "network/client_cert_resolver.cc",
342 "network/client_cert_resolver.h",
343 "network/client_cert_util.cc",
344 "network/client_cert_util.h",
345 "network/device_state.cc",
346 "network/device_state.h",
Lily Houghton9844d322018-01-20 05:44:01347 "network/dhcp_pac_file_fetcher_chromeos.cc",
348 "network/dhcp_pac_file_fetcher_chromeos.h",
349 "network/dhcp_pac_file_fetcher_factory_chromeos.cc",
350 "network/dhcp_pac_file_fetcher_factory_chromeos.h",
teravest54ee2252017-03-17 14:18:16351 "network/firewall_hole.cc",
352 "network/firewall_hole.h",
353 "network/geolocation_handler.cc",
354 "network/geolocation_handler.h",
355 "network/host_resolver_impl_chromeos.cc",
356 "network/host_resolver_impl_chromeos.h",
357 "network/managed_network_configuration_handler.cc",
358 "network/managed_network_configuration_handler.h",
359 "network/managed_network_configuration_handler_impl.cc",
360 "network/managed_network_configuration_handler_impl.h",
361 "network/managed_state.cc",
362 "network/managed_state.h",
363 "network/network_activation_handler.cc",
364 "network/network_activation_handler.h",
365 "network/network_cert_migrator.cc",
366 "network/network_cert_migrator.h",
stevenjbbbb23b72017-05-25 23:04:48367 "network/network_certificate_handler.cc",
368 "network/network_certificate_handler.h",
teravest54ee2252017-03-17 14:18:16369 "network/network_change_notifier_chromeos.cc",
370 "network/network_change_notifier_chromeos.h",
371 "network/network_change_notifier_factory_chromeos.cc",
372 "network/network_change_notifier_factory_chromeos.h",
373 "network/network_configuration_handler.cc",
374 "network/network_configuration_handler.h",
375 "network/network_configuration_observer.h",
376 "network/network_connect.cc",
377 "network/network_connect.h",
378 "network/network_connection_handler.cc",
379 "network/network_connection_handler.h",
khorimotoa2ff31632017-05-04 01:20:24380 "network/network_connection_handler_impl.cc",
381 "network/network_connection_handler_impl.h",
teravest54ee2252017-03-17 14:18:16382 "network/network_connection_observer.cc",
383 "network/network_connection_observer.h",
384 "network/network_device_handler.cc",
385 "network/network_device_handler.h",
386 "network/network_device_handler_impl.cc",
387 "network/network_device_handler_impl.h",
388 "network/network_event_log.h",
389 "network/network_handler.cc",
390 "network/network_handler.h",
391 "network/network_handler_callbacks.cc",
392 "network/network_handler_callbacks.h",
393 "network/network_ip_config.cc",
394 "network/network_ip_config.h",
395 "network/network_profile.cc",
396 "network/network_profile.h",
397 "network/network_profile_handler.cc",
398 "network/network_profile_handler.h",
399 "network/network_profile_observer.h",
400 "network/network_sms_handler.cc",
401 "network/network_sms_handler.h",
402 "network/network_state.cc",
403 "network/network_state.h",
404 "network/network_state_handler.cc",
405 "network/network_state_handler.h",
406 "network/network_state_handler_observer.cc",
407 "network/network_state_handler_observer.h",
408 "network/network_type_pattern.cc",
409 "network/network_type_pattern.h",
410 "network/network_ui_data.cc",
411 "network/network_ui_data.h",
412 "network/network_util.cc",
413 "network/network_util.h",
414 "network/onc/onc_certificate_importer.h",
415 "network/onc/onc_certificate_importer_impl.cc",
416 "network/onc/onc_certificate_importer_impl.h",
417 "network/onc/onc_mapper.cc",
418 "network/onc/onc_mapper.h",
419 "network/onc/onc_merger.cc",
420 "network/onc/onc_merger.h",
421 "network/onc/onc_normalizer.cc",
422 "network/onc/onc_normalizer.h",
Pavol Markoa69b546a2018-02-06 18:11:57423 "network/onc/onc_parsed_certificates.cc",
424 "network/onc/onc_parsed_certificates.h",
teravest54ee2252017-03-17 14:18:16425 "network/onc/onc_signature.cc",
426 "network/onc/onc_signature.h",
427 "network/onc/onc_translation_tables.cc",
428 "network/onc/onc_translation_tables.h",
429 "network/onc/onc_translator.h",
430 "network/onc/onc_translator_onc_to_shill.cc",
431 "network/onc/onc_translator_shill_to_onc.cc",
432 "network/onc/onc_utils.cc",
433 "network/onc/onc_utils.h",
434 "network/onc/onc_validator.cc",
435 "network/onc/onc_validator.h",
436 "network/policy_applicator.cc",
437 "network/policy_applicator.h",
438 "network/policy_util.cc",
439 "network/policy_util.h",
440 "network/portal_detector/network_portal_detector.cc",
441 "network/portal_detector/network_portal_detector.h",
442 "network/portal_detector/network_portal_detector_strategy.cc",
443 "network/portal_detector/network_portal_detector_strategy.h",
444 "network/portal_detector/network_portal_detector_stub.cc",
445 "network/portal_detector/network_portal_detector_stub.h",
446 "network/prohibited_technologies_handler.cc",
447 "network/prohibited_technologies_handler.h",
448 "network/proxy/proxy_config_handler.cc",
449 "network/proxy/proxy_config_handler.h",
450 "network/proxy/proxy_config_service_impl.cc",
451 "network/proxy/proxy_config_service_impl.h",
452 "network/proxy/ui_proxy_config.cc",
453 "network/proxy/ui_proxy_config.h",
454 "network/proxy/ui_proxy_config_service.cc",
455 "network/proxy/ui_proxy_config_service.h",
456 "network/shill_property_handler.cc",
457 "network/shill_property_handler.h",
458 "network/shill_property_util.cc",
459 "network/shill_property_util.h",
khorimotoe8e89d52017-04-19 21:16:04460 "network/tether_constants.cc",
461 "network/tether_constants.h",
teravest54ee2252017-03-17 14:18:16462 "printing/ppd_cache.cc",
463 "printing/ppd_cache.h",
Justin Carlson781f77e212017-11-15 22:32:31464 "printing/ppd_line_reader.cc",
465 "printing/ppd_line_reader.h",
teravest54ee2252017-03-17 14:18:16466 "printing/ppd_provider.cc",
467 "printing/ppd_provider.h",
468 "printing/printer_configuration.cc",
469 "printing/printer_configuration.h",
470 "printing/printer_translator.cc",
471 "printing/printer_translator.h",
David Valleau03e6fa6b2018-01-19 02:54:26472 "printing/uri_components.cc",
473 "printing/uri_components.h",
teravest54ee2252017-03-17 14:18:16474 "process_proxy/process_output_watcher.cc",
475 "process_proxy/process_output_watcher.h",
476 "process_proxy/process_proxy.cc",
477 "process_proxy/process_proxy.h",
478 "process_proxy/process_proxy_registry.cc",
479 "process_proxy/process_proxy_registry.h",
480 "settings/cros_settings_names.cc",
481 "settings/cros_settings_names.h",
482 "settings/cros_settings_provider.cc",
483 "settings/cros_settings_provider.h",
484 "settings/timezone_settings.cc",
485 "settings/timezone_settings.h",
486 "settings/timezone_settings_helper.cc",
487 "settings/timezone_settings_helper.h",
squea15eba142017-04-25 15:41:36488 "system/cpu_temperature_reader.cc",
489 "system/cpu_temperature_reader.h",
teravest54ee2252017-03-17 14:18:16490 "system/devicemode.cc",
491 "system/devicemode.h",
492 "system/devicetype.cc",
493 "system/devicetype.h",
494
495 # Used when running mash, both on Linux and on real devices.
496 "system/fake_statistics_provider.cc",
497 "system/fake_statistics_provider.h",
498 "system/name_value_pairs_parser.cc",
499 "system/name_value_pairs_parser.h",
500 "system/statistics_provider.cc",
501 "system/statistics_provider.h",
502 "system/version_loader.cc",
503 "system/version_loader.h",
504 "timezone/timezone_provider.cc",
505 "timezone/timezone_provider.h",
506 "timezone/timezone_request.cc",
507 "timezone/timezone_request.h",
508 "timezone/timezone_resolver.cc",
509 "timezone/timezone_resolver.h",
510 "tpm/tpm_password_fetcher.cc",
511 "tpm/tpm_password_fetcher.h",
512 "tpm/tpm_token_info_getter.cc",
513 "tpm/tpm_token_info_getter.h",
514 "tpm/tpm_token_loader.cc",
515 "tpm/tpm_token_loader.h",
516 ]
mukai6ba73552014-10-09 19:05:17517 defines = [ "CHROMEOS_IMPLEMENTATION" ]
agrievec50a6542016-06-09 03:44:09518 if (current_cpu == "arm" || current_cpu == "x86") {
hashimotoc5ffb8b2016-03-09 03:19:31519 defines += [ "BINDER_IPC_32BIT" ]
hashimotoaa1465a2015-12-11 06:19:59520 }
mukai6ba73552014-10-09 19:05:17521}
522
teravest822d58e62017-03-20 16:31:58523copy("dbus_service_files") {
524 sources = [
Tim Zheng78822b3e2018-01-21 04:48:13525 "dbus/services/org.chromium.ChromeFeaturesService.conf",
Xiaochu Liu12c14b42017-09-21 22:54:48526 "dbus/services/org.chromium.ComponentUpdaterService.conf",
Lann Martin7f6f28932017-07-26 15:35:00527 "dbus/services/org.chromium.DisplayService.conf",
teravest6e2e78742017-04-06 22:30:25528 "dbus/services/org.chromium.KioskAppService.conf",
teravest822d58e62017-03-20 16:31:58529 "dbus/services/org.chromium.LibCrosService.conf",
530 "dbus/services/org.chromium.LivenessService.conf",
derat34a136572017-03-30 03:29:20531 "dbus/services/org.chromium.NetworkProxyService.conf",
Ryo Hashimoto6ff117012017-09-20 06:55:03532 "dbus/services/org.chromium.VirtualFileRequestService.conf",
teravest822d58e62017-03-20 16:31:58533 ]
534 outputs = [
535 "$root_out_dir/dbus/{{source_file_part}}",
536 ]
537}
538
skau65455b5a02016-08-03 20:16:38539# This must be a static library instead of a source set because some of the
brettwc4e6a0f2015-08-27 18:28:32540# files pull in things with dependencies that aren't linked in all cases.
541#
542# TODO this should probably be changed such that it links in all cases and
543# can be converted to a source set.
Brett Wilson16eb70c2015-08-22 21:08:09544static_library("test_support") {
mukai6ba73552014-10-09 19:05:17545 testonly = true
agrieve95ba4442016-04-25 15:47:13546 configs += [ "//build/config/linux/dbus" ]
Brett Wilson817fec02015-08-22 20:36:49547 public_deps = [
drcrash7da3d8b2016-09-09 05:39:53548 ":attestation_proto",
xiaoyinh58676cf2017-05-08 20:21:31549 ":biod_proto",
mukai6ba73552014-10-09 19:05:17550 ":chromeos",
551 ":cryptohome_proto",
552 ":power_manager_proto",
oshima3f959fa82016-05-02 18:42:57553 ]
554 deps = [
mukai6ba73552014-10-09 19:05:17555 ":test_support_without_gmock",
oshima3f959fa82016-05-02 18:42:57556 "//components/signin/core/account_id",
557 "//dbus:test_support",
558 "//google_apis",
559 "//net:test_support",
Brett Wilson817fec02015-08-22 20:36:49560 "//testing/gmock",
oshima3f959fa82016-05-02 18:42:57561 "//testing/gtest",
mukai6ba73552014-10-09 19:05:17562 ]
563 sources = [
564 "attestation/mock_attestation_flow.cc",
565 "attestation/mock_attestation_flow.h",
566 "chromeos_test_utils.cc",
567 "chromeos_test_utils.h",
568 "cryptohome/mock_async_method_caller.cc",
569 "cryptohome/mock_async_method_caller.h",
570 "cryptohome/mock_homedir_methods.cc",
571 "cryptohome/mock_homedir_methods.h",
sammiequonb6dc62f52017-04-12 04:11:21572 "dbus/biod/test_utils.cc",
573 "dbus/biod/test_utils.h",
hashimoto1472afe2014-11-18 06:18:40574 "dbus/services/service_provider_test_helper.cc",
575 "dbus/services/service_provider_test_helper.h",
mukai6ba73552014-10-09 19:05:17576 "disks/mock_disk_mount_manager.cc",
577 "disks/mock_disk_mount_manager.h",
brettw6c1a7722015-01-06 08:34:24578 "login/auth/fake_extended_authenticator.cc",
579 "login/auth/fake_extended_authenticator.h",
mukai6ba73552014-10-09 19:05:17580 "login/auth/mock_auth_attempt_state_resolver.cc",
581 "login/auth/mock_auth_attempt_state_resolver.h",
582 "login/auth/mock_auth_status_consumer.cc",
583 "login/auth/mock_auth_status_consumer.h",
mukai6ba73552014-10-09 19:05:17584 "login/auth/mock_url_fetchers.cc",
585 "login/auth/mock_url_fetchers.h",
isandrk12962022017-05-04 15:27:33586 "login/scoped_test_public_session_login_state.cc",
587 "login/scoped_test_public_session_login_state.h",
mukai6ba73552014-10-09 19:05:17588 "network/fake_network_device_handler.cc",
589 "network/fake_network_device_handler.h",
590 "network/mock_managed_network_configuration_handler.cc",
591 "network/mock_managed_network_configuration_handler.h",
malaykeshav77a1ea02016-04-21 18:55:50592 "network/mock_network_device_handler.cc",
593 "network/mock_network_device_handler.h",
khorimoto6c378ee2017-03-30 23:57:47594 "network/network_state_test.cc",
595 "network/network_state_test.h",
mukai6ba73552014-10-09 19:05:17596 "network/onc/onc_test_utils.cc",
597 "network/onc/onc_test_utils.h",
kumarniranjanf0973312017-05-20 00:00:34598 "network/portal_detector/mock_network_portal_detector.cc",
599 "network/portal_detector/mock_network_portal_detector.h",
mukai6ba73552014-10-09 19:05:17600 ]
601}
602
603static_library("test_support_without_gmock") {
604 testonly = true
agrieve95ba4442016-04-25 15:47:13605 configs += [ "//build/config/linux/dbus" ]
mukai6ba73552014-10-09 19:05:17606 deps = [
drcrash7da3d8b2016-09-09 05:39:53607 ":attestation_proto",
xiaoyinh58676cf2017-05-08 20:21:31608 ":biod_proto",
mukai6ba73552014-10-09 19:05:17609 ":chromeos",
610 ":cryptohome_proto",
khmel71bd29c2018-01-17 19:29:35611 ":login_manager_proto",
mukai6ba73552014-10-09 19:05:17612 ":power_manager_proto",
emaxx8aaab6c2017-03-07 14:57:33613 "//components/policy/proto",
agrieved7a71c882015-11-20 19:53:28614 "//crypto",
mukai6ba73552014-10-09 19:05:17615 ]
616 sources = [
617 "dbus/fake_cros_disks_client.cc",
618 "dbus/fake_cros_disks_client.h",
Qijiang Fan0f3005f2018-01-24 08:53:49619
620 # TODO(crbug.com/799071) remove fake_session_manager_client and fix build rules.
mukai6ba73552014-10-09 19:05:17621 "dbus/fake_session_manager_client.cc",
622 "dbus/fake_session_manager_client.h",
623 "dbus/fake_shill_manager_client.cc",
624 "dbus/fake_shill_manager_client.h",
625 "dbus/fake_update_engine_client.cc",
626 "dbus/fake_update_engine_client.h",
mukai6ba73552014-10-09 19:05:17627 ]
628}
629
630test("chromeos_unittests") {
631 configs += [
agrieve95ba4442016-04-25 15:47:13632 "//build/config/linux/dbus",
svaldez2135be52016-04-20 16:34:53633 "//third_party/nss:system_nss_no_ssl_config",
mukai6ba73552014-10-09 19:05:17634 ]
635 deps = [
drcrash7da3d8b2016-09-09 05:39:53636 ":attestation_proto",
Roman Sorokin63c0c2162017-11-28 09:43:04637 ":authpolicy_proto",
xiaoyinh58676cf2017-05-08 20:21:31638 ":biod_proto",
agrieved7a71c882015-11-20 19:53:28639 ":cryptohome_proto",
640 ":power_manager_proto",
641 ":test_support",
Roman Sorokin94a94e32017-11-29 13:11:21642 ":test_support_without_gmock",
mukai6ba73552014-10-09 19:05:17643 "//base/test:run_all_unittests",
644 "//base/test:test_support",
645 "//components/onc",
brettw9f7802a22016-01-30 06:40:17646 "//components/prefs:test_support",
stevenjb83368882015-07-10 20:51:45647 "//components/proxy_config",
alemate627f6532016-03-04 10:39:54648 "//components/signin/core/account_id",
mukai6ba73552014-10-09 19:05:17649 "//crypto",
650 "//crypto:test_support",
651 "//dbus:test_support",
652 "//google_apis",
jennyzfbaa3e62017-03-06 20:14:02653 "//media/base:video_facing",
mukai6ba73552014-10-09 19:05:17654 "//net",
655 "//net:test_support",
656 "//testing/gmock",
657 "//testing/gtest",
jshin77e507b2015-04-24 01:13:15658 "//third_party/icu",
mukai6ba73552014-10-09 19:05:17659 "//url",
mukai6ba73552014-10-09 19:05:17660 ]
teravest54ee2252017-03-17 14:18:16661 sources = [
662 "app_mode/kiosk_oem_manifest_parser_unittest.cc",
663 "attestation/attestation_flow_unittest.cc",
664 "audio/audio_devices_pref_handler_impl_unittest.cc",
665 "audio/cras_audio_handler_unittest.cc",
666 "cert_loader_unittest.cc",
Maajid1a0654a2018-01-23 07:49:49667 "cryptohome/cryptohome_util_unittest.cc",
teravest54ee2252017-03-17 14:18:16668 "cryptohome/homedir_methods_unittest.cc",
669 "cryptohome/system_salt_getter_unittest.cc",
sammiequon0958b7f2017-04-03 19:24:21670 "dbus/biod/biod_client_unittest.cc",
sammiequonb6dc62f52017-04-12 04:11:21671 "dbus/biod/fake_biod_client_unittest.cc",
teravest54ee2252017-03-17 14:18:16672 "dbus/blocking_method_caller_unittest.cc",
673 "dbus/cras_audio_client_unittest.cc",
674 "dbus/cros_disks_client_unittest.cc",
675 "dbus/dbus_thread_manager_unittest.cc",
676 "dbus/fake_auth_policy_client_unittest.cc",
677 "dbus/fake_cryptohome_client_unittest.cc",
678 "dbus/fake_easy_unlock_client_unittest.cc",
679 "dbus/fake_power_manager_client_unittest.cc",
680 "dbus/gsm_sms_client_unittest.cc",
681 "dbus/modem_messaging_client_unittest.cc",
Hidehiko Abe1ac7aa22017-10-30 20:35:19682 "dbus/pipe_reader_unittest.cc",
teravest54ee2252017-03-17 14:18:16683 "dbus/power_manager_client_unittest.cc",
684 "dbus/power_policy_controller_unittest.cc",
685 "dbus/services/cros_dbus_service_unittest.cc",
686 "dbus/services/proxy_resolution_service_provider_unittest.cc",
687 "dbus/shill_client_unittest_base.cc",
688 "dbus/shill_client_unittest_base.h",
689 "dbus/shill_device_client_unittest.cc",
690 "dbus/shill_ipconfig_client_unittest.cc",
691 "dbus/shill_manager_client_unittest.cc",
692 "dbus/shill_profile_client_unittest.cc",
693 "dbus/shill_service_client_unittest.cc",
694 "dbus/shill_third_party_vpn_driver_client_unittest.cc",
695 "disks/disk_mount_manager_unittest.cc",
696 "disks/suspend_unmount_manager_unittest.cc",
697 "geolocation/simple_geolocation_unittest.cc",
Roman Sorokin94a94e32017-11-29 13:11:21698 "login/auth/authpolicy_login_helper_unittest.cc",
teravest54ee2252017-03-17 14:18:16699 "login/auth/key_unittest.cc",
700 "login/login_state_unittest.cc",
701 "network/auto_connect_handler_unittest.cc",
Steven Bennetts538486f2017-05-18 21:02:04702 "network/certificate_helper_unittest.cc",
teravest54ee2252017-03-17 14:18:16703 "network/client_cert_resolver_unittest.cc",
704 "network/firewall_hole_unittest.cc",
705 "network/geolocation_handler_unittest.cc",
706 "network/host_resolver_impl_chromeos_unittest.cc",
707 "network/managed_network_configuration_handler_unittest.cc",
708 "network/network_cert_migrator_unittest.cc",
709 "network/network_change_notifier_chromeos_unittest.cc",
710 "network/network_configuration_handler_unittest.cc",
711 "network/network_connect_unittest.cc",
khorimotoa2ff31632017-05-04 01:20:24712 "network/network_connection_handler_impl_unittest.cc",
teravest54ee2252017-03-17 14:18:16713 "network/network_device_handler_unittest.cc",
714 "network/network_sms_handler_unittest.cc",
715 "network/network_state_handler_unittest.cc",
716 "network/network_state_unittest.cc",
717 "network/network_type_pattern_unittest.cc",
718 "network/network_ui_data_unittest.cc",
719 "network/network_util_unittest.cc",
720 "network/onc/onc_certificate_importer_impl_unittest.cc",
721 "network/onc/onc_merger_unittest.cc",
722 "network/onc/onc_normalizer_unittest.cc",
Pavol Markoa69b546a2018-02-06 18:11:57723 "network/onc/onc_parsed_certificates_unittest.cc",
teravest54ee2252017-03-17 14:18:16724 "network/onc/onc_translator_unittest.cc",
725 "network/onc/onc_utils_unittest.cc",
726 "network/onc/onc_validator_unittest.cc",
727 "network/prohibited_technologies_handler_unittest.cc",
mmenke29e5a5d2017-06-21 21:35:37728 "network/proxy/proxy_config_service_impl_unittest.cc",
teravest54ee2252017-03-17 14:18:16729 "network/shill_property_handler_unittest.cc",
730 "printing/ppd_cache_unittest.cc",
Justin Carlson781f77e212017-11-15 22:32:31731 "printing/ppd_line_reader_unittest.cc",
teravest54ee2252017-03-17 14:18:16732 "printing/ppd_provider_unittest.cc",
733 "printing/printer_translator_unittest.cc",
734 "process_proxy/process_output_watcher_unittest.cc",
735 "process_proxy/process_proxy_unittest.cc",
736 "settings/timezone_settings_unittest.cc",
squea15eba142017-04-25 15:41:36737 "system/cpu_temperature_reader_unittest.cc",
teravest54ee2252017-03-17 14:18:16738 "system/name_value_pairs_parser_unittest.cc",
739 "system/version_loader_unittest.cc",
740 "timezone/timezone_unittest.cc",
741 "tpm/tpm_token_info_getter_unittest.cc",
742 ]
hashimotoaa1465a2015-12-11 06:19:59743 if (use_binder) {
agrievec50a6542016-06-09 03:44:09744 if (current_cpu == "arm" || current_cpu == "x86") {
hashimotoaa1465a2015-12-11 06:19:59745 defines += [ "BINDER_IPC_32BIT" ]
746 }
teravest54ee2252017-03-17 14:18:16747 sources += [
748 "binder/buffer_reader_unittest.cc",
749 "binder/command_broker_unittest.cc",
750 "binder/command_stream_unittest.cc",
751 "binder/driver_unittest.cc",
752 "binder/end_to_end_unittest.cc",
753 "binder/service_manager_proxy_unittest.cc",
754 "binder/test_service.cc",
755 "binder/test_service.h",
756 "binder/transaction_data_read_write_unittest.cc",
757 ]
hashimotoaa1465a2015-12-11 06:19:59758 }
dpranke94c6fb22016-06-10 01:55:08759
760 data = [
761 "test/data/",
dpranke94c6fb22016-06-10 01:55:08762 ]
mukai6ba73552014-10-09 19:05:17763}
764
[email protected]743530f2014-06-12 19:38:50765proto_library("power_manager_proto") {
766 sources = [
Daniel Erat05f8e5c2017-10-30 22:41:45767 "//third_party/cros_system_api/dbus/power_manager/idle.proto",
[email protected]743530f2014-06-12 19:38:50768 "//third_party/cros_system_api/dbus/power_manager/input_event.proto",
769 "//third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto",
770 "//third_party/cros_system_api/dbus/power_manager/policy.proto",
771 "//third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto",
772 "//third_party/cros_system_api/dbus/power_manager/suspend.proto",
derat08e333d2017-03-21 21:51:22773 "//third_party/cros_system_api/dbus/power_manager/switch_states.proto",
[email protected]743530f2014-06-12 19:38:50774 ]
mukai6ba73552014-10-09 19:05:17775
776 proto_out_dir = "chromeos/dbus/power_manager"
777}
778
779proto_library("cryptohome_proto") {
780 sources = [
781 "//third_party/cros_system_api/dbus/cryptohome/key.proto",
782 "//third_party/cros_system_api/dbus/cryptohome/rpc.proto",
783 ]
784
785 proto_out_dir = "chromeos/dbus/cryptohome"
786}
787
xiaohuic2f57e3f72017-05-31 01:29:53788proto_library("login_manager_proto") {
789 sources = [
790 "//third_party/cros_system_api/dbus/login_manager/arc.proto",
Lutz Justen8dfd5972017-11-07 10:26:26791 "//third_party/cros_system_api/dbus/login_manager/policy_descriptor.proto",
xiaohuic2f57e3f72017-05-31 01:29:53792 ]
793
794 proto_out_dir = "chromeos/dbus/login_manager"
795}
796
drcrash7da3d8b2016-09-09 05:39:53797proto_library("attestation_proto") {
798 sources = [
799 "dbus/proto/attestation.proto",
800 ]
801
802 proto_out_dir = "chromeos/attestation"
803}
804
mukai6ba73552014-10-09 19:05:17805proto_library("cryptohome_signkey_proto") {
806 sources = [
807 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto",
808 ]
809
mukai4e5b67db2014-10-10 21:08:23810 proto_out_dir = "chromeos/cryptohome"
[email protected]743530f2014-06-12 19:38:50811}
rsorokinfc75ccee2017-02-10 13:16:43812
813proto_library("authpolicy_proto") {
814 sources = [
rsorokin01014b72017-04-28 12:26:29815 "//third_party/cros_system_api/dbus/authpolicy/active_directory_info.proto",
rsorokinfc75ccee2017-02-10 13:16:43816 ]
817
818 proto_out_dir = "chromeos/dbus/authpolicy"
819}
xiaoyinh58676cf2017-05-08 20:21:31820
821proto_library("biod_proto") {
822 sources = [
823 "//third_party/cros_system_api/dbus/biod/constants.proto",
824 "//third_party/cros_system_api/dbus/biod/messages.proto",
825 ]
826
827 proto_out_dir = "chromeos/dbus/biod"
828}
lasorenf933419f2017-05-15 19:37:45829
830proto_library("media_perception_proto") {
831 sources = [
832 "dbus/proto/media_perception.proto",
833 ]
834
835 proto_out_dir = "chromeos/media_perception"
836}
Allen Vicencio02457102017-11-28 01:20:20837
838proto_library("smbprovider_proto") {
839 sources = [
840 "//third_party/cros_system_api/dbus/smbprovider/directory_entry.proto",
841 ]
842
843 proto_out_dir = "chromeos/dbus/smbprovider"
844}