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/cros_network_functions.cc',
221 'network/cros_network_functions.h',
222 'network/device_state.cc',
223 'network/device_state.h',
224 'network/favorite_state.cc',
225 'network/favorite_state.h',
226 'network/geolocation_handler.cc',
227 'network/geolocation_handler.h',
228 'network/managed_network_configuration_handler.cc',
229 'network/managed_network_configuration_handler.h',
230 'network/managed_network_configuration_handler_impl.cc',
231 'network/managed_network_configuration_handler_impl.h',
232 'network/managed_state.cc',
233 'network/managed_state.h',
234 'network/network_activation_handler.cc',
235 'network/network_activation_handler.h',
236 'network/network_cert_migrator.cc',
237 'network/network_cert_migrator.h',
238 'network/network_change_notifier_chromeos.cc',
239 'network/network_change_notifier_chromeos.h',
240 'network/network_change_notifier_factory_chromeos.cc',
241 'network/network_change_notifier_factory_chromeos.h',
242 'network/network_configuration_handler.cc',
243 'network/network_configuration_handler.h',
244 'network/network_connection_handler.cc',
245 'network/network_connection_handler.h',
246 'network/network_device_handler.cc',
247 'network/network_device_handler.h',
248 'network/network_event_log.cc',
249 'network/network_event_log.h',
250 'network/network_handler.cc',
251 'network/network_handler.h',
252 'network/network_handler_callbacks.cc',
253 'network/network_handler_callbacks.h',
254 'network/network_ip_config.cc',
255 'network/network_ip_config.h',
256 'network/network_profile.cc',
257 'network/network_profile.h',
258 'network/network_profile_handler.cc',
259 'network/network_profile_handler.h',
260 'network/network_profile_observer.h',
261 'network/network_sms_handler.cc',
262 'network/network_sms_handler.h',
263 'network/network_state.cc',
264 'network/network_state.h',
265 'network/network_state_handler.cc',
266 'network/network_state_handler.h',
267 'network/network_state_handler_observer.cc',
268 'network/network_state_handler_observer.h',
269 'network/network_ui_data.cc',
270 'network/network_ui_data.h',
271 'network/network_util.cc',
272 'network/network_util.h',
273 'network/onc/onc_certificate_importer.h',
274 'network/onc/onc_certificate_importer_impl.cc',
275 'network/onc/onc_certificate_importer_impl.h',
276 'network/onc/onc_constants.cc',
277 'network/onc/onc_constants.h',
278 'network/onc/onc_mapper.cc',
279 'network/onc/onc_mapper.h',
280 'network/onc/onc_merger.cc',
281 'network/onc/onc_merger.h',
282 'network/onc/onc_normalizer.cc',
283 'network/onc/onc_normalizer.h',
284 'network/onc/onc_signature.cc',
285 'network/onc/onc_signature.h',
286 'network/onc/onc_translation_tables.cc',
287 'network/onc/onc_translation_tables.h',
288 'network/onc/onc_translator.h',
289 'network/onc/onc_translator_onc_to_shill.cc',
290 'network/onc/onc_translator_shill_to_onc.cc',
291 'network/onc/onc_utils.cc',
292 'network/onc/onc_utils.h',
293 'network/onc/onc_validator.cc',
294 'network/onc/onc_validator.h',
295 'network/shill_property_handler.cc',
296 'network/shill_property_handler.h',
297 'network/sms_watcher.cc',
298 'network/sms_watcher.h',
299 'network/dhcp_proxy_script_fetcher_chromeos.cc',
300 'network/dhcp_proxy_script_fetcher_chromeos.h',
301 'process_proxy/process_output_watcher.cc',
302 'process_proxy/process_output_watcher.h',
303 'process_proxy/process_proxy.cc',
304 'process_proxy/process_proxy.h',
305 'process_proxy/process_proxy_registry.cc',
306 'process_proxy/process_proxy_registry.h',
307 'system/name_value_pairs_parser.cc',
308 'system/name_value_pairs_parser.h',
313 '../build/linux/system.gyp:glib',
328 'display/output_configurator.cc',
329 'display/output_configurator.h',
330 'display/output_util.cc',
331 'display/output_util.h',
332 'display/real_output_configurator_delegate.cc',
333 'display/real_output_configurator_delegate.h',
341 # This target contains mocks that can be used to write unit tests.
342 'target_name': 'chromeos_test_support',
343 'type': 'static_library',
345 '../build/linux/system.gyp:dbus',
346 '../testing/gmock.gyp:gmock',
348 'chromeos_test_support_without_gmock',
349 'power_manager_proto',
352 'attestation/mock_attestation_flow.cc',
353 'attestation/mock_attestation_flow.h',
354 'chromeos_test_utils.cc',
355 'chromeos_test_utils.h',
356 'cryptohome/mock_async_method_caller.cc',
357 'cryptohome/mock_async_method_caller.h',
358 'cryptohome/mock_cryptohome_library.cc',
359 'cryptohome/mock_cryptohome_library.h',
360 'dbus/mock_cryptohome_client.cc',
361 'dbus/mock_cryptohome_client.h',
362 'dbus/mock_dbus_thread_manager.cc',
363 'dbus/mock_dbus_thread_manager.h',
364 'dbus/mock_gsm_sms_client.cc',
365 'dbus/mock_gsm_sms_client.h',
366 'dbus/mock_session_manager_client.cc',
367 'dbus/mock_session_manager_client.h',
368 'dbus/mock_shill_device_client.cc',
369 'dbus/mock_shill_device_client.h',
370 'dbus/mock_shill_ipconfig_client.cc',
371 'dbus/mock_shill_ipconfig_client.h',
372 'dbus/mock_shill_manager_client.cc',
373 'dbus/mock_shill_manager_client.h',
374 'dbus/mock_shill_profile_client.cc',
375 'dbus/mock_shill_profile_client.h',
376 'dbus/mock_shill_service_client.cc',
377 'dbus/mock_shill_service_client.h',
378 'dbus/shill_profile_client_stub.cc',
379 'dbus/shill_profile_client_stub.h',
380 'disks/mock_disk_mount_manager.cc',
381 'disks/mock_disk_mount_manager.h',
382 'ime/mock_component_extension_ime_manager_delegate.cc',
383 'ime/mock_component_extension_ime_manager_delegate.h',
384 'network/mock_managed_network_configuration_handler.cc',
385 'network/mock_managed_network_configuration_handler.h',
386 'network/onc/mock_certificate_importer.cc',
387 'network/onc/mock_certificate_importer.h',
388 'network/onc/onc_test_utils.cc',
389 'network/onc/onc_test_utils.h',
396 'target_name': 'chromeos_test_support_without_gmock',
397 'type': 'static_library',
399 '../build/linux/system.gyp:dbus',
400 '../dbus/dbus.gyp:dbus',
402 'power_manager_proto',
405 'dbus/fake_cros_disks_client.cc',
406 'dbus/fake_cros_disks_client.h',
407 'dbus/fake_cryptohome_client.cc',
408 'dbus/fake_cryptohome_client.h',
409 'dbus/fake_gsm_sms_client.cc',
410 'dbus/fake_gsm_sms_client.h',
411 'dbus/fake_image_burner_client.cc',
412 'dbus/fake_image_burner_client.h',
413 'dbus/fake_power_manager_client.cc',
414 'dbus/fake_power_manager_client.h',
415 'dbus/fake_session_manager_client.cc',
416 'dbus/fake_session_manager_client.h',
417 'dbus/fake_shill_device_client.cc',
418 'dbus/fake_shill_device_client.h',
419 'dbus/fake_shill_manager_client.cc',
420 'dbus/fake_shill_manager_client.h',
421 'dbus/fake_system_clock_client.cc',
422 'dbus/fake_system_clock_client.h',
423 'dbus/fake_update_engine_client.cc',
424 'dbus/fake_update_engine_client.h',
425 'dbus/mock_dbus_thread_manager_without_gmock.cc',
426 'dbus/mock_dbus_thread_manager_without_gmock.h',
427 'dbus/ibus/mock_ibus_client.cc',
428 'dbus/ibus/mock_ibus_client.h',
429 'dbus/ibus/mock_ibus_input_context_client.cc',
430 'dbus/ibus/mock_ibus_input_context_client.h',
431 'dbus/ibus/mock_ibus_engine_factory_service.cc',
432 'dbus/ibus/mock_ibus_engine_factory_service.h',
433 'dbus/ibus/mock_ibus_engine_service.cc',
434 'dbus/ibus/mock_ibus_engine_service.h',
435 'ime/fake_input_method_delegate.cc',
436 'ime/fake_input_method_delegate.h',
437 'ime/mock_ibus_daemon_controller.cc',
438 'ime/mock_ibus_daemon_controller.h',
439 'ime/mock_ime_candidate_window_handler.cc',
440 'ime/mock_ime_candidate_window_handler.h',
441 'ime/mock_ime_engine_handler.cc',
442 'ime/mock_ime_engine_handler.h',
443 'ime/mock_ime_input_context_handler.cc',
444 'ime/mock_ime_input_context_handler.h',
445 'ime/mock_ime_property_handler.cc',
446 'ime/mock_ime_property_handler.h',
447 'ime/mock_xkeyboard.cc',
448 'ime/mock_xkeyboard.h',
455 'target_name': 'chromeos_unittests',
456 'type': 'executable',
458 '../base/base.gyp:run_all_unittests',
459 '../base/base.gyp:test_support_base',
460 '../build/linux/system.gyp:dbus',
461 '../build/linux/system.gyp:ssl',
462 '../crypto/crypto.gyp:crypto',
463 '../dbus/dbus.gyp:dbus_test_support',
464 '../net/net.gyp:net',
465 '../net/net.gyp:net_test_support',
466 '../testing/gmock.gyp:gmock',
467 '../testing/gtest.gyp:gtest',
468 '../url/url.gyp:url_lib',
469 'chromeos_test_support',
470 'power_manager_proto',
473 'app_mode/kiosk_oem_manifest_parser_unittest.cc',
474 'attestation/attestation_flow_unittest.cc',
475 'audio/cras_audio_handler_unittest.cc',
476 'dbus/blocking_method_caller_unittest.cc',
477 'dbus/cros_disks_client_unittest.cc',
478 'dbus/gsm_sms_client_unittest.cc',
479 'dbus/ibus/ibus_client_unittest.cc',
480 'dbus/ibus/ibus_component_unittest.cc',
481 'dbus/ibus/ibus_engine_factory_service_unittest.cc',
482 'dbus/ibus/ibus_engine_service_unittest.cc',
483 'dbus/ibus/ibus_input_context_client_unittest.cc',
484 'dbus/ibus/ibus_lookup_table_unittest.cc',
485 'dbus/ibus/ibus_object_unittest.cc',
486 'dbus/ibus/ibus_property_unittest.cc',
487 'dbus/ibus/ibus_text_unittest.cc',
488 'dbus/introspectable_client_unittest.cc',
489 'dbus/modem_messaging_client_unittest.cc',
490 'dbus/power_policy_controller_unittest.cc',
491 'dbus/shill_client_unittest_base.cc',
492 'dbus/shill_client_unittest_base.h',
493 'dbus/shill_device_client_unittest.cc',
494 'dbus/shill_ipconfig_client_unittest.cc',
495 'dbus/shill_manager_client_unittest.cc',
496 'dbus/shill_profile_client_unittest.cc',
497 'dbus/shill_service_client_unittest.cc',
498 'disks/disk_mount_manager_unittest.cc',
499 'display/output_configurator_unittest.cc',
500 'display/output_util_unittest.cc',
501 'ime/component_extension_ime_manager_unittest.cc',
502 'ime/extension_ime_util_unittest.cc',
503 'ime/input_method_manager.h',
504 'ime/input_method_property_unittest.cc',
505 'ime/input_method_whitelist_unittest.cc',
506 'ime/xkeyboard_unittest.cc',
507 'login/login_state_unittest.cc',
508 'network/client_cert_resolver_unittest.cc',
509 'network/cros_network_functions_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 'process_proxy/process_output_watcher_unittest.cc',
532 'process_proxy/process_proxy_unittest.cc',
533 'system/name_value_pairs_parser_unittest.cc',
539 [ 'linux_use_tcmalloc==1', {
541 '../base/allocator/allocator.gyp:allocator',
548 # Protobuf compiler/generator for power-manager related protocol buffers.
549 'target_name': 'power_manager_proto',
550 'type': 'static_library',
552 '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
553 '../third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto',
554 '../third_party/cros_system_api/dbus/power_manager/policy.proto',
555 '../third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto',
556 '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
559 'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
560 'proto_out_dir': 'chromeos/dbus/power_manager',
562 'includes': ['../build/protoc.gypi'],