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.
14 'target_name': 'chromeos',
15 'type': '<(component)',
17 '../base/base.gyp:base',
18 '../base/base.gyp:base_prefs',
19 '../components/components.gyp:onc_component',
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/icu/icu.gyp:icui18n',
27 '../third_party/libxml/libxml.gyp:libxml',
28 '../url/url.gyp:url_lib',
30 'ime/input_method.gyp:gencode',
31 'power_manager_proto',
34 'CHROMEOS_IMPLEMENTATION',
37 'app_mode/kiosk_oem_manifest_parser.cc',
38 'app_mode/kiosk_oem_manifest_parser.h',
39 'audio/audio_device.cc',
40 'audio/audio_device.h',
41 'audio/audio_devices_pref_handler.h',
42 'audio/audio_pref_observer.h',
43 'audio/cras_audio_handler.cc',
44 'audio/cras_audio_handler.h',
45 'audio/audio_devices_pref_handler_stub.cc',
46 'audio/audio_devices_pref_handler_stub.h',
47 'audio/chromeos_sounds.h',
48 'attestation/attestation_constants.cc',
49 'attestation/attestation_constants.h',
50 'attestation/attestation_flow.cc',
51 'attestation/attestation_flow.h',
54 'chromeos_constants.cc',
55 'chromeos_constants.h',
59 'chromeos_switches.cc',
60 'chromeos_switches.h',
61 'cryptohome/cryptohome_parameters.cc',
62 'cryptohome/cryptohome_parameters.h',
63 'cryptohome/homedir_methods.cc',
64 'cryptohome/homedir_methods.h',
65 'cryptohome/async_method_caller.cc',
66 'cryptohome/async_method_caller.h',
67 'cryptohome/cryptohome_util.cc',
68 'cryptohome/cryptohome_util.h',
69 'cryptohome/system_salt_getter.cc',
70 'cryptohome/system_salt_getter.h',
73 'dbus/blocking_method_caller.cc',
74 'dbus/blocking_method_caller.h',
75 'dbus/bluetooth_adapter_client.cc',
76 'dbus/bluetooth_adapter_client.h',
77 'dbus/bluetooth_agent_manager_client.cc',
78 'dbus/bluetooth_agent_manager_client.h',
79 'dbus/bluetooth_agent_service_provider.cc',
80 'dbus/bluetooth_agent_service_provider.h',
81 'dbus/bluetooth_device_client.cc',
82 'dbus/bluetooth_device_client.h',
83 'dbus/bluetooth_gatt_characteristic_client.cc',
84 'dbus/bluetooth_gatt_characteristic_client.h',
85 'dbus/bluetooth_gatt_characteristic_service_provider.cc',
86 'dbus/bluetooth_gatt_characteristic_service_provider.h',
87 'dbus/bluetooth_gatt_descriptor_client.cc',
88 'dbus/bluetooth_gatt_descriptor_client.h',
89 'dbus/bluetooth_gatt_descriptor_service_provider.cc',
90 'dbus/bluetooth_gatt_descriptor_service_provider.h',
91 'dbus/bluetooth_gatt_manager_client.cc',
92 'dbus/bluetooth_gatt_manager_client.h',
93 'dbus/bluetooth_gatt_service_client.cc',
94 'dbus/bluetooth_gatt_service_client.h',
95 'dbus/bluetooth_gatt_service_service_provider.cc',
96 'dbus/bluetooth_gatt_service_service_provider.h',
97 'dbus/bluetooth_input_client.cc',
98 'dbus/bluetooth_input_client.h',
99 'dbus/bluetooth_profile_manager_client.cc',
100 'dbus/bluetooth_profile_manager_client.h',
101 'dbus/bluetooth_profile_service_provider.cc',
102 'dbus/bluetooth_profile_service_provider.h',
103 'dbus/cras_audio_client.cc',
104 'dbus/cras_audio_client.h',
105 'dbus/cras_audio_client_stub_impl.cc',
106 'dbus/cras_audio_client_stub_impl.h',
107 'dbus/cros_disks_client.cc',
108 'dbus/cros_disks_client.h',
109 'dbus/cryptohome_client.cc',
110 'dbus/cryptohome_client.h',
111 'dbus/dbus_client_implementation_type.h',
112 'dbus/dbus_method_call_status.cc',
113 'dbus/dbus_method_call_status.h',
114 'dbus/dbus_thread_manager.cc',
115 'dbus/dbus_thread_manager.h',
116 'dbus/debug_daemon_client.cc',
117 'dbus/debug_daemon_client.h',
118 'dbus/fake_bluetooth_adapter_client.cc',
119 'dbus/fake_bluetooth_adapter_client.h',
120 'dbus/fake_bluetooth_agent_manager_client.cc',
121 'dbus/fake_bluetooth_agent_manager_client.h',
122 'dbus/fake_bluetooth_agent_service_provider.cc',
123 'dbus/fake_bluetooth_agent_service_provider.h',
124 'dbus/fake_bluetooth_device_client.cc',
125 'dbus/fake_bluetooth_device_client.h',
126 'dbus/fake_bluetooth_gatt_characteristic_client.cc',
127 'dbus/fake_bluetooth_gatt_characteristic_client.h',
128 'dbus/fake_bluetooth_gatt_descriptor_client.cc',
129 'dbus/fake_bluetooth_gatt_descriptor_client.h',
130 'dbus/fake_bluetooth_gatt_service_client.cc',
131 'dbus/fake_bluetooth_gatt_service_client.h',
132 'dbus/fake_bluetooth_input_client.cc',
133 'dbus/fake_bluetooth_input_client.h',
134 'dbus/fake_bluetooth_profile_manager_client.cc',
135 'dbus/fake_bluetooth_profile_manager_client.h',
136 'dbus/fake_bluetooth_profile_service_provider.cc',
137 'dbus/fake_bluetooth_profile_service_provider.h',
138 'dbus/fake_cryptohome_client.cc',
139 'dbus/fake_cryptohome_client.h',
140 'dbus/fake_dbus_thread_manager.cc',
141 'dbus/fake_dbus_thread_manager.h',
142 'dbus/fake_debug_daemon_client.cc',
143 'dbus/fake_debug_daemon_client.h',
144 'dbus/fake_gsm_sms_client.cc',
145 'dbus/fake_gsm_sms_client.h',
146 'dbus/fake_introspectable_client.cc',
147 'dbus/fake_introspectable_client.h',
148 'dbus/fake_modem_messaging_client.cc',
149 'dbus/fake_modem_messaging_client.h',
150 'dbus/fake_nfc_adapter_client.cc',
151 'dbus/fake_nfc_adapter_client.h',
152 'dbus/fake_nfc_device_client.cc',
153 'dbus/fake_nfc_device_client.h',
154 'dbus/fake_nfc_manager_client.cc',
155 'dbus/fake_nfc_manager_client.h',
156 'dbus/fake_nfc_record_client.cc',
157 'dbus/fake_nfc_record_client.h',
158 'dbus/fake_nfc_tag_client.cc',
159 'dbus/fake_nfc_tag_client.h',
160 'dbus/fake_image_burner_client.cc',
161 'dbus/fake_image_burner_client.h',
162 'dbus/fake_permission_broker_client.cc',
163 'dbus/fake_permission_broker_client.h',
164 'dbus/fake_shill_device_client.cc',
165 'dbus/fake_shill_device_client.h',
166 'dbus/fake_shill_ipconfig_client.cc',
167 'dbus/fake_shill_ipconfig_client.h',
168 'dbus/fake_shill_manager_client.cc',
169 'dbus/fake_shill_manager_client.h',
170 'dbus/fake_shill_profile_client.cc',
171 'dbus/fake_shill_profile_client.h',
172 'dbus/fake_shill_service_client.cc',
173 'dbus/fake_shill_service_client.h',
174 'dbus/fake_sms_client.cc',
175 'dbus/fake_sms_client.h',
176 'dbus/fake_system_clock_client.cc',
177 'dbus/fake_system_clock_client.h',
178 'dbus/gsm_sms_client.cc',
179 'dbus/gsm_sms_client.h',
180 'dbus/nfc_adapter_client.cc',
181 'dbus/nfc_adapter_client.h',
182 'dbus/nfc_client_helpers.cc',
183 'dbus/nfc_client_helpers.h',
184 'dbus/nfc_device_client.cc',
185 'dbus/nfc_device_client.h',
186 'dbus/nfc_manager_client.cc',
187 'dbus/nfc_manager_client.h',
188 'dbus/nfc_property_set.cc',
189 'dbus/nfc_property_set.h',
190 'dbus/nfc_record_client.cc',
191 'dbus/nfc_record_client.h',
192 'dbus/nfc_tag_client.cc',
193 'dbus/nfc_tag_client.h',
194 'dbus/shill_client_helper.cc',
195 'dbus/shill_client_helper.h',
196 'dbus/shill_device_client.cc',
197 'dbus/shill_device_client.h',
198 'dbus/shill_ipconfig_client.cc',
199 'dbus/shill_ipconfig_client.h',
200 'dbus/shill_manager_client.cc',
201 'dbus/shill_manager_client.h',
202 'dbus/shill_profile_client.cc',
203 'dbus/shill_profile_client.h',
204 'dbus/shill_service_client.cc',
205 'dbus/shill_service_client.h',
206 'dbus/image_burner_client.cc',
207 'dbus/image_burner_client.h',
208 'dbus/introspectable_client.cc',
209 'dbus/introspectable_client.h',
210 'dbus/modem_messaging_client.cc',
211 'dbus/modem_messaging_client.h',
212 'dbus/permission_broker_client.cc',
213 'dbus/permission_broker_client.h',
214 'dbus/power_manager_client.cc',
215 'dbus/power_manager_client.h',
216 'dbus/power_policy_controller.cc',
217 'dbus/power_policy_controller.h',
218 'dbus/session_manager_client.cc',
219 'dbus/session_manager_client.h',
220 'dbus/sms_client.cc',
222 'dbus/system_clock_client.cc',
223 'dbus/system_clock_client.h',
224 'dbus/update_engine_client.cc',
225 'dbus/update_engine_client.h',
226 'dbus/volume_state.cc',
227 'dbus/volume_state.h',
228 'disks/disk_mount_manager.cc',
229 'disks/disk_mount_manager.h',
230 'ime/component_extension_ime_manager.cc',
231 'ime/component_extension_ime_manager.h',
232 'ime/extension_ime_util.cc',
233 'ime/extension_ime_util.h',
234 'ime/fake_xkeyboard.cc',
235 'ime/fake_xkeyboard.h',
236 'ime/composition_text.cc',
237 'ime/composition_text.h',
238 'ime/input_method_delegate.h',
239 'ime/input_method_descriptor.cc',
240 'ime/input_method_descriptor.h',
241 'ime/input_method_manager.cc',
242 'ime/input_method_manager.h',
243 'ime/input_method_whitelist.cc',
244 'ime/input_method_whitelist.h',
247 'login/login_state.cc',
248 'login/login_state.h',
249 'network/certificate_pattern.cc',
250 'network/certificate_pattern.h',
251 'network/client_cert_resolver.cc',
252 'network/client_cert_resolver.h',
253 'network/client_cert_util.cc',
254 'network/client_cert_util.h',
255 'network/device_state.cc',
256 'network/device_state.h',
257 'network/favorite_state.cc',
258 'network/favorite_state.h',
259 'network/geolocation_handler.cc',
260 'network/geolocation_handler.h',
261 'network/managed_network_configuration_handler.cc',
262 'network/managed_network_configuration_handler.h',
263 'network/managed_network_configuration_handler_impl.cc',
264 'network/managed_network_configuration_handler_impl.h',
265 'network/managed_state.cc',
266 'network/managed_state.h',
267 'network/network_activation_handler.cc',
268 'network/network_activation_handler.h',
269 'network/network_cert_migrator.cc',
270 'network/network_cert_migrator.h',
271 'network/network_change_notifier_chromeos.cc',
272 'network/network_change_notifier_chromeos.h',
273 'network/network_change_notifier_factory_chromeos.cc',
274 'network/network_change_notifier_factory_chromeos.h',
275 'network/network_configuration_handler.cc',
276 'network/network_configuration_handler.h',
277 'network/network_connection_handler.cc',
278 'network/network_connection_handler.h',
279 'network/network_device_handler.cc',
280 'network/network_device_handler.h',
281 'network/network_device_handler_impl.cc',
282 'network/network_device_handler_impl.h',
283 'network/network_event_log.cc',
284 'network/network_event_log.h',
285 'network/network_handler.cc',
286 'network/network_handler.h',
287 'network/network_handler_callbacks.cc',
288 'network/network_handler_callbacks.h',
289 'network/network_ip_config.cc',
290 'network/network_ip_config.h',
291 'network/network_profile.cc',
292 'network/network_profile.h',
293 'network/network_profile_handler.cc',
294 'network/network_profile_handler.h',
295 'network/network_profile_observer.h',
296 'network/network_sms_handler.cc',
297 'network/network_sms_handler.h',
298 'network/network_state.cc',
299 'network/network_state.h',
300 'network/network_state_handler.cc',
301 'network/network_state_handler.h',
302 'network/network_state_handler_observer.cc',
303 'network/network_state_handler_observer.h',
304 'network/network_ui_data.cc',
305 'network/network_ui_data.h',
306 'network/network_util.cc',
307 'network/network_util.h',
308 'network/onc/onc_certificate_importer.h',
309 'network/onc/onc_certificate_importer_impl.cc',
310 'network/onc/onc_certificate_importer_impl.h',
311 'network/onc/onc_mapper.cc',
312 'network/onc/onc_mapper.h',
313 'network/onc/onc_merger.cc',
314 'network/onc/onc_merger.h',
315 'network/onc/onc_normalizer.cc',
316 'network/onc/onc_normalizer.h',
317 'network/onc/onc_signature.cc',
318 'network/onc/onc_signature.h',
319 'network/onc/onc_translation_tables.cc',
320 'network/onc/onc_translation_tables.h',
321 'network/onc/onc_translator.h',
322 'network/onc/onc_translator_onc_to_shill.cc',
323 'network/onc/onc_translator_shill_to_onc.cc',
324 'network/onc/onc_utils.cc',
325 'network/onc/onc_utils.h',
326 'network/onc/onc_validator.cc',
327 'network/onc/onc_validator.h',
328 'network/policy_util.cc',
329 'network/policy_util.h',
330 'network/policy_applicator.cc',
331 'network/policy_applicator.h',
332 'network/shill_property_handler.cc',
333 'network/shill_property_handler.h',
334 'network/shill_property_util.cc',
335 'network/shill_property_util.h',
336 'network/dhcp_proxy_script_fetcher_chromeos.cc',
337 'network/dhcp_proxy_script_fetcher_chromeos.h',
338 'process_proxy/process_output_watcher.cc',
339 'process_proxy/process_output_watcher.h',
340 'process_proxy/process_proxy.cc',
341 'process_proxy/process_proxy.h',
342 'process_proxy/process_proxy_registry.cc',
343 'process_proxy/process_proxy_registry.h',
344 'settings/cros_settings_names.cc',
345 'settings/cros_settings_names.h',
346 'settings/cros_settings_provider.cc',
347 'settings/cros_settings_provider.h',
348 'settings/timezone_settings.cc',
349 'settings/timezone_settings.h',
350 'system/name_value_pairs_parser.cc',
351 'system/name_value_pairs_parser.h',
352 'system/statistics_provider.cc',
353 'system/statistics_provider.h',
354 'tpm_token_loader.cc',
360 '../build/linux/system.gyp:x11',
372 # This target contains mocks that can be used to write unit tests.
373 'target_name': 'chromeos_test_support',
374 'type': 'static_library',
376 '../build/linux/system.gyp:dbus',
377 '../testing/gmock.gyp:gmock',
379 'chromeos_test_support_without_gmock',
381 'power_manager_proto',
384 'attestation/mock_attestation_flow.cc',
385 'attestation/mock_attestation_flow.h',
386 'chromeos_test_utils.cc',
387 'chromeos_test_utils.h',
388 'cryptohome/mock_async_method_caller.cc',
389 'cryptohome/mock_async_method_caller.h',
390 'cryptohome/mock_homedir_methods.cc',
391 'cryptohome/mock_homedir_methods.h',
392 'dbus/mock_cryptohome_client.cc',
393 'dbus/mock_cryptohome_client.h',
394 'dbus/mock_session_manager_client.cc',
395 'dbus/mock_session_manager_client.h',
396 'dbus/mock_shill_manager_client.cc',
397 'dbus/mock_shill_manager_client.h',
398 'dbus/mock_shill_profile_client.cc',
399 'dbus/mock_shill_profile_client.h',
400 'dbus/mock_shill_service_client.cc',
401 'dbus/mock_shill_service_client.h',
402 'disks/mock_disk_mount_manager.cc',
403 'disks/mock_disk_mount_manager.h',
404 'ime/mock_component_extension_ime_manager_delegate.cc',
405 'ime/mock_component_extension_ime_manager_delegate.h',
406 'network/fake_network_device_handler.cc',
407 'network/fake_network_device_handler.h',
408 'network/mock_managed_network_configuration_handler.cc',
409 'network/mock_managed_network_configuration_handler.h',
410 'network/onc/mock_certificate_importer.cc',
411 'network/onc/mock_certificate_importer.h',
412 'network/onc/onc_test_utils.cc',
413 'network/onc/onc_test_utils.h',
414 'system/mock_statistics_provider.cc',
415 'system/mock_statistics_provider.h',
422 'target_name': 'chromeos_test_support_without_gmock',
423 'type': 'static_library',
425 '../build/linux/system.gyp:dbus',
426 '../crypto/crypto.gyp:crypto',
427 '../dbus/dbus.gyp:dbus',
430 'power_manager_proto',
433 'dbus/fake_cros_disks_client.cc',
434 'dbus/fake_cros_disks_client.h',
435 'dbus/fake_power_manager_client.cc',
436 'dbus/fake_power_manager_client.h',
437 'dbus/fake_session_manager_client.cc',
438 'dbus/fake_session_manager_client.h',
439 'dbus/fake_shill_manager_client.cc',
440 'dbus/fake_shill_manager_client.h',
441 'dbus/fake_update_engine_client.cc',
442 'dbus/fake_update_engine_client.h',
443 'ime/fake_input_method_delegate.cc',
444 'ime/fake_input_method_delegate.h',
451 'target_name': 'chromeos_unittests',
452 'type': 'executable',
454 '../base/base.gyp:run_all_unittests',
455 '../base/base.gyp:test_support_base',
456 '../build/linux/system.gyp:dbus',
457 '../build/linux/system.gyp:ssl',
458 '../components/components.gyp:onc_component',
459 '../crypto/crypto.gyp:crypto',
460 '../dbus/dbus.gyp:dbus_test_support',
461 '../net/net.gyp:net',
462 '../net/net.gyp:net_test_support',
463 '../testing/gmock.gyp:gmock',
464 '../testing/gtest.gyp:gtest',
465 '../url/url.gyp:url_lib',
466 'chromeos_test_support',
468 'power_manager_proto',
471 'app_mode/kiosk_oem_manifest_parser_unittest.cc',
472 'attestation/attestation_flow_unittest.cc',
473 'audio/cras_audio_handler_unittest.cc',
474 'cert_loader_unittest.cc',
475 'cryptohome/system_salt_getter_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/introspectable_client_unittest.cc',
480 'dbus/modem_messaging_client_unittest.cc',
481 'dbus/nfc_client_unittest.cc',
482 'dbus/power_policy_controller_unittest.cc',
483 'dbus/shill_client_unittest_base.cc',
484 'dbus/shill_client_unittest_base.h',
485 'dbus/shill_device_client_unittest.cc',
486 'dbus/shill_ipconfig_client_unittest.cc',
487 'dbus/shill_manager_client_unittest.cc',
488 'dbus/shill_profile_client_unittest.cc',
489 'dbus/shill_service_client_unittest.cc',
490 'disks/disk_mount_manager_unittest.cc',
491 'ime/component_extension_ime_manager_unittest.cc',
492 'ime/extension_ime_util_unittest.cc',
493 'ime/composition_text_unittest.cc',
494 'ime/input_method_manager.h',
495 'ime/input_method_whitelist_unittest.cc',
496 'ime/xkeyboard_unittest.cc',
497 'login/login_state_unittest.cc',
498 'network/client_cert_resolver_unittest.cc',
499 'network/geolocation_handler_unittest.cc',
500 'network/managed_network_configuration_handler_unittest.cc',
501 'network/network_cert_migrator_unittest.cc',
502 'network/network_change_notifier_chromeos_unittest.cc',
503 'network/network_configuration_handler_unittest.cc',
504 'network/network_connection_handler_unittest.cc',
505 'network/network_device_handler_unittest.cc',
506 'network/network_event_log_unittest.cc',
507 'network/network_profile_handler_stub.h',
508 'network/network_sms_handler_unittest.cc',
509 'network/network_state_handler_unittest.cc',
510 'network/network_state_unittest.cc',
511 'network/network_ui_data_unittest.cc',
512 'network/network_util_unittest.cc',
513 'network/onc/onc_certificate_importer_impl_unittest.cc',
514 'network/onc/onc_merger_unittest.cc',
515 'network/onc/onc_normalizer_unittest.cc',
516 'network/onc/onc_translator_unittest.cc',
517 'network/onc/onc_utils_unittest.cc',
518 'network/onc/onc_validator_unittest.cc',
519 'network/shill_property_handler_unittest.cc',
520 'network/shill_property_util_unittest.cc',
521 'process_proxy/process_output_watcher_unittest.cc',
522 'process_proxy/process_proxy_unittest.cc',
523 'system/name_value_pairs_parser_unittest.cc',
529 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
530 [ '(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
532 '../base/allocator/allocator.gyp:allocator',
539 # Protobuf compiler/generator for power-manager related protocol buffers.
540 'target_name': 'power_manager_proto',
541 'type': 'static_library',
543 '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
544 '../third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto',
545 '../third_party/cros_system_api/dbus/power_manager/policy.proto',
546 '../third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto',
547 '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
550 'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
551 'proto_out_dir': 'chromeos/dbus/power_manager',
553 'includes': ['../build/protoc.gypi'],
556 # Protobuf compiler/generator for cryptohome related protocol buffers.
557 'target_name': 'cryptohome_proto',
558 'type': 'static_library',
560 '../third_party/cros_system_api/dbus/cryptohome/key.proto',
561 '../third_party/cros_system_api/dbus/cryptohome/rpc.proto',
564 'proto_in_dir': '../third_party/cros_system_api/dbus/cryptohome',
565 'proto_out_dir': 'chromeos/dbus/cryptohome',
567 'includes': ['../build/protoc.gypi'],
570 # Protobuf compiler/generator for cryptohome key signing protocol buffer.
571 'target_name': 'cryptohome_signkey_proto',
572 'type': 'static_library',
574 '../third_party/cros_system_api/dbus/cryptohome/signed_secret.proto',
577 'proto_in_dir': '../third_party/cros_system_api/dbus/cryptohome',
578 'proto_out_dir': 'chromeos/cryptohome',
580 'includes': ['../build/protoc.gypi'],