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_manager_client.cc',
119 'dbus/fake_nfc_manager_client.h',
120 'dbus/fake_image_burner_client.cc',
121 'dbus/fake_image_burner_client.h',
122 'dbus/fake_shill_device_client.cc',
123 'dbus/fake_shill_device_client.h',
124 'dbus/fake_shill_ipconfig_client.cc',
125 'dbus/fake_shill_ipconfig_client.h',
126 'dbus/fake_shill_manager_client.cc',
127 'dbus/fake_shill_manager_client.h',
128 'dbus/fake_shill_profile_client.cc',
129 'dbus/fake_shill_profile_client.h',
130 'dbus/fake_shill_service_client.cc',
131 'dbus/fake_shill_service_client.h',
132 'dbus/fake_system_clock_client.cc',
133 'dbus/fake_system_clock_client.h',
134 'dbus/gsm_sms_client.cc',
135 'dbus/gsm_sms_client.h',
136 'dbus/nfc_adapter_client.cc',
137 'dbus/nfc_adapter_client.h',
138 'dbus/nfc_client_helpers.cc',
139 'dbus/nfc_client_helpers.h',
140 'dbus/nfc_manager_client.cc',
141 'dbus/nfc_manager_client.h',
142 'dbus/nfc_property_set.cc',
143 'dbus/nfc_property_set.h',
144 'dbus/shill_client_helper.cc',
145 'dbus/shill_client_helper.h',
146 'dbus/shill_device_client.cc',
147 'dbus/shill_device_client.h',
148 'dbus/shill_ipconfig_client.cc',
149 'dbus/shill_ipconfig_client.h',
150 'dbus/shill_manager_client.cc',
151 'dbus/shill_manager_client.h',
152 'dbus/shill_profile_client.cc',
153 'dbus/shill_profile_client.h',
154 'dbus/shill_service_client.cc',
155 'dbus/shill_service_client.h',
156 'dbus/shill_stub_helper.cc',
157 'dbus/shill_stub_helper.h',
158 'dbus/ibus/ibus_client.cc',
159 'dbus/ibus/ibus_client.h',
160 'dbus/ibus/ibus_component.cc',
161 'dbus/ibus/ibus_component.h',
162 'dbus/ibus/ibus_constants.h',
163 'dbus/ibus/ibus_engine_service.cc',
164 'dbus/ibus/ibus_engine_service.h',
165 'dbus/ibus/ibus_engine_factory_service.cc',
166 'dbus/ibus/ibus_engine_factory_service.h',
167 'dbus/ibus/ibus_object.cc',
168 'dbus/ibus/ibus_object.h',
169 'dbus/ibus/ibus_text.cc',
170 'dbus/ibus/ibus_text.h',
171 'dbus/image_burner_client.cc',
172 'dbus/image_burner_client.h',
173 'dbus/introspectable_client.cc',
174 'dbus/introspectable_client.h',
175 'dbus/modem_messaging_client.cc',
176 'dbus/modem_messaging_client.h',
177 'dbus/permission_broker_client.cc',
178 'dbus/permission_broker_client.h',
179 'dbus/power_manager_client.cc',
180 'dbus/power_manager_client.h',
181 'dbus/power_policy_controller.cc',
182 'dbus/power_policy_controller.h',
183 'dbus/session_manager_client.cc',
184 'dbus/session_manager_client.h',
185 'dbus/sms_client.cc',
187 'dbus/system_clock_client.cc',
188 'dbus/system_clock_client.h',
189 'dbus/update_engine_client.cc',
190 'dbus/update_engine_client.h',
191 'dbus/volume_state.cc',
192 'dbus/volume_state.h',
193 'disks/disk_mount_manager.cc',
194 'disks/disk_mount_manager.h',
195 'display/output_configurator.cc',
196 'display/output_configurator.h',
197 'display/output_util.cc',
198 'display/output_util.h',
199 'display/real_output_configurator_delegate.cc',
200 'display/real_output_configurator_delegate.h',
201 'ime/candidate_window.cc',
202 'ime/candidate_window.h',
203 'ime/component_extension_ime_manager.cc',
204 'ime/component_extension_ime_manager.h',
205 'ime/extension_ime_util.cc',
206 'ime/extension_ime_util.h',
207 'ime/ibus_bridge.cc',
209 'ime/ibus_daemon_controller.cc',
210 'ime/ibus_daemon_controller.h',
211 'ime/ibus_keymap.cc',
213 'ime/input_method_config.cc',
214 'ime/input_method_config.h',
215 'ime/input_method_delegate.h',
216 'ime/input_method_descriptor.cc',
217 'ime/input_method_descriptor.h',
218 'ime/input_method_manager.cc',
219 'ime/input_method_manager.h',
220 'ime/input_method_property.cc',
221 'ime/input_method_property.h',
222 'ime/input_method_whitelist.cc',
223 'ime/input_method_whitelist.h',
226 'login/login_state.cc',
227 'login/login_state.h',
228 'network/certificate_pattern.cc',
229 'network/certificate_pattern.h',
230 'network/client_cert_resolver.cc',
231 'network/client_cert_resolver.h',
232 'network/client_cert_util.cc',
233 'network/client_cert_util.h',
234 'network/device_state.cc',
235 'network/device_state.h',
236 'network/favorite_state.cc',
237 'network/favorite_state.h',
238 'network/geolocation_handler.cc',
239 'network/geolocation_handler.h',
240 'network/managed_network_configuration_handler.cc',
241 'network/managed_network_configuration_handler.h',
242 'network/managed_network_configuration_handler_impl.cc',
243 'network/managed_network_configuration_handler_impl.h',
244 'network/managed_state.cc',
245 'network/managed_state.h',
246 'network/network_activation_handler.cc',
247 'network/network_activation_handler.h',
248 'network/network_cert_migrator.cc',
249 'network/network_cert_migrator.h',
250 'network/network_change_notifier_chromeos.cc',
251 'network/network_change_notifier_chromeos.h',
252 'network/network_change_notifier_factory_chromeos.cc',
253 'network/network_change_notifier_factory_chromeos.h',
254 'network/network_configuration_handler.cc',
255 'network/network_configuration_handler.h',
256 'network/network_connection_handler.cc',
257 'network/network_connection_handler.h',
258 'network/network_device_handler.cc',
259 'network/network_device_handler.h',
260 'network/network_event_log.cc',
261 'network/network_event_log.h',
262 'network/network_handler.cc',
263 'network/network_handler.h',
264 'network/network_handler_callbacks.cc',
265 'network/network_handler_callbacks.h',
266 'network/network_ip_config.cc',
267 'network/network_ip_config.h',
268 'network/network_profile.cc',
269 'network/network_profile.h',
270 'network/network_profile_handler.cc',
271 'network/network_profile_handler.h',
272 'network/network_profile_observer.h',
273 'network/network_sms_handler.cc',
274 'network/network_sms_handler.h',
275 'network/network_state.cc',
276 'network/network_state.h',
277 'network/network_state_handler.cc',
278 'network/network_state_handler.h',
279 'network/network_state_handler_observer.cc',
280 'network/network_state_handler_observer.h',
281 'network/network_ui_data.cc',
282 'network/network_ui_data.h',
283 'network/network_util.cc',
284 'network/network_util.h',
285 'network/onc/onc_certificate_importer.h',
286 'network/onc/onc_certificate_importer_impl.cc',
287 'network/onc/onc_certificate_importer_impl.h',
288 'network/onc/onc_mapper.cc',
289 'network/onc/onc_mapper.h',
290 'network/onc/onc_merger.cc',
291 'network/onc/onc_merger.h',
292 'network/onc/onc_normalizer.cc',
293 'network/onc/onc_normalizer.h',
294 'network/onc/onc_signature.cc',
295 'network/onc/onc_signature.h',
296 'network/onc/onc_translation_tables.cc',
297 'network/onc/onc_translation_tables.h',
298 'network/onc/onc_translator.h',
299 'network/onc/onc_translator_onc_to_shill.cc',
300 'network/onc/onc_translator_shill_to_onc.cc',
301 'network/onc/onc_utils.cc',
302 'network/onc/onc_utils.h',
303 'network/onc/onc_validator.cc',
304 'network/onc/onc_validator.h',
305 'network/policy_util.cc',
306 'network/policy_util.h',
307 'network/policy_applicator.cc',
308 'network/policy_applicator.h',
309 'network/shill_property_handler.cc',
310 'network/shill_property_handler.h',
311 'network/shill_property_util.cc',
312 'network/shill_property_util.h',
313 'network/dhcp_proxy_script_fetcher_chromeos.cc',
314 'network/dhcp_proxy_script_fetcher_chromeos.h',
315 'process_proxy/process_output_watcher.cc',
316 'process_proxy/process_output_watcher.h',
317 'process_proxy/process_proxy.cc',
318 'process_proxy/process_proxy.h',
319 'process_proxy/process_proxy_registry.cc',
320 'process_proxy/process_proxy_registry.h',
321 'settings/cros_settings_names.cc',
322 'settings/cros_settings_names.h',
323 'settings/cros_settings_provider.cc',
324 'settings/cros_settings_provider.h',
325 'settings/timezone_settings.cc',
326 'settings/timezone_settings.h',
327 'system/name_value_pairs_parser.cc',
328 'system/name_value_pairs_parser.h',
329 'system/statistics_provider.cc',
330 'system/statistics_provider.h',
335 '../build/linux/system.gyp:glib',
350 'display/output_configurator.cc',
351 'display/output_configurator.h',
352 'display/output_util.cc',
353 'display/output_util.h',
354 'display/real_output_configurator_delegate.cc',
355 'display/real_output_configurator_delegate.h',
363 # This target contains mocks that can be used to write unit tests.
364 'target_name': 'chromeos_test_support',
365 'type': 'static_library',
367 '../build/linux/system.gyp:dbus',
368 '../testing/gmock.gyp:gmock',
370 'chromeos_test_support_without_gmock',
371 'power_manager_proto',
374 'attestation/mock_attestation_flow.cc',
375 'attestation/mock_attestation_flow.h',
376 'chromeos_test_utils.cc',
377 'chromeos_test_utils.h',
378 'cryptohome/mock_async_method_caller.cc',
379 'cryptohome/mock_async_method_caller.h',
380 'dbus/mock_cryptohome_client.cc',
381 'dbus/mock_cryptohome_client.h',
382 'dbus/mock_dbus_thread_manager.cc',
383 'dbus/mock_dbus_thread_manager.h',
384 'dbus/mock_session_manager_client.cc',
385 'dbus/mock_session_manager_client.h',
386 'dbus/mock_shill_manager_client.cc',
387 'dbus/mock_shill_manager_client.h',
388 'dbus/mock_shill_profile_client.cc',
389 'dbus/mock_shill_profile_client.h',
390 'dbus/mock_shill_service_client.cc',
391 'dbus/mock_shill_service_client.h',
392 'disks/mock_disk_mount_manager.cc',
393 'disks/mock_disk_mount_manager.h',
394 'ime/mock_component_extension_ime_manager_delegate.cc',
395 'ime/mock_component_extension_ime_manager_delegate.h',
396 'network/mock_managed_network_configuration_handler.cc',
397 'network/mock_managed_network_configuration_handler.h',
398 'network/onc/mock_certificate_importer.cc',
399 'network/onc/mock_certificate_importer.h',
400 'network/onc/onc_test_utils.cc',
401 'network/onc/onc_test_utils.h',
402 'system/mock_statistics_provider.cc',
403 'system/mock_statistics_provider.h',
410 'target_name': 'chromeos_test_support_without_gmock',
411 'type': 'static_library',
413 '../build/linux/system.gyp:dbus',
414 '../crypto/crypto.gyp:crypto',
415 '../dbus/dbus.gyp:dbus',
417 'power_manager_proto',
420 'dbus/fake_cros_disks_client.cc',
421 'dbus/fake_cros_disks_client.h',
422 'dbus/fake_dbus_thread_manager.cc',
423 'dbus/fake_dbus_thread_manager.h',
424 'dbus/fake_power_manager_client.cc',
425 'dbus/fake_power_manager_client.h',
426 'dbus/fake_session_manager_client.cc',
427 'dbus/fake_session_manager_client.h',
428 'dbus/fake_shill_manager_client.cc',
429 'dbus/fake_shill_manager_client.h',
430 'dbus/fake_update_engine_client.cc',
431 'dbus/fake_update_engine_client.h',
432 'dbus/ibus/mock_ibus_client.cc',
433 'dbus/ibus/mock_ibus_client.h',
434 'dbus/ibus/mock_ibus_engine_factory_service.cc',
435 'dbus/ibus/mock_ibus_engine_factory_service.h',
436 'dbus/ibus/mock_ibus_engine_service.cc',
437 'dbus/ibus/mock_ibus_engine_service.h',
438 'ime/fake_input_method_delegate.cc',
439 'ime/fake_input_method_delegate.h',
440 'ime/mock_ibus_daemon_controller.cc',
441 'ime/mock_ibus_daemon_controller.h',
442 'ime/mock_ime_candidate_window_handler.cc',
443 'ime/mock_ime_candidate_window_handler.h',
444 'ime/mock_ime_engine_handler.cc',
445 'ime/mock_ime_engine_handler.h',
446 'ime/mock_ime_input_context_handler.cc',
447 'ime/mock_ime_input_context_handler.h',
448 'ime/mock_ime_property_handler.cc',
449 'ime/mock_ime_property_handler.h',
450 'ime/mock_xkeyboard.cc',
451 'ime/mock_xkeyboard.h',
458 'target_name': 'chromeos_unittests',
459 'type': 'executable',
461 '../base/base.gyp:run_all_unittests',
462 '../base/base.gyp:test_support_base',
463 '../build/linux/system.gyp:dbus',
464 '../build/linux/system.gyp:ssl',
465 '../components/components.gyp:onc_component',
466 '../crypto/crypto.gyp:crypto',
467 '../dbus/dbus.gyp:dbus_test_support',
468 '../net/net.gyp:net',
469 '../net/net.gyp:net_test_support',
470 '../testing/gmock.gyp:gmock',
471 '../testing/gtest.gyp:gtest',
472 '../url/url.gyp:url_lib',
473 'chromeos_test_support',
474 'power_manager_proto',
477 'app_mode/kiosk_oem_manifest_parser_unittest.cc',
478 'attestation/attestation_flow_unittest.cc',
479 'audio/cras_audio_handler_unittest.cc',
480 'cryptohome/system_salt_getter_unittest.cc',
481 'dbus/blocking_method_caller_unittest.cc',
482 'dbus/cros_disks_client_unittest.cc',
483 'dbus/gsm_sms_client_unittest.cc',
484 'dbus/ibus/ibus_client_unittest.cc',
485 'dbus/ibus/ibus_component_unittest.cc',
486 'dbus/ibus/ibus_engine_factory_service_unittest.cc',
487 'dbus/ibus/ibus_object_unittest.cc',
488 'dbus/ibus/ibus_text_unittest.cc',
489 'dbus/introspectable_client_unittest.cc',
490 'dbus/modem_messaging_client_unittest.cc',
491 'dbus/nfc_client_unittest.cc',
492 'dbus/power_policy_controller_unittest.cc',
493 'dbus/shill_client_unittest_base.cc',
494 'dbus/shill_client_unittest_base.h',
495 'dbus/shill_device_client_unittest.cc',
496 'dbus/shill_ipconfig_client_unittest.cc',
497 'dbus/shill_manager_client_unittest.cc',
498 'dbus/shill_profile_client_unittest.cc',
499 'dbus/shill_service_client_unittest.cc',
500 'disks/disk_mount_manager_unittest.cc',
501 'display/output_configurator_unittest.cc',
502 'display/output_util_unittest.cc',
503 'ime/candidate_window_unittest.cc',
504 'ime/component_extension_ime_manager_unittest.cc',
505 'ime/extension_ime_util_unittest.cc',
506 'ime/input_method_manager.h',
507 'ime/input_method_property_unittest.cc',
508 'ime/input_method_whitelist_unittest.cc',
509 'ime/xkeyboard_unittest.cc',
510 'login/login_state_unittest.cc',
511 'network/client_cert_resolver_unittest.cc',
512 'network/geolocation_handler_unittest.cc',
513 'network/managed_network_configuration_handler_unittest.cc',
514 'network/network_cert_migrator_unittest.cc',
515 'network/network_change_notifier_chromeos_unittest.cc',
516 'network/network_configuration_handler_unittest.cc',
517 'network/network_connection_handler_unittest.cc',
518 'network/network_device_handler_unittest.cc',
519 'network/network_event_log_unittest.cc',
520 'network/network_profile_handler_stub.h',
521 'network/network_sms_handler_unittest.cc',
522 'network/network_state_handler_unittest.cc',
523 'network/network_state_unittest.cc',
524 'network/network_ui_data_unittest.cc',
525 'network/network_util_unittest.cc',
526 'network/onc/onc_certificate_importer_impl_unittest.cc',
527 'network/onc/onc_merger_unittest.cc',
528 'network/onc/onc_normalizer_unittest.cc',
529 'network/onc/onc_translator_unittest.cc',
530 'network/onc/onc_utils_unittest.cc',
531 'network/onc/onc_validator_unittest.cc',
532 'network/shill_property_handler_unittest.cc',
533 'network/shill_property_util_unittest.cc',
534 'process_proxy/process_output_watcher_unittest.cc',
535 'process_proxy/process_proxy_unittest.cc',
536 'system/name_value_pairs_parser_unittest.cc',
542 [ 'linux_use_tcmalloc==1', {
544 '../base/allocator/allocator.gyp:allocator',
551 # Protobuf compiler/generator for power-manager related protocol buffers.
552 'target_name': 'power_manager_proto',
553 'type': 'static_library',
555 '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
556 '../third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto',
557 '../third_party/cros_system_api/dbus/power_manager/policy.proto',
558 '../third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto',
559 '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
562 'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
563 'proto_out_dir': 'chromeos/dbus/power_manager',
565 'includes': ['../build/protoc.gypi'],