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 '../crypto/crypto.gyp:crypto',
21 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
22 '../build/linux/system.gyp:dbus',
23 '../build/linux/system.gyp:ssl',
24 '../dbus/dbus.gyp:dbus',
26 '../third_party/libxml/libxml.gyp:libxml',
27 '../url/url.gyp:url_lib',
28 'ime/input_method.gyp:gencode',
29 'power_manager_proto',
32 'CHROMEOS_IMPLEMENTATION',
35 'app_mode/kiosk_oem_manifest_parser.cc',
36 'app_mode/kiosk_oem_manifest_parser.h',
37 'audio/audio_device.cc',
38 'audio/audio_device.h',
39 'audio/audio_devices_pref_handler.h',
40 'audio/audio_pref_observer.h',
41 'audio/cras_audio_handler.cc',
42 'audio/cras_audio_handler.h',
43 'audio/audio_devices_pref_handler_stub.cc',
44 'audio/audio_devices_pref_handler_stub.h',
45 'attestation/attestation_constants.cc',
46 'attestation/attestation_constants.h',
47 'attestation/attestation_flow.cc',
48 'attestation/attestation_flow.h',
51 'chromeos_constants.cc',
52 'chromeos_constants.h',
56 'chromeos_switches.cc',
57 'chromeos_switches.h',
58 'cryptohome/async_method_caller.cc',
59 'cryptohome/async_method_caller.h',
60 'cryptohome/cryptohome_library.cc',
61 'cryptohome/cryptohome_library.h',
64 'dbus/blocking_method_caller.cc',
65 'dbus/blocking_method_caller.h',
66 'dbus/bluetooth_adapter_client.cc',
67 'dbus/bluetooth_adapter_client.h',
68 'dbus/bluetooth_agent_manager_client.cc',
69 'dbus/bluetooth_agent_manager_client.h',
70 'dbus/bluetooth_agent_service_provider.cc',
71 'dbus/bluetooth_agent_service_provider.h',
72 'dbus/bluetooth_device_client.cc',
73 'dbus/bluetooth_device_client.h',
74 'dbus/bluetooth_input_client.cc',
75 'dbus/bluetooth_input_client.h',
76 'dbus/bluetooth_profile_manager_client.cc',
77 'dbus/bluetooth_profile_manager_client.h',
78 'dbus/bluetooth_profile_service_provider.cc',
79 'dbus/bluetooth_profile_service_provider.h',
80 'dbus/cras_audio_client.cc',
81 'dbus/cras_audio_client.h',
82 'dbus/cras_audio_client_stub_impl.cc',
83 'dbus/cras_audio_client_stub_impl.h',
84 'dbus/cros_disks_client.cc',
85 'dbus/cros_disks_client.h',
86 'dbus/cryptohome_client.cc',
87 'dbus/cryptohome_client.h',
88 'dbus/cryptohome_client_stub.cc',
89 'dbus/cryptohome_client_stub.h',
90 'dbus/dbus_client_implementation_type.h',
91 'dbus/dbus_method_call_status.h',
92 'dbus/dbus_thread_manager.cc',
93 'dbus/dbus_thread_manager.h',
94 'dbus/debug_daemon_client.cc',
95 'dbus/debug_daemon_client.h',
96 'dbus/fake_bluetooth_adapter_client.cc',
97 'dbus/fake_bluetooth_adapter_client.h',
98 'dbus/fake_bluetooth_agent_manager_client.cc',
99 'dbus/fake_bluetooth_agent_manager_client.h',
100 'dbus/fake_bluetooth_agent_service_provider.cc',
101 'dbus/fake_bluetooth_agent_service_provider.h',
102 'dbus/fake_bluetooth_device_client.cc',
103 'dbus/fake_bluetooth_device_client.h',
104 'dbus/fake_bluetooth_input_client.cc',
105 'dbus/fake_bluetooth_input_client.h',
106 'dbus/fake_bluetooth_profile_manager_client.cc',
107 'dbus/fake_bluetooth_profile_manager_client.h',
108 'dbus/fake_bluetooth_profile_service_provider.cc',
109 'dbus/fake_bluetooth_profile_service_provider.h',
110 'dbus/fake_gsm_sms_client.cc',
111 'dbus/fake_gsm_sms_client.h',
112 'dbus/fake_image_burner_client.cc',
113 'dbus/fake_image_burner_client.h',
114 'dbus/fake_system_clock_client.cc',
115 'dbus/fake_system_clock_client.h',
116 'dbus/gsm_sms_client.cc',
117 'dbus/gsm_sms_client.h',
118 'dbus/shill_client_helper.cc',
119 'dbus/shill_client_helper.h',
120 'dbus/shill_device_client.cc',
121 'dbus/shill_device_client.h',
122 'dbus/shill_device_client_stub.cc',
123 'dbus/shill_device_client_stub.h',
124 'dbus/shill_ipconfig_client.cc',
125 'dbus/shill_ipconfig_client.h',
126 'dbus/shill_ipconfig_client_stub.cc',
127 'dbus/shill_ipconfig_client_stub.h',
128 'dbus/shill_manager_client.cc',
129 'dbus/shill_manager_client.h',
130 'dbus/shill_manager_client_stub.cc',
131 'dbus/shill_manager_client_stub.h',
132 'dbus/shill_profile_client.cc',
133 'dbus/shill_profile_client.h',
134 'dbus/shill_profile_client_stub.cc',
135 'dbus/shill_profile_client_stub.h',
136 'dbus/shill_service_client.cc',
137 'dbus/shill_service_client.h',
138 'dbus/shill_service_client_stub.cc',
139 'dbus/shill_service_client_stub.h',
140 'dbus/ibus/ibus_client.cc',
141 'dbus/ibus/ibus_client.h',
142 'dbus/ibus/ibus_component.cc',
143 'dbus/ibus/ibus_component.h',
144 'dbus/ibus/ibus_constants.h',
145 'dbus/ibus/ibus_engine_service.cc',
146 'dbus/ibus/ibus_engine_service.h',
147 'dbus/ibus/ibus_engine_factory_service.cc',
148 'dbus/ibus/ibus_engine_factory_service.h',
149 'dbus/ibus/ibus_lookup_table.cc',
150 'dbus/ibus/ibus_lookup_table.h',
151 'dbus/ibus/ibus_object.cc',
152 'dbus/ibus/ibus_object.h',
153 'dbus/ibus/ibus_property.cc',
154 'dbus/ibus/ibus_property.h',
155 'dbus/ibus/ibus_text.cc',
156 'dbus/ibus/ibus_text.h',
157 'dbus/ibus/ibus_input_context_client.cc',
158 'dbus/ibus/ibus_input_context_client.h',
159 'dbus/image_burner_client.cc',
160 'dbus/image_burner_client.h',
161 'dbus/introspectable_client.cc',
162 'dbus/introspectable_client.h',
163 'dbus/modem_messaging_client.cc',
164 'dbus/modem_messaging_client.h',
165 'dbus/permission_broker_client.cc',
166 'dbus/permission_broker_client.h',
167 'dbus/power_manager_client.cc',
168 'dbus/power_manager_client.h',
169 'dbus/power_policy_controller.cc',
170 'dbus/power_policy_controller.h',
171 'dbus/session_manager_client.cc',
172 'dbus/session_manager_client.h',
173 'dbus/sms_client.cc',
175 'dbus/system_clock_client.cc',
176 'dbus/system_clock_client.h',
177 'dbus/update_engine_client.cc',
178 'dbus/update_engine_client.h',
179 'dbus/volume_state.cc',
180 'dbus/volume_state.h',
181 'disks/disk_mount_manager.cc',
182 'disks/disk_mount_manager.h',
183 'display/output_configurator.cc',
184 'display/output_configurator.h',
185 'display/output_util.cc',
186 'display/output_util.h',
187 'display/real_output_configurator_delegate.cc',
188 'display/real_output_configurator_delegate.h',
189 'ime/component_extension_ime_manager.cc',
190 'ime/component_extension_ime_manager.h',
191 'ime/extension_ime_util.cc',
192 'ime/extension_ime_util.h',
193 'ime/ibus_bridge.cc',
195 'ime/ibus_daemon_controller.cc',
196 'ime/ibus_daemon_controller.h',
197 'ime/ibus_keymap.cc',
199 'ime/input_method_config.cc',
200 'ime/input_method_config.h',
201 'ime/input_method_delegate.h',
202 'ime/input_method_descriptor.cc',
203 'ime/input_method_descriptor.h',
204 'ime/input_method_manager.cc',
205 'ime/input_method_manager.h',
206 'ime/input_method_property.cc',
207 'ime/input_method_property.h',
208 'ime/input_method_whitelist.cc',
209 'ime/input_method_whitelist.h',
212 'login/login_state.cc',
213 'login/login_state.h',
214 'network/certificate_pattern.cc',
215 'network/certificate_pattern.h',
216 'network/client_cert_resolver.cc',
217 'network/client_cert_resolver.h',
218 'network/client_cert_util.cc',
219 'network/client_cert_util.h',
220 'network/device_state.cc',
221 'network/device_state.h',
222 'network/favorite_state.cc',
223 'network/favorite_state.h',
224 'network/geolocation_handler.cc',
225 'network/geolocation_handler.h',
226 'network/managed_network_configuration_handler.cc',
227 'network/managed_network_configuration_handler.h',
228 'network/managed_network_configuration_handler_impl.cc',
229 'network/managed_network_configuration_handler_impl.h',
230 'network/managed_state.cc',
231 'network/managed_state.h',
232 'network/network_activation_handler.cc',
233 'network/network_activation_handler.h',
234 'network/network_cert_migrator.cc',
235 'network/network_cert_migrator.h',
236 'network/network_change_notifier_chromeos.cc',
237 'network/network_change_notifier_chromeos.h',
238 'network/network_change_notifier_factory_chromeos.cc',
239 'network/network_change_notifier_factory_chromeos.h',
240 'network/network_configuration_handler.cc',
241 'network/network_configuration_handler.h',
242 'network/network_connection_handler.cc',
243 'network/network_connection_handler.h',
244 'network/network_device_handler.cc',
245 'network/network_device_handler.h',
246 'network/network_event_log.cc',
247 'network/network_event_log.h',
248 'network/network_handler.cc',
249 'network/network_handler.h',
250 'network/network_handler_callbacks.cc',
251 'network/network_handler_callbacks.h',
252 'network/network_ip_config.cc',
253 'network/network_ip_config.h',
254 'network/network_profile.cc',
255 'network/network_profile.h',
256 'network/network_profile_handler.cc',
257 'network/network_profile_handler.h',
258 'network/network_profile_observer.h',
259 'network/network_sms_handler.cc',
260 'network/network_sms_handler.h',
261 'network/network_state.cc',
262 'network/network_state.h',
263 'network/network_state_handler.cc',
264 'network/network_state_handler.h',
265 'network/network_state_handler_observer.cc',
266 'network/network_state_handler_observer.h',
267 'network/network_ui_data.cc',
268 'network/network_ui_data.h',
269 'network/network_util.cc',
270 'network/network_util.h',
271 'network/onc/onc_certificate_importer.h',
272 'network/onc/onc_certificate_importer_impl.cc',
273 'network/onc/onc_certificate_importer_impl.h',
274 'network/onc/onc_constants.cc',
275 'network/onc/onc_constants.h',
276 'network/onc/onc_mapper.cc',
277 'network/onc/onc_mapper.h',
278 'network/onc/onc_merger.cc',
279 'network/onc/onc_merger.h',
280 'network/onc/onc_normalizer.cc',
281 'network/onc/onc_normalizer.h',
282 'network/onc/onc_signature.cc',
283 'network/onc/onc_signature.h',
284 'network/onc/onc_translation_tables.cc',
285 'network/onc/onc_translation_tables.h',
286 'network/onc/onc_translator.h',
287 'network/onc/onc_translator_onc_to_shill.cc',
288 'network/onc/onc_translator_shill_to_onc.cc',
289 'network/onc/onc_utils.cc',
290 'network/onc/onc_utils.h',
291 'network/onc/onc_validator.cc',
292 'network/onc/onc_validator.h',
293 'network/policy_util.cc',
294 'network/policy_util.h',
295 'network/policy_applicator.cc',
296 'network/policy_applicator.h',
297 'network/shill_property_handler.cc',
298 'network/shill_property_handler.h',
299 'network/shill_property_util.cc',
300 'network/shill_property_util.h',
301 'network/dhcp_proxy_script_fetcher_chromeos.cc',
302 'network/dhcp_proxy_script_fetcher_chromeos.h',
303 'process_proxy/process_output_watcher.cc',
304 'process_proxy/process_output_watcher.h',
305 'process_proxy/process_proxy.cc',
306 'process_proxy/process_proxy.h',
307 'process_proxy/process_proxy_registry.cc',
308 'process_proxy/process_proxy_registry.h',
309 'system/name_value_pairs_parser.cc',
310 'system/name_value_pairs_parser.h',
315 '../build/linux/system.gyp:glib',
330 'display/output_configurator.cc',
331 'display/output_configurator.h',
332 'display/output_util.cc',
333 'display/output_util.h',
334 'display/real_output_configurator_delegate.cc',
335 'display/real_output_configurator_delegate.h',
343 # This target contains mocks that can be used to write unit tests.
344 'target_name': 'chromeos_test_support',
345 'type': 'static_library',
347 '../build/linux/system.gyp:dbus',
348 '../testing/gmock.gyp:gmock',
350 'chromeos_test_support_without_gmock',
351 'power_manager_proto',
354 'attestation/mock_attestation_flow.cc',
355 'attestation/mock_attestation_flow.h',
356 'chromeos_test_utils.cc',
357 'chromeos_test_utils.h',
358 'cryptohome/mock_async_method_caller.cc',
359 'cryptohome/mock_async_method_caller.h',
360 'cryptohome/mock_cryptohome_library.cc',
361 'cryptohome/mock_cryptohome_library.h',
362 'dbus/mock_cryptohome_client.cc',
363 'dbus/mock_cryptohome_client.h',
364 'dbus/mock_dbus_thread_manager.cc',
365 'dbus/mock_dbus_thread_manager.h',
366 'dbus/mock_gsm_sms_client.cc',
367 'dbus/mock_gsm_sms_client.h',
368 'dbus/mock_session_manager_client.cc',
369 'dbus/mock_session_manager_client.h',
370 'dbus/mock_shill_device_client.cc',
371 'dbus/mock_shill_device_client.h',
372 'dbus/mock_shill_ipconfig_client.cc',
373 'dbus/mock_shill_ipconfig_client.h',
374 'dbus/mock_shill_manager_client.cc',
375 'dbus/mock_shill_manager_client.h',
376 'dbus/mock_shill_profile_client.cc',
377 'dbus/mock_shill_profile_client.h',
378 'dbus/mock_shill_service_client.cc',
379 'dbus/mock_shill_service_client.h',
380 'dbus/shill_profile_client_stub.cc',
381 'dbus/shill_profile_client_stub.h',
382 'disks/mock_disk_mount_manager.cc',
383 'disks/mock_disk_mount_manager.h',
384 'ime/mock_component_extension_ime_manager_delegate.cc',
385 'ime/mock_component_extension_ime_manager_delegate.h',
386 'network/mock_managed_network_configuration_handler.cc',
387 'network/mock_managed_network_configuration_handler.h',
388 'network/onc/mock_certificate_importer.cc',
389 'network/onc/mock_certificate_importer.h',
390 'network/onc/onc_test_utils.cc',
391 'network/onc/onc_test_utils.h',
398 'target_name': 'chromeos_test_support_without_gmock',
399 'type': 'static_library',
401 '../build/linux/system.gyp:dbus',
402 '../dbus/dbus.gyp:dbus',
404 'power_manager_proto',
407 'dbus/fake_cros_disks_client.cc',
408 'dbus/fake_cros_disks_client.h',
409 'dbus/fake_cryptohome_client.cc',
410 'dbus/fake_cryptohome_client.h',
411 'dbus/fake_gsm_sms_client.cc',
412 'dbus/fake_gsm_sms_client.h',
413 'dbus/fake_image_burner_client.cc',
414 'dbus/fake_image_burner_client.h',
415 'dbus/fake_power_manager_client.cc',
416 'dbus/fake_power_manager_client.h',
417 'dbus/fake_session_manager_client.cc',
418 'dbus/fake_session_manager_client.h',
419 'dbus/fake_shill_device_client.cc',
420 'dbus/fake_shill_device_client.h',
421 'dbus/fake_shill_manager_client.cc',
422 'dbus/fake_shill_manager_client.h',
423 'dbus/fake_system_clock_client.cc',
424 'dbus/fake_system_clock_client.h',
425 'dbus/fake_update_engine_client.cc',
426 'dbus/fake_update_engine_client.h',
427 'dbus/mock_dbus_thread_manager_without_gmock.cc',
428 'dbus/mock_dbus_thread_manager_without_gmock.h',
429 'dbus/ibus/mock_ibus_client.cc',
430 'dbus/ibus/mock_ibus_client.h',
431 'dbus/ibus/mock_ibus_input_context_client.cc',
432 'dbus/ibus/mock_ibus_input_context_client.h',
433 'dbus/ibus/mock_ibus_engine_factory_service.cc',
434 'dbus/ibus/mock_ibus_engine_factory_service.h',
435 'dbus/ibus/mock_ibus_engine_service.cc',
436 'dbus/ibus/mock_ibus_engine_service.h',
437 'ime/fake_input_method_delegate.cc',
438 'ime/fake_input_method_delegate.h',
439 'ime/mock_ibus_daemon_controller.cc',
440 'ime/mock_ibus_daemon_controller.h',
441 'ime/mock_ime_candidate_window_handler.cc',
442 'ime/mock_ime_candidate_window_handler.h',
443 'ime/mock_ime_engine_handler.cc',
444 'ime/mock_ime_engine_handler.h',
445 'ime/mock_ime_input_context_handler.cc',
446 'ime/mock_ime_input_context_handler.h',
447 'ime/mock_ime_property_handler.cc',
448 'ime/mock_ime_property_handler.h',
449 'ime/mock_xkeyboard.cc',
450 'ime/mock_xkeyboard.h',
457 'target_name': 'chromeos_unittests',
458 'type': 'executable',
460 '../base/base.gyp:run_all_unittests',
461 '../base/base.gyp:test_support_base',
462 '../build/linux/system.gyp:dbus',
463 '../build/linux/system.gyp:ssl',
464 '../crypto/crypto.gyp:crypto',
465 '../dbus/dbus.gyp:dbus_test_support',
466 '../net/net.gyp:net',
467 '../net/net.gyp:net_test_support',
468 '../testing/gmock.gyp:gmock',
469 '../testing/gtest.gyp:gtest',
470 '../url/url.gyp:url_lib',
471 'chromeos_test_support',
472 'power_manager_proto',
475 'app_mode/kiosk_oem_manifest_parser_unittest.cc',
476 'attestation/attestation_flow_unittest.cc',
477 'audio/cras_audio_handler_unittest.cc',
478 'dbus/blocking_method_caller_unittest.cc',
479 'dbus/cros_disks_client_unittest.cc',
480 'dbus/gsm_sms_client_unittest.cc',
481 'dbus/ibus/ibus_client_unittest.cc',
482 'dbus/ibus/ibus_component_unittest.cc',
483 'dbus/ibus/ibus_engine_factory_service_unittest.cc',
484 'dbus/ibus/ibus_input_context_client_unittest.cc',
485 'dbus/ibus/ibus_lookup_table_unittest.cc',
486 'dbus/ibus/ibus_object_unittest.cc',
487 'dbus/ibus/ibus_property_unittest.cc',
488 'dbus/ibus/ibus_text_unittest.cc',
489 'dbus/introspectable_client_unittest.cc',
490 'dbus/modem_messaging_client_unittest.cc',
491 'dbus/power_policy_controller_unittest.cc',
492 'dbus/shill_client_unittest_base.cc',
493 'dbus/shill_client_unittest_base.h',
494 'dbus/shill_device_client_unittest.cc',
495 'dbus/shill_ipconfig_client_unittest.cc',
496 'dbus/shill_manager_client_unittest.cc',
497 'dbus/shill_profile_client_unittest.cc',
498 'dbus/shill_service_client_unittest.cc',
499 'disks/disk_mount_manager_unittest.cc',
500 'display/output_configurator_unittest.cc',
501 'display/output_util_unittest.cc',
502 'ime/component_extension_ime_manager_unittest.cc',
503 'ime/extension_ime_util_unittest.cc',
504 'ime/input_method_manager.h',
505 'ime/input_method_property_unittest.cc',
506 'ime/input_method_whitelist_unittest.cc',
507 'ime/xkeyboard_unittest.cc',
508 'login/login_state_unittest.cc',
509 'network/client_cert_resolver_unittest.cc',
510 'network/geolocation_handler_unittest.cc',
511 'network/managed_network_configuration_handler_unittest.cc',
512 'network/network_cert_migrator_unittest.cc',
513 'network/network_change_notifier_chromeos_unittest.cc',
514 'network/network_configuration_handler_unittest.cc',
515 'network/network_connection_handler_unittest.cc',
516 'network/network_device_handler_unittest.cc',
517 'network/network_event_log_unittest.cc',
518 'network/network_profile_handler_stub.h',
519 'network/network_sms_handler_unittest.cc',
520 'network/network_state_handler_unittest.cc',
521 'network/network_state_unittest.cc',
522 'network/network_ui_data_unittest.cc',
523 'network/network_util_unittest.cc',
524 'network/onc/onc_certificate_importer_impl_unittest.cc',
525 'network/onc/onc_merger_unittest.cc',
526 'network/onc/onc_normalizer_unittest.cc',
527 'network/onc/onc_translator_unittest.cc',
528 'network/onc/onc_utils_unittest.cc',
529 'network/onc/onc_validator_unittest.cc',
530 'network/shill_property_handler_unittest.cc',
531 'network/shill_property_util_unittest.cc',
532 'process_proxy/process_output_watcher_unittest.cc',
533 'process_proxy/process_proxy_unittest.cc',
534 'system/name_value_pairs_parser_unittest.cc',
540 [ 'linux_use_tcmalloc==1', {
542 '../base/allocator/allocator.gyp:allocator',
549 # Protobuf compiler/generator for power-manager related protocol buffers.
550 'target_name': 'power_manager_proto',
551 'type': 'static_library',
553 '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
554 '../third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto',
555 '../third_party/cros_system_api/dbus/power_manager/policy.proto',
556 '../third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto',
557 '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
560 'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
561 'proto_out_dir': 'chromeos/dbus/power_manager',
563 'includes': ['../build/protoc.gypi'],