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