1 # Copyright (c) 2012 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.
10 'chromeos_memory.gypi',
11 'chromeos_tools.gypi',
15 'target_name': 'chromeos',
16 'type': '<(component)',
18 '../base/base.gyp:base',
19 '../base/base.gyp:base_prefs',
20 '../components/components.gyp:onc_component',
21 '../crypto/crypto.gyp:crypto',
22 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
23 '../build/linux/system.gyp:dbus',
24 '../build/linux/system.gyp:ssl',
25 '../dbus/dbus.gyp:dbus',
27 '../third_party/libxml/libxml.gyp:libxml',
28 '../url/url.gyp:url_lib',
29 'ime/input_method.gyp:gencode',
30 'power_manager_proto',
33 'CHROMEOS_IMPLEMENTATION',
36 'app_mode/kiosk_oem_manifest_parser.cc',
37 'app_mode/kiosk_oem_manifest_parser.h',
38 'audio/audio_device.cc',
39 'audio/audio_device.h',
40 'audio/audio_devices_pref_handler.h',
41 'audio/audio_pref_observer.h',
42 'audio/cras_audio_handler.cc',
43 'audio/cras_audio_handler.h',
44 'audio/audio_devices_pref_handler_stub.cc',
45 'audio/audio_devices_pref_handler_stub.h',
46 'attestation/attestation_constants.cc',
47 'attestation/attestation_constants.h',
48 'attestation/attestation_flow.cc',
49 'attestation/attestation_flow.h',
52 'chromeos_constants.cc',
53 'chromeos_constants.h',
57 'chromeos_switches.cc',
58 'chromeos_switches.h',
59 'cryptohome/async_method_caller.cc',
60 'cryptohome/async_method_caller.h',
61 'cryptohome/cryptohome_util.cc',
62 'cryptohome/cryptohome_util.h',
63 'cryptohome/system_salt_getter.cc',
64 'cryptohome/system_salt_getter.h',
67 'dbus/blocking_method_caller.cc',
68 'dbus/blocking_method_caller.h',
69 'dbus/bluetooth_adapter_client.cc',
70 'dbus/bluetooth_adapter_client.h',
71 'dbus/bluetooth_agent_manager_client.cc',
72 'dbus/bluetooth_agent_manager_client.h',
73 'dbus/bluetooth_agent_service_provider.cc',
74 'dbus/bluetooth_agent_service_provider.h',
75 'dbus/bluetooth_device_client.cc',
76 'dbus/bluetooth_device_client.h',
77 'dbus/bluetooth_input_client.cc',
78 'dbus/bluetooth_input_client.h',
79 'dbus/bluetooth_profile_manager_client.cc',
80 'dbus/bluetooth_profile_manager_client.h',
81 'dbus/bluetooth_profile_service_provider.cc',
82 'dbus/bluetooth_profile_service_provider.h',
83 'dbus/cras_audio_client.cc',
84 'dbus/cras_audio_client.h',
85 'dbus/cras_audio_client_stub_impl.cc',
86 'dbus/cras_audio_client_stub_impl.h',
87 'dbus/cros_disks_client.cc',
88 'dbus/cros_disks_client.h',
89 'dbus/cryptohome_client.cc',
90 'dbus/cryptohome_client.h',
91 'dbus/dbus_client_implementation_type.h',
92 'dbus/dbus_method_call_status.cc',
93 'dbus/dbus_method_call_status.h',
94 'dbus/dbus_thread_manager.cc',
95 'dbus/dbus_thread_manager.h',
96 'dbus/debug_daemon_client.cc',
97 'dbus/debug_daemon_client.h',
98 'dbus/fake_bluetooth_adapter_client.cc',
99 'dbus/fake_bluetooth_adapter_client.h',
100 'dbus/fake_bluetooth_agent_manager_client.cc',
101 'dbus/fake_bluetooth_agent_manager_client.h',
102 'dbus/fake_bluetooth_agent_service_provider.cc',
103 'dbus/fake_bluetooth_agent_service_provider.h',
104 'dbus/fake_bluetooth_device_client.cc',
105 'dbus/fake_bluetooth_device_client.h',
106 'dbus/fake_bluetooth_input_client.cc',
107 'dbus/fake_bluetooth_input_client.h',
108 'dbus/fake_bluetooth_profile_manager_client.cc',
109 'dbus/fake_bluetooth_profile_manager_client.h',
110 'dbus/fake_bluetooth_profile_service_provider.cc',
111 'dbus/fake_bluetooth_profile_service_provider.h',
112 'dbus/fake_cryptohome_client.cc',
113 'dbus/fake_cryptohome_client.h',
114 'dbus/fake_gsm_sms_client.cc',
115 'dbus/fake_gsm_sms_client.h',
116 'dbus/fake_nfc_adapter_client.cc',
117 'dbus/fake_nfc_adapter_client.h',
118 'dbus/fake_nfc_device_client.cc',
119 'dbus/fake_nfc_device_client.h',
120 'dbus/fake_nfc_manager_client.cc',
121 'dbus/fake_nfc_manager_client.h',
122 'dbus/fake_nfc_tag_client.cc',
123 'dbus/fake_nfc_tag_client.h',
124 'dbus/fake_image_burner_client.cc',
125 'dbus/fake_image_burner_client.h',
126 'dbus/fake_shill_device_client.cc',
127 'dbus/fake_shill_device_client.h',
128 'dbus/fake_shill_ipconfig_client.cc',
129 'dbus/fake_shill_ipconfig_client.h',
130 'dbus/fake_shill_manager_client.cc',
131 'dbus/fake_shill_manager_client.h',
132 'dbus/fake_shill_profile_client.cc',
133 'dbus/fake_shill_profile_client.h',
134 'dbus/fake_shill_service_client.cc',
135 'dbus/fake_shill_service_client.h',
136 'dbus/fake_system_clock_client.cc',
137 'dbus/fake_system_clock_client.h',
138 'dbus/gsm_sms_client.cc',
139 'dbus/gsm_sms_client.h',
140 'dbus/nfc_adapter_client.cc',
141 'dbus/nfc_adapter_client.h',
142 'dbus/nfc_client_helpers.cc',
143 'dbus/nfc_client_helpers.h',
144 'dbus/nfc_device_client.cc',
145 'dbus/nfc_device_client.h',
146 'dbus/nfc_manager_client.cc',
147 'dbus/nfc_manager_client.h',
148 'dbus/nfc_property_set.cc',
149 'dbus/nfc_property_set.h',
150 'dbus/nfc_tag_client.cc',
151 'dbus/nfc_tag_client.h',
152 'dbus/shill_client_helper.cc',
153 'dbus/shill_client_helper.h',
154 'dbus/shill_device_client.cc',
155 'dbus/shill_device_client.h',
156 'dbus/shill_ipconfig_client.cc',
157 'dbus/shill_ipconfig_client.h',
158 'dbus/shill_manager_client.cc',
159 'dbus/shill_manager_client.h',
160 'dbus/shill_profile_client.cc',
161 'dbus/shill_profile_client.h',
162 'dbus/shill_service_client.cc',
163 'dbus/shill_service_client.h',
164 'dbus/shill_stub_helper.cc',
165 'dbus/shill_stub_helper.h',
166 'dbus/ibus/ibus_client.cc',
167 'dbus/ibus/ibus_client.h',
168 'dbus/ibus/ibus_component.cc',
169 'dbus/ibus/ibus_component.h',
170 'dbus/ibus/ibus_constants.h',
171 'dbus/ibus/ibus_engine_service.cc',
172 'dbus/ibus/ibus_engine_service.h',
173 'dbus/ibus/ibus_engine_factory_service.cc',
174 'dbus/ibus/ibus_engine_factory_service.h',
175 'dbus/ibus/ibus_object.cc',
176 'dbus/ibus/ibus_object.h',
177 'dbus/ibus/ibus_text.cc',
178 'dbus/ibus/ibus_text.h',
179 'dbus/image_burner_client.cc',
180 'dbus/image_burner_client.h',
181 'dbus/introspectable_client.cc',
182 'dbus/introspectable_client.h',
183 'dbus/modem_messaging_client.cc',
184 'dbus/modem_messaging_client.h',
185 'dbus/permission_broker_client.cc',
186 'dbus/permission_broker_client.h',
187 'dbus/power_manager_client.cc',
188 'dbus/power_manager_client.h',
189 'dbus/power_policy_controller.cc',
190 'dbus/power_policy_controller.h',
191 'dbus/session_manager_client.cc',
192 'dbus/session_manager_client.h',
193 'dbus/sms_client.cc',
195 'dbus/system_clock_client.cc',
196 'dbus/system_clock_client.h',
197 'dbus/update_engine_client.cc',
198 'dbus/update_engine_client.h',
199 'dbus/volume_state.cc',
200 'dbus/volume_state.h',
201 'disks/disk_mount_manager.cc',
202 'disks/disk_mount_manager.h',
203 'display/output_configurator.cc',
204 'display/output_configurator.h',
205 'display/output_util.cc',
206 'display/output_util.h',
207 'display/real_output_configurator_delegate.cc',
208 'display/real_output_configurator_delegate.h',
209 'ime/candidate_window.cc',
210 'ime/candidate_window.h',
211 'ime/component_extension_ime_manager.cc',
212 'ime/component_extension_ime_manager.h',
213 'ime/extension_ime_util.cc',
214 'ime/extension_ime_util.h',
215 'ime/ibus_bridge.cc',
217 'ime/ibus_daemon_controller.cc',
218 'ime/ibus_daemon_controller.h',
219 'ime/ibus_keymap.cc',
221 'ime/input_method_config.cc',
222 'ime/input_method_config.h',
223 'ime/input_method_delegate.h',
224 'ime/input_method_descriptor.cc',
225 'ime/input_method_descriptor.h',
226 'ime/input_method_manager.cc',
227 'ime/input_method_manager.h',
228 'ime/input_method_property.cc',
229 'ime/input_method_property.h',
230 'ime/input_method_whitelist.cc',
231 'ime/input_method_whitelist.h',
234 'login/login_state.cc',
235 'login/login_state.h',
236 'network/certificate_pattern.cc',
237 'network/certificate_pattern.h',
238 'network/client_cert_resolver.cc',
239 'network/client_cert_resolver.h',
240 'network/client_cert_util.cc',
241 'network/client_cert_util.h',
242 'network/device_state.cc',
243 'network/device_state.h',
244 'network/favorite_state.cc',
245 'network/favorite_state.h',
246 'network/geolocation_handler.cc',
247 'network/geolocation_handler.h',
248 'network/managed_network_configuration_handler.cc',
249 'network/managed_network_configuration_handler.h',
250 'network/managed_network_configuration_handler_impl.cc',
251 'network/managed_network_configuration_handler_impl.h',
252 'network/managed_state.cc',
253 'network/managed_state.h',
254 'network/network_activation_handler.cc',
255 'network/network_activation_handler.h',
256 'network/network_cert_migrator.cc',
257 'network/network_cert_migrator.h',
258 'network/network_change_notifier_chromeos.cc',
259 'network/network_change_notifier_chromeos.h',
260 'network/network_change_notifier_factory_chromeos.cc',
261 'network/network_change_notifier_factory_chromeos.h',
262 'network/network_configuration_handler.cc',
263 'network/network_configuration_handler.h',
264 'network/network_connection_handler.cc',
265 'network/network_connection_handler.h',
266 'network/network_device_handler.cc',
267 'network/network_device_handler.h',
268 'network/network_event_log.cc',
269 'network/network_event_log.h',
270 'network/network_handler.cc',
271 'network/network_handler.h',
272 'network/network_handler_callbacks.cc',
273 'network/network_handler_callbacks.h',
274 'network/network_ip_config.cc',
275 'network/network_ip_config.h',
276 'network/network_profile.cc',
277 'network/network_profile.h',
278 'network/network_profile_handler.cc',
279 'network/network_profile_handler.h',
280 'network/network_profile_observer.h',
281 'network/network_sms_handler.cc',
282 'network/network_sms_handler.h',
283 'network/network_state.cc',
284 'network/network_state.h',
285 'network/network_state_handler.cc',
286 'network/network_state_handler.h',
287 'network/network_state_handler_observer.cc',
288 'network/network_state_handler_observer.h',
289 'network/network_ui_data.cc',
290 'network/network_ui_data.h',
291 'network/network_util.cc',
292 'network/network_util.h',
293 'network/onc/onc_certificate_importer.h',
294 'network/onc/onc_certificate_importer_impl.cc',
295 'network/onc/onc_certificate_importer_impl.h',
296 'network/onc/onc_mapper.cc',
297 'network/onc/onc_mapper.h',
298 'network/onc/onc_merger.cc',
299 'network/onc/onc_merger.h',
300 'network/onc/onc_normalizer.cc',
301 'network/onc/onc_normalizer.h',
302 'network/onc/onc_signature.cc',
303 'network/onc/onc_signature.h',
304 'network/onc/onc_translation_tables.cc',
305 'network/onc/onc_translation_tables.h',
306 'network/onc/onc_translator.h',
307 'network/onc/onc_translator_onc_to_shill.cc',
308 'network/onc/onc_translator_shill_to_onc.cc',
309 'network/onc/onc_utils.cc',
310 'network/onc/onc_utils.h',
311 'network/onc/onc_validator.cc',
312 'network/onc/onc_validator.h',
313 'network/policy_util.cc',
314 'network/policy_util.h',
315 'network/policy_applicator.cc',
316 'network/policy_applicator.h',
317 'network/shill_property_handler.cc',
318 'network/shill_property_handler.h',
319 'network/shill_property_util.cc',
320 'network/shill_property_util.h',
321 'network/dhcp_proxy_script_fetcher_chromeos.cc',
322 'network/dhcp_proxy_script_fetcher_chromeos.h',
323 'process_proxy/process_output_watcher.cc',
324 'process_proxy/process_output_watcher.h',
325 'process_proxy/process_proxy.cc',
326 'process_proxy/process_proxy.h',
327 'process_proxy/process_proxy_registry.cc',
328 'process_proxy/process_proxy_registry.h',
329 'settings/cros_settings_names.cc',
330 'settings/cros_settings_names.h',
331 'settings/cros_settings_provider.cc',
332 'settings/cros_settings_provider.h',
333 'settings/timezone_settings.cc',
334 'settings/timezone_settings.h',
335 'system/name_value_pairs_parser.cc',
336 'system/name_value_pairs_parser.h',
337 'system/statistics_provider.cc',
338 'system/statistics_provider.h',
343 '../build/linux/system.gyp:glib',
358 'display/output_configurator.cc',
359 'display/output_configurator.h',
360 'display/output_util.cc',
361 'display/output_util.h',
362 'display/real_output_configurator_delegate.cc',
363 'display/real_output_configurator_delegate.h',
371 # This target contains mocks that can be used to write unit tests.
372 'target_name': 'chromeos_test_support',
373 'type': 'static_library',
375 '../build/linux/system.gyp:dbus',
376 '../testing/gmock.gyp:gmock',
378 'chromeos_test_support_without_gmock',
379 'power_manager_proto',
382 'attestation/mock_attestation_flow.cc',
383 'attestation/mock_attestation_flow.h',
384 'chromeos_test_utils.cc',
385 'chromeos_test_utils.h',
386 'cryptohome/mock_async_method_caller.cc',
387 'cryptohome/mock_async_method_caller.h',
388 'dbus/mock_cryptohome_client.cc',
389 'dbus/mock_cryptohome_client.h',
390 'dbus/mock_dbus_thread_manager.cc',
391 'dbus/mock_dbus_thread_manager.h',
392 'dbus/mock_session_manager_client.cc',
393 'dbus/mock_session_manager_client.h',
394 'dbus/mock_shill_manager_client.cc',
395 'dbus/mock_shill_manager_client.h',
396 'dbus/mock_shill_profile_client.cc',
397 'dbus/mock_shill_profile_client.h',
398 'dbus/mock_shill_service_client.cc',
399 'dbus/mock_shill_service_client.h',
400 'disks/mock_disk_mount_manager.cc',
401 'disks/mock_disk_mount_manager.h',
402 'ime/mock_component_extension_ime_manager_delegate.cc',
403 'ime/mock_component_extension_ime_manager_delegate.h',
404 'network/mock_managed_network_configuration_handler.cc',
405 'network/mock_managed_network_configuration_handler.h',
406 'network/onc/mock_certificate_importer.cc',
407 'network/onc/mock_certificate_importer.h',
408 'network/onc/onc_test_utils.cc',
409 'network/onc/onc_test_utils.h',
410 'system/mock_statistics_provider.cc',
411 'system/mock_statistics_provider.h',
418 'target_name': 'chromeos_test_support_without_gmock',
419 'type': 'static_library',
421 '../build/linux/system.gyp:dbus',
422 '../crypto/crypto.gyp:crypto',
423 '../dbus/dbus.gyp:dbus',
425 'power_manager_proto',
428 'dbus/fake_cros_disks_client.cc',
429 'dbus/fake_cros_disks_client.h',
430 'dbus/fake_dbus_thread_manager.cc',
431 'dbus/fake_dbus_thread_manager.h',
432 'dbus/fake_power_manager_client.cc',
433 'dbus/fake_power_manager_client.h',
434 'dbus/fake_session_manager_client.cc',
435 'dbus/fake_session_manager_client.h',
436 'dbus/fake_shill_manager_client.cc',
437 'dbus/fake_shill_manager_client.h',
438 'dbus/fake_update_engine_client.cc',
439 'dbus/fake_update_engine_client.h',
440 'dbus/ibus/mock_ibus_client.cc',
441 'dbus/ibus/mock_ibus_client.h',
442 'dbus/ibus/mock_ibus_engine_factory_service.cc',
443 'dbus/ibus/mock_ibus_engine_factory_service.h',
444 'dbus/ibus/mock_ibus_engine_service.cc',
445 'dbus/ibus/mock_ibus_engine_service.h',
446 'ime/fake_input_method_delegate.cc',
447 'ime/fake_input_method_delegate.h',
448 'ime/mock_ibus_daemon_controller.cc',
449 'ime/mock_ibus_daemon_controller.h',
450 'ime/mock_ime_candidate_window_handler.cc',
451 'ime/mock_ime_candidate_window_handler.h',
452 'ime/mock_ime_engine_handler.cc',
453 'ime/mock_ime_engine_handler.h',
454 'ime/mock_ime_input_context_handler.cc',
455 'ime/mock_ime_input_context_handler.h',
456 'ime/mock_ime_property_handler.cc',
457 'ime/mock_ime_property_handler.h',
458 'ime/mock_xkeyboard.cc',
459 'ime/mock_xkeyboard.h',
466 'target_name': 'chromeos_unittests',
467 'type': 'executable',
469 '../base/base.gyp:run_all_unittests',
470 '../base/base.gyp:test_support_base',
471 '../build/linux/system.gyp:dbus',
472 '../build/linux/system.gyp:ssl',
473 '../components/components.gyp:onc_component',
474 '../crypto/crypto.gyp:crypto',
475 '../dbus/dbus.gyp:dbus_test_support',
476 '../net/net.gyp:net',
477 '../net/net.gyp:net_test_support',
478 '../testing/gmock.gyp:gmock',
479 '../testing/gtest.gyp:gtest',
480 '../url/url.gyp:url_lib',
481 'chromeos_test_support',
482 'power_manager_proto',
485 'app_mode/kiosk_oem_manifest_parser_unittest.cc',
486 'attestation/attestation_flow_unittest.cc',
487 'audio/cras_audio_handler_unittest.cc',
488 'cryptohome/system_salt_getter_unittest.cc',
489 'dbus/blocking_method_caller_unittest.cc',
490 'dbus/cros_disks_client_unittest.cc',
491 'dbus/gsm_sms_client_unittest.cc',
492 'dbus/ibus/ibus_client_unittest.cc',
493 'dbus/ibus/ibus_component_unittest.cc',
494 'dbus/ibus/ibus_engine_factory_service_unittest.cc',
495 'dbus/ibus/ibus_object_unittest.cc',
496 'dbus/ibus/ibus_text_unittest.cc',
497 'dbus/introspectable_client_unittest.cc',
498 'dbus/modem_messaging_client_unittest.cc',
499 'dbus/nfc_client_unittest.cc',
500 'dbus/power_policy_controller_unittest.cc',
501 'dbus/shill_client_unittest_base.cc',
502 'dbus/shill_client_unittest_base.h',
503 'dbus/shill_device_client_unittest.cc',
504 'dbus/shill_ipconfig_client_unittest.cc',
505 'dbus/shill_manager_client_unittest.cc',
506 'dbus/shill_profile_client_unittest.cc',
507 'dbus/shill_service_client_unittest.cc',
508 'disks/disk_mount_manager_unittest.cc',
509 'display/output_configurator_unittest.cc',
510 'display/output_util_unittest.cc',
511 'ime/candidate_window_unittest.cc',
512 'ime/component_extension_ime_manager_unittest.cc',
513 'ime/extension_ime_util_unittest.cc',
514 'ime/input_method_manager.h',
515 'ime/input_method_property_unittest.cc',
516 'ime/input_method_whitelist_unittest.cc',
517 'ime/xkeyboard_unittest.cc',
518 'login/login_state_unittest.cc',
519 'network/client_cert_resolver_unittest.cc',
520 'network/geolocation_handler_unittest.cc',
521 'network/managed_network_configuration_handler_unittest.cc',
522 'network/network_cert_migrator_unittest.cc',
523 'network/network_change_notifier_chromeos_unittest.cc',
524 'network/network_configuration_handler_unittest.cc',
525 'network/network_connection_handler_unittest.cc',
526 'network/network_device_handler_unittest.cc',
527 'network/network_event_log_unittest.cc',
528 'network/network_profile_handler_stub.h',
529 'network/network_sms_handler_unittest.cc',
530 'network/network_state_handler_unittest.cc',
531 'network/network_state_unittest.cc',
532 'network/network_ui_data_unittest.cc',
533 'network/network_util_unittest.cc',
534 'network/onc/onc_certificate_importer_impl_unittest.cc',
535 'network/onc/onc_merger_unittest.cc',
536 'network/onc/onc_normalizer_unittest.cc',
537 'network/onc/onc_translator_unittest.cc',
538 'network/onc/onc_utils_unittest.cc',
539 'network/onc/onc_validator_unittest.cc',
540 'network/shill_property_handler_unittest.cc',
541 'network/shill_property_util_unittest.cc',
542 'process_proxy/process_output_watcher_unittest.cc',
543 'process_proxy/process_proxy_unittest.cc',
544 'system/name_value_pairs_parser_unittest.cc',
550 [ 'linux_use_tcmalloc==1', {
552 '../base/allocator/allocator.gyp:allocator',
559 # Protobuf compiler/generator for power-manager related protocol buffers.
560 'target_name': 'power_manager_proto',
561 'type': 'static_library',
563 '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
564 '../third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto',
565 '../third_party/cros_system_api/dbus/power_manager/policy.proto',
566 '../third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto',
567 '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
570 'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
571 'proto_out_dir': 'chromeos/dbus/power_manager',
573 'includes': ['../build/protoc.gypi'],