Ignore kChromeAppId when testing for clean profile during signin.
[chromium-blink-merge.git] / chromeos / chromeos.gyp
blob835c7d445137826bd6e93f6f8f1a475b1e84e4b5
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'includes': [
10     'chromeos_memory.gypi',
11     'chromeos_tools.gypi',
12   ],
13   'targets': [
14     {
15       'target_name': 'chromeos',
16       'type': '<(component)',
17       'dependencies': [
18         '../base/base.gyp:base',
19         '../base/base.gyp:base_prefs',
20         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
21         '../build/linux/system.gyp:dbus',
22         '../build/linux/system.gyp:ssl',
23         '../dbus/dbus.gyp:dbus',
24         '../net/net.gyp:net',
25         '../third_party/libxml/libxml.gyp:libxml',
26         '../url/url.gyp:url_lib',
27         'ime/input_method.gyp:gencode',
28         'power_manager_proto',
29         'video_activity_update_proto',
30       ],
31       'defines': [
32         'CHROMEOS_IMPLEMENTATION',
33       ],
34       'sources': [
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/audio_pref_handler.h',
42         'audio/cras_audio_handler.cc',
43         'audio/cras_audio_handler.h',
44         'audio/mock_cras_audio_handler.cc',
45         'audio/mock_cras_audio_handler.h',
46         'attestation/attestation_constants.cc',
47         'attestation/attestation_constants.h',
48         'attestation/attestation_flow.cc',
49         'attestation/attestation_flow.h',
50         'chromeos_constants.cc',
51         'chromeos_constants.h',
52         'chromeos_export.h',
53         'chromeos_paths.cc',
54         'chromeos_paths.h',
55         'chromeos_switches.cc',
56         'chromeos_switches.h',
57         'cryptohome/async_method_caller.cc',
58         'cryptohome/async_method_caller.h',
59         'cryptohome/cryptohome_library.cc',
60         'cryptohome/cryptohome_library.h',
61         'dbus/audio_node.cc',
62         'dbus/audio_node.h',
63         'dbus/blocking_method_caller.cc',
64         'dbus/blocking_method_caller.h',
65         'dbus/bluetooth_adapter_client.cc',
66         'dbus/bluetooth_adapter_client.h',
67         'dbus/bluetooth_agent_manager_client.cc',
68         'dbus/bluetooth_agent_manager_client.h',
69         'dbus/bluetooth_agent_service_provider.cc',
70         'dbus/bluetooth_agent_service_provider.h',
71         'dbus/bluetooth_device_client.cc',
72         'dbus/bluetooth_device_client.h',
73         'dbus/bluetooth_input_client.cc',
74         'dbus/bluetooth_input_client.h',
75         'dbus/bluetooth_profile_manager_client.cc',
76         'dbus/bluetooth_profile_manager_client.h',
77         'dbus/bluetooth_profile_service_provider.cc',
78         'dbus/bluetooth_profile_service_provider.h',
79         'dbus/cras_audio_client.cc',
80         'dbus/cras_audio_client.h',
81         'dbus/cros_disks_client.cc',
82         'dbus/cros_disks_client.h',
83         'dbus/cryptohome_client.cc',
84         'dbus/cryptohome_client.h',
85         'dbus/dbus_client_implementation_type.h',
86         'dbus/dbus_method_call_status.h',
87         'dbus/dbus_thread_manager.cc',
88         'dbus/dbus_thread_manager.h',
89         'dbus/debug_daemon_client.cc',
90         'dbus/debug_daemon_client.h',
91         'dbus/fake_bluetooth_adapter_client.cc',
92         'dbus/fake_bluetooth_adapter_client.h',
93         'dbus/fake_bluetooth_agent_manager_client.cc',
94         'dbus/fake_bluetooth_agent_manager_client.h',
95         'dbus/fake_bluetooth_agent_service_provider.cc',
96         'dbus/fake_bluetooth_agent_service_provider.h',
97         'dbus/fake_bluetooth_device_client.cc',
98         'dbus/fake_bluetooth_device_client.h',
99         'dbus/fake_bluetooth_input_client.cc',
100         'dbus/fake_bluetooth_input_client.h',
101         'dbus/fake_bluetooth_profile_manager_client.cc',
102         'dbus/fake_bluetooth_profile_manager_client.h',
103         'dbus/fake_bluetooth_profile_service_provider.cc',
104         'dbus/fake_bluetooth_profile_service_provider.h',
105         'dbus/fake_gsm_sms_client.cc',
106         'dbus/fake_gsm_sms_client.h',
107         'dbus/fake_image_burner_client.cc',
108         'dbus/fake_image_burner_client.h',
109         'dbus/fake_system_clock_client.cc',
110         'dbus/fake_system_clock_client.h',
111         'dbus/gsm_sms_client.cc',
112         'dbus/gsm_sms_client.h',
113         'dbus/shill_client_helper.cc',
114         'dbus/shill_client_helper.h',
115         'dbus/shill_device_client.cc',
116         'dbus/shill_device_client.h',
117         'dbus/shill_device_client_stub.cc',
118         'dbus/shill_device_client_stub.h',
119         'dbus/shill_ipconfig_client.cc',
120         'dbus/shill_ipconfig_client.h',
121         'dbus/shill_ipconfig_client_stub.cc',
122         'dbus/shill_ipconfig_client_stub.h',
123         'dbus/shill_manager_client.cc',
124         'dbus/shill_manager_client.h',
125         'dbus/shill_manager_client_stub.cc',
126         'dbus/shill_manager_client_stub.h',
127         'dbus/shill_profile_client.cc',
128         'dbus/shill_profile_client.h',
129         'dbus/shill_profile_client_stub.cc',
130         'dbus/shill_profile_client_stub.h',
131         'dbus/shill_service_client.cc',
132         'dbus/shill_service_client.h',
133         'dbus/shill_service_client_stub.cc',
134         'dbus/shill_service_client_stub.h',
135         'dbus/ibus/ibus_client.cc',
136         'dbus/ibus/ibus_client.h',
137         'dbus/ibus/ibus_component.cc',
138         'dbus/ibus/ibus_component.h',
139         'dbus/ibus/ibus_config_client.cc',
140         'dbus/ibus/ibus_config_client.h',
141         'dbus/ibus/ibus_constants.h',
142         'dbus/ibus/ibus_engine_service.cc',
143         'dbus/ibus/ibus_engine_service.h',
144         'dbus/ibus/ibus_engine_factory_service.cc',
145         'dbus/ibus/ibus_engine_factory_service.h',
146         'dbus/ibus/ibus_lookup_table.cc',
147         'dbus/ibus/ibus_lookup_table.h',
148         'dbus/ibus/ibus_object.cc',
149         'dbus/ibus/ibus_object.h',
150         'dbus/ibus/ibus_property.cc',
151         'dbus/ibus/ibus_property.h',
152         'dbus/ibus/ibus_text.cc',
153         'dbus/ibus/ibus_text.h',
154         'dbus/ibus/ibus_input_context_client.cc',
155         'dbus/ibus/ibus_input_context_client.h',
156         'dbus/ibus/ibus_panel_service.cc',
157         'dbus/ibus/ibus_panel_service.h',
158         'dbus/image_burner_client.cc',
159         'dbus/image_burner_client.h',
160         'dbus/introspectable_client.cc',
161         'dbus/introspectable_client.h',
162         'dbus/modem_messaging_client.cc',
163         'dbus/modem_messaging_client.h',
164         'dbus/permission_broker_client.cc',
165         'dbus/permission_broker_client.h',
166         'dbus/power_manager_client.cc',
167         'dbus/power_manager_client.h',
168         'dbus/power_policy_controller.cc',
169         'dbus/power_policy_controller.h',
170         'dbus/power_supply_status.cc',
171         'dbus/power_supply_status.h',
172         'dbus/session_manager_client.cc',
173         'dbus/session_manager_client.h',
174         'dbus/sms_client.cc',
175         'dbus/sms_client.h',
176         'dbus/system_clock_client.cc',
177         'dbus/system_clock_client.h',
178         'dbus/update_engine_client.cc',
179         'dbus/update_engine_client.h',
180         'dbus/volume_state.cc',
181         'dbus/volume_state.h',
182         'disks/disk_mount_manager.cc',
183         'disks/disk_mount_manager.h',
184         'display/output_configurator.cc',
185         'display/output_configurator.h',
186         'display/output_util.cc',
187         'display/output_util.h',
188         'display/real_output_configurator_delegate.cc',
189         'display/real_output_configurator_delegate.h',
190         'ime/component_extension_ime_manager.cc',
191         'ime/component_extension_ime_manager.h',
192         'ime/extension_ime_util.cc',
193         'ime/extension_ime_util.h',
194         'ime/ibus_bridge.cc',
195         'ime/ibus_bridge.h',
196         'ime/ibus_daemon_controller.cc',
197         'ime/ibus_daemon_controller.h',
198         'ime/ibus_keymap.cc',
199         'ime/ibus_keymap.h',
200         'ime/input_method_config.cc',
201         'ime/input_method_config.h',
202         'ime/input_method_delegate.h',
203         'ime/input_method_descriptor.cc',
204         'ime/input_method_descriptor.h',
205         'ime/input_method_manager.cc',
206         'ime/input_method_manager.h',
207         'ime/input_method_property.cc',
208         'ime/input_method_property.h',
209         'ime/input_method_whitelist.cc',
210         'ime/input_method_whitelist.h',
211         'ime/xkeyboard.cc',
212         'ime/xkeyboard.h',
213         'login/login_state.cc',
214         'login/login_state.h',
215         'network/cert_loader.cc',
216         'network/cert_loader.h',
217         'network/certificate_handler.cc',
218         'network/certificate_handler.h',
219         'network/certificate_pattern.cc',
220         'network/certificate_pattern.h',
221         'network/certificate_pattern_matcher.cc',
222         'network/certificate_pattern_matcher.h',
223         'network/cros_network_functions.cc',
224         'network/cros_network_functions.h',
225         'network/device_state.cc',
226         'network/device_state.h',
227         'network/geolocation_handler.cc',
228         'network/geolocation_handler.h',
229         'network/managed_network_configuration_handler.cc',
230         'network/managed_network_configuration_handler.h',
231         'network/managed_state.cc',
232         'network/managed_state.h',
233         'network/network_change_notifier_chromeos.cc',
234         'network/network_change_notifier_chromeos.h',
235         'network/network_change_notifier_factory_chromeos.cc',
236         'network/network_change_notifier_factory_chromeos.h',
237         'network/network_configuration_handler.cc',
238         'network/network_configuration_handler.h',
239         'network/network_connection_handler.cc',
240         'network/network_connection_handler.h',
241         'network/network_event_log.cc',
242         'network/network_event_log.h',
243         'network/network_handler.cc',
244         'network/network_handler.h',
245         'network/network_handler_callbacks.cc',
246         'network/network_handler_callbacks.h',
247         'network/network_ip_config.cc',
248         'network/network_ip_config.h',
249         'network/network_profile.cc',
250         'network/network_profile.h',
251         'network/network_profile_handler.cc',
252         'network/network_profile_handler.h',
253         'network/network_profile_observer.h',
254         'network/network_sms_handler.cc',
255         'network/network_sms_handler.h',
256         'network/network_state.cc',
257         'network/network_state.h',
258         'network/network_state_handler.cc',
259         'network/network_state_handler.h',
260         'network/network_state_handler_observer.cc',
261         'network/network_state_handler_observer.h',
262         'network/network_ui_data.cc',
263         'network/network_ui_data.h',
264         'network/network_util.cc',
265         'network/network_util.h',
266         'network/onc/onc_certificate_importer.cc',
267         'network/onc/onc_certificate_importer.h',
268         'network/onc/onc_constants.cc',
269         'network/onc/onc_constants.h',
270         'network/onc/onc_mapper.cc',
271         'network/onc/onc_mapper.h',
272         'network/onc/onc_merger.cc',
273         'network/onc/onc_merger.h',
274         'network/onc/onc_normalizer.cc',
275         'network/onc/onc_normalizer.h',
276         'network/onc/onc_signature.cc',
277         'network/onc/onc_signature.h',
278         'network/onc/onc_translation_tables.cc',
279         'network/onc/onc_translation_tables.h',
280         'network/onc/onc_translator.h',
281         'network/onc/onc_translator_onc_to_shill.cc',
282         'network/onc/onc_translator_shill_to_onc.cc',
283         'network/onc/onc_utils.cc',
284         'network/onc/onc_utils.h',
285         'network/onc/onc_validator.cc',
286         'network/onc/onc_validator.h',
287         'network/shill_property_handler.cc',
288         'network/shill_property_handler.h',
289         'network/sms_watcher.cc',
290         'network/sms_watcher.h',
291         'process_proxy/process_output_watcher.cc',
292         'process_proxy/process_output_watcher.h',
293         'process_proxy/process_proxy.cc',
294         'process_proxy/process_proxy.h',
295         'process_proxy/process_proxy_registry.cc',
296         'process_proxy/process_proxy_registry.h',
297         'system/name_value_pairs_parser.cc',
298         'system/name_value_pairs_parser.h',
299       ],
300       'conditions': [
301         ['use_x11 == 1', {
302           'dependencies': [
303             '../build/linux/system.gyp:glib',
304           ],
305           'link_settings': {
306             'libraries': [
307               '-lX11',
308               '-lXext',
309               '-lXi',
310               '-lXrandr',
311             ],
312           },
313         }, {
314           # use_x11 == 0
315           'sources!': [
316             'ime/xkeyboard.cc',
317             'ime/xkeyboard.h',
318             'display/output_configurator.cc',
319             'display/output_configurator.h',
320             'display/output_util.cc',
321             'display/output_util.h',
322             'display/real_output_configurator_delegate.cc',
323             'display/real_output_configurator_delegate.h',
324             'ime/xkeyboard.cc',
325             'ime/xkeyboard.h',
326           ],
327         }],
328       ],
329     },
330     {
331       # This target contains mocks that can be used to write unit tests.
332       'target_name': 'chromeos_test_support',
333       'type': 'static_library',
334       'dependencies': [
335         '../build/linux/system.gyp:dbus',
336         '../testing/gmock.gyp:gmock',
337         'chromeos',
338         'chromeos_test_support_without_gmock',
339         'power_manager_proto',
340       ],
341       'sources': [
342         'attestation/mock_attestation_flow.cc',
343         'attestation/mock_attestation_flow.h',
344         'chromeos_test_utils.cc',
345         'chromeos_test_utils.h',
346         'cryptohome/mock_async_method_caller.cc',
347         'cryptohome/mock_async_method_caller.h',
348         'cryptohome/mock_cryptohome_library.cc',
349         'cryptohome/mock_cryptohome_library.h',
350         'dbus/mock_cryptohome_client.cc',
351         'dbus/mock_cryptohome_client.h',
352         'dbus/mock_dbus_thread_manager.cc',
353         'dbus/mock_dbus_thread_manager.h',
354         'dbus/mock_gsm_sms_client.cc',
355         'dbus/mock_gsm_sms_client.h',
356         'dbus/mock_session_manager_client.cc',
357         'dbus/mock_session_manager_client.h',
358         'dbus/mock_shill_device_client.cc',
359         'dbus/mock_shill_device_client.h',
360         'dbus/mock_shill_ipconfig_client.cc',
361         'dbus/mock_shill_ipconfig_client.h',
362         'dbus/mock_shill_manager_client.cc',
363         'dbus/mock_shill_manager_client.h',
364         'dbus/mock_shill_profile_client.cc',
365         'dbus/mock_shill_profile_client.h',
366         'dbus/mock_shill_service_client.cc',
367         'dbus/mock_shill_service_client.h',
368         'dbus/shill_profile_client_stub.cc',
369         'dbus/shill_profile_client_stub.h',
370         'disks/mock_disk_mount_manager.cc',
371         'disks/mock_disk_mount_manager.h',
372         'ime/mock_component_extension_ime_manager_delegate.cc',
373         'ime/mock_component_extension_ime_manager_delegate.h',
374         'network/mock_certificate_handler.cc',
375         'network/mock_certificate_handler.h',
376         'network/onc/onc_test_utils.cc',
377         'network/onc/onc_test_utils.h',
378       ],
379       'include_dirs': [
380         '..',
381       ],
382     },
383     {
384       'target_name': 'chromeos_test_support_without_gmock',
385       'type': 'static_library',
386       'dependencies': [
387         '../build/linux/system.gyp:dbus',
388         '../dbus/dbus.gyp:dbus',
389         'chromeos',
390         'power_manager_proto',
391       ],
392       'sources': [
393         'dbus/fake_cros_disks_client.cc',
394         'dbus/fake_cros_disks_client.h',
395         'dbus/fake_cryptohome_client.cc',
396         'dbus/fake_cryptohome_client.h',
397         'dbus/fake_gsm_sms_client.cc',
398         'dbus/fake_gsm_sms_client.h',
399         'dbus/fake_image_burner_client.cc',
400         'dbus/fake_image_burner_client.h',
401         'dbus/fake_power_manager_client.cc',
402         'dbus/fake_power_manager_client.h',
403         'dbus/fake_session_manager_client.cc',
404         'dbus/fake_session_manager_client.h',
405         'dbus/fake_shill_manager_client.cc',
406         'dbus/fake_shill_manager_client.h',
407         'dbus/fake_system_clock_client.cc',
408         'dbus/fake_system_clock_client.h',
409         'dbus/fake_update_engine_client.cc',
410         'dbus/fake_update_engine_client.h',
411         'dbus/mock_dbus_thread_manager_without_gmock.cc',
412         'dbus/mock_dbus_thread_manager_without_gmock.h',
413         'dbus/ibus/mock_ibus_client.cc',
414         'dbus/ibus/mock_ibus_client.h',
415         'dbus/ibus/mock_ibus_config_client.cc',
416         'dbus/ibus/mock_ibus_config_client.h',
417         'dbus/ibus/mock_ibus_input_context_client.cc',
418         'dbus/ibus/mock_ibus_input_context_client.h',
419         'dbus/ibus/mock_ibus_engine_factory_service.cc',
420         'dbus/ibus/mock_ibus_engine_factory_service.h',
421         'dbus/ibus/mock_ibus_engine_service.cc',
422         'dbus/ibus/mock_ibus_engine_service.h',
423         'dbus/ibus/mock_ibus_panel_service.cc',
424         'dbus/ibus/mock_ibus_panel_service.h',
425         'ime/fake_input_method_delegate.cc',
426         'ime/fake_input_method_delegate.h',
427         'ime/mock_ibus_daemon_controller.cc',
428         'ime/mock_ibus_daemon_controller.h',
429         'ime/mock_xkeyboard.cc',
430         'ime/mock_xkeyboard.h',
431       ],
432       'include_dirs': [
433         '..',
434       ],
435     },
436     {
437       'target_name': 'chromeos_unittests',
438       'type': 'executable',
439       'dependencies': [
440         '../base/base.gyp:run_all_unittests',
441         '../base/base.gyp:test_support_base',
442         '../build/linux/system.gyp:dbus',
443         '../build/linux/system.gyp:ssl',
444         '../crypto/crypto.gyp:crypto',
445         '../dbus/dbus.gyp:dbus_test_support',
446         '../net/net.gyp:net',
447         '../testing/gmock.gyp:gmock',
448         '../testing/gtest.gyp:gtest',
449         '../url/url.gyp:url_lib',
450         'chromeos_test_support',
451         'power_manager_proto',
452       ],
453       'sources': [
454         'attestation/attestation_flow_unittest.cc',
455         'app_mode/kiosk_oem_manifest_parser_unittest.cc',
456         'display/output_configurator_unittest.cc',
457         'display/output_util_unittest.cc',
458         'dbus/blocking_method_caller_unittest.cc',
459         'dbus/power_policy_controller_unittest.cc',
460         'dbus/shill_client_unittest_base.cc',
461         'dbus/shill_client_unittest_base.h',
462         'dbus/shill_device_client_unittest.cc',
463         'dbus/shill_ipconfig_client_unittest.cc',
464         'dbus/shill_manager_client_unittest.cc',
465         'dbus/shill_profile_client_unittest.cc',
466         'dbus/shill_service_client_unittest.cc',
467         'dbus/gsm_sms_client_unittest.cc',
468         'dbus/ibus/ibus_client_unittest.cc',
469         'dbus/ibus/ibus_config_client_unittest.cc',
470         'dbus/ibus/ibus_component_unittest.cc',
471         'dbus/ibus/ibus_engine_factory_service_unittest.cc',
472         'dbus/ibus/ibus_engine_service_unittest.cc',
473         'dbus/ibus/ibus_input_context_client_unittest.cc',
474         'dbus/ibus/ibus_lookup_table_unittest.cc',
475         'dbus/ibus/ibus_object_unittest.cc',
476         'dbus/ibus/ibus_panel_service_unittest.cc',
477         'dbus/ibus/ibus_property_unittest.cc',
478         'dbus/ibus/ibus_text_unittest.cc',
479         'dbus/introspectable_client_unittest.cc',
480         'dbus/modem_messaging_client_unittest.cc',
481         'disks/disk_mount_manager_unittest.cc',
482         'ime/component_extension_ime_manager_unittest.cc',
483         'ime/extension_ime_util_unittest.cc',
484         'ime/input_method_manager.h',
485         'ime/input_method_property_unittest.cc',
486         'ime/input_method_whitelist_unittest.cc',
487         'ime/xkeyboard_unittest.cc',
488         'login/login_state_unittest.cc',
489         'network/cros_network_functions_unittest.cc',
490         'network/geolocation_handler_unittest.cc',
491         'network/managed_network_configuration_handler_unittest.cc',
492         'network/network_change_notifier_chromeos_unittest.cc',
493         'network/network_configuration_handler_unittest.cc',
494         'network/network_connection_handler_unittest.cc',
495         'network/network_event_log_unittest.cc',
496         'network/network_profile_handler_stub.h',
497         'network/network_sms_handler_unittest.cc',
498         'network/network_state_handler_unittest.cc',
499         'network/network_state_unittest.cc',
500         'network/network_ui_data_unittest.cc',
501         'network/network_util_unittest.cc',
502         'network/onc/onc_certificate_importer_unittest.cc',
503         'network/onc/onc_merger_unittest.cc',
504         'network/onc/onc_normalizer_unittest.cc',
505         'network/onc/onc_translator_unittest.cc',
506         'network/onc/onc_utils_unittest.cc',
507         'network/onc/onc_validator_unittest.cc',
508         'network/shill_property_handler_unittest.cc',
509         'process_proxy/process_output_watcher_unittest.cc',
510         'process_proxy/process_proxy_unittest.cc',
511         'system/name_value_pairs_parser_unittest.cc',
512       ],
513       'include_dirs': [
514         '..',
515       ],
516       'conditions': [
517         [ 'linux_use_tcmalloc==1', {
518            'dependencies': [
519               '../base/allocator/allocator.gyp:allocator',
520             ],
521           },
522         ],
523       ],
524     },
525     {
526       # Protobuf compiler/generator for power-manager related protocol buffers.
527       # TODO(derat): Remove other protocol buffers in favor of these.
528       'target_name': 'power_manager_proto',
529       'type': 'static_library',
530       'sources': [
531         '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
532         '../third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto',
533         '../third_party/cros_system_api/dbus/power_manager/policy.proto',
534         '../third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto',
535         '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
536       ],
537       'variables': {
538         'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
539         'proto_out_dir': 'chromeos/dbus/power_manager',
540       },
541       'includes': ['../build/protoc.gypi'],
542     },
543     {
544       # Protobuf compiler / generator for the VideoActivityUpdate protocol
545       # buffer.
546       'target_name': 'video_activity_update_proto',
547       'type': 'static_library',
548       'sources': [
549         '../third_party/cros_system_api/dbus/video_activity_update.proto',
550       ],
551       'variables': {
552         'proto_in_dir': '../third_party/cros_system_api/dbus/',
553         'proto_out_dir': 'chromeos/dbus',
554       },
555       'includes': ['../build/protoc.gypi'],
556     },
557   ],