Home | History | Annotate | Download | only in chromeos
      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_tools.gypi'
     11   ],
     12   'targets': [
     13     {
     14       'target_name': 'chromeos',
     15       'type': '<(component)',
     16       'dependencies': [
     17         '../base/base.gyp:base',
     18         '../base/base.gyp:base_prefs',
     19         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
     20         '../build/linux/system.gyp:dbus',
     21         '../build/linux/system.gyp:ssl',
     22         '../components/components.gyp:cloud_policy_proto',
     23         '../components/components.gyp:onc_component',
     24         '../crypto/crypto.gyp:crypto',
     25         '../dbus/dbus.gyp:dbus',
     26         '../google_apis/google_apis.gyp:google_apis',
     27         '../net/net.gyp:net',
     28         '../third_party/icu/icu.gyp:icui18n',
     29         '../third_party/libxml/libxml.gyp:libxml',
     30         '../third_party/protobuf/protobuf.gyp:protobuf_lite',
     31         '../ui/accelerometer/ui_accelerometer.gyp:ui_accelerometer',
     32         '../url/url.gyp:url_lib',
     33         'cryptohome_proto',
     34         'ime/input_method.gyp:gencode',
     35         'power_manager_proto',
     36       ],
     37       'defines': [
     38         'CHROMEOS_IMPLEMENTATION',
     39       ],
     40       'sources': [
     41         'accelerometer/accelerometer_reader.cc',
     42         'accelerometer/accelerometer_reader.h',
     43         'app_mode/kiosk_oem_manifest_parser.cc',
     44         'app_mode/kiosk_oem_manifest_parser.h',
     45         'audio/audio_device.cc',
     46         'audio/audio_device.h',
     47         'audio/audio_devices_pref_handler.h',
     48         'audio/audio_pref_observer.h',
     49         'audio/cras_audio_handler.cc',
     50         'audio/cras_audio_handler.h',
     51         'audio/audio_devices_pref_handler_stub.cc',
     52         'audio/audio_devices_pref_handler_stub.h',
     53         'audio/chromeos_sounds.h',
     54         'attestation/attestation_constants.cc',
     55         'attestation/attestation_constants.h',
     56         'attestation/attestation_flow.cc',
     57         'attestation/attestation_flow.h',
     58         'cert_loader.cc',
     59         'cert_loader.h',
     60         'chromeos_constants.cc',
     61         'chromeos_constants.h',
     62         'chromeos_export.h',
     63         'chromeos_paths.cc',
     64         'chromeos_paths.h',
     65         'chromeos_switches.cc',
     66         'chromeos_switches.h',
     67         'cryptohome/async_method_caller.cc',
     68         'cryptohome/async_method_caller.h',
     69         'cryptohome/cryptohome_parameters.cc',
     70         'cryptohome/cryptohome_parameters.h',
     71         'cryptohome/cryptohome_util.cc',
     72         'cryptohome/cryptohome_util.h',
     73         'cryptohome/homedir_methods.cc',
     74         'cryptohome/homedir_methods.h',
     75         'cryptohome/system_salt_getter.cc',
     76         'cryptohome/system_salt_getter.h',
     77         'dbus/audio_node.cc',
     78         'dbus/audio_node.h',
     79         'dbus/blocking_method_caller.cc',
     80         'dbus/blocking_method_caller.h',
     81         'dbus/bluetooth_adapter_client.cc',
     82         'dbus/bluetooth_adapter_client.h',
     83         'dbus/bluetooth_agent_manager_client.cc',
     84         'dbus/bluetooth_agent_manager_client.h',
     85         'dbus/bluetooth_agent_service_provider.cc',
     86         'dbus/bluetooth_agent_service_provider.h',
     87         'dbus/bluetooth_device_client.cc',
     88         'dbus/bluetooth_device_client.h',
     89         'dbus/bluetooth_gatt_characteristic_client.cc',
     90         'dbus/bluetooth_gatt_characteristic_client.h',
     91         'dbus/bluetooth_gatt_characteristic_service_provider.cc',
     92         'dbus/bluetooth_gatt_characteristic_service_provider.h',
     93         'dbus/bluetooth_gatt_descriptor_client.cc',
     94         'dbus/bluetooth_gatt_descriptor_client.h',
     95         'dbus/bluetooth_gatt_descriptor_service_provider.cc',
     96         'dbus/bluetooth_gatt_descriptor_service_provider.h',
     97         'dbus/bluetooth_gatt_manager_client.cc',
     98         'dbus/bluetooth_gatt_manager_client.h',
     99         'dbus/bluetooth_gatt_service_client.cc',
    100         'dbus/bluetooth_gatt_service_client.h',
    101         'dbus/bluetooth_gatt_service_service_provider.cc',
    102         'dbus/bluetooth_gatt_service_service_provider.h',
    103         'dbus/bluetooth_input_client.cc',
    104         'dbus/bluetooth_input_client.h',
    105         'dbus/bluetooth_profile_manager_client.cc',
    106         'dbus/bluetooth_profile_manager_client.h',
    107         'dbus/bluetooth_profile_service_provider.cc',
    108         'dbus/bluetooth_profile_service_provider.h',
    109         'dbus/cras_audio_client.cc',
    110         'dbus/cras_audio_client.h',
    111         'dbus/cras_audio_client_stub_impl.cc',
    112         'dbus/cras_audio_client_stub_impl.h',
    113         'dbus/cros_disks_client.cc',
    114         'dbus/cros_disks_client.h',
    115         'dbus/cryptohome_client.cc',
    116         'dbus/cryptohome_client.h',
    117         'dbus/dbus_client_bundle.h',
    118         'dbus/dbus_client_bundle.cc',
    119         'dbus/dbus_client_implementation_type.h',
    120         'dbus/dbus_method_call_status.cc',
    121         'dbus/dbus_method_call_status.h',
    122         'dbus/dbus_thread_manager.cc',
    123         'dbus/dbus_thread_manager.h',
    124         'dbus/debug_daemon_client.cc',
    125         'dbus/debug_daemon_client.h',
    126         'dbus/easy_unlock_client.cc',
    127         'dbus/easy_unlock_client.h',
    128         'dbus/fake_bluetooth_adapter_client.cc',
    129         'dbus/fake_bluetooth_adapter_client.h',
    130         'dbus/fake_bluetooth_agent_manager_client.cc',
    131         'dbus/fake_bluetooth_agent_manager_client.h',
    132         'dbus/fake_bluetooth_agent_service_provider.cc',
    133         'dbus/fake_bluetooth_agent_service_provider.h',
    134         'dbus/fake_bluetooth_device_client.cc',
    135         'dbus/fake_bluetooth_device_client.h',
    136         'dbus/fake_bluetooth_gatt_characteristic_client.cc',
    137         'dbus/fake_bluetooth_gatt_characteristic_client.h',
    138         'dbus/fake_bluetooth_gatt_characteristic_service_provider.cc',
    139         'dbus/fake_bluetooth_gatt_characteristic_service_provider.h',
    140         'dbus/fake_bluetooth_gatt_descriptor_client.cc',
    141         'dbus/fake_bluetooth_gatt_descriptor_client.h',
    142         'dbus/fake_bluetooth_gatt_descriptor_service_provider.cc',
    143         'dbus/fake_bluetooth_gatt_descriptor_service_provider.h',
    144         'dbus/fake_bluetooth_gatt_manager_client.cc',
    145         'dbus/fake_bluetooth_gatt_manager_client.h',
    146         'dbus/fake_bluetooth_gatt_service_client.cc',
    147         'dbus/fake_bluetooth_gatt_service_client.h',
    148         'dbus/fake_bluetooth_gatt_service_service_provider.cc',
    149         'dbus/fake_bluetooth_gatt_service_service_provider.h',
    150         'dbus/fake_bluetooth_input_client.cc',
    151         'dbus/fake_bluetooth_input_client.h',
    152         'dbus/fake_bluetooth_profile_manager_client.cc',
    153         'dbus/fake_bluetooth_profile_manager_client.h',
    154         'dbus/fake_bluetooth_profile_service_provider.cc',
    155         'dbus/fake_bluetooth_profile_service_provider.h',
    156         'dbus/fake_cryptohome_client.cc',
    157         'dbus/fake_cryptohome_client.h',
    158         'dbus/fake_debug_daemon_client.cc',
    159         'dbus/fake_debug_daemon_client.h',
    160         'dbus/fake_easy_unlock_client.cc',
    161         'dbus/fake_easy_unlock_client.h',
    162         'dbus/fake_gsm_sms_client.cc',
    163         'dbus/fake_gsm_sms_client.h',
    164         'dbus/fake_image_burner_client.cc',
    165         'dbus/fake_image_burner_client.h',
    166         'dbus/fake_introspectable_client.cc',
    167         'dbus/fake_introspectable_client.h',
    168         'dbus/fake_lorgnette_manager_client.cc',
    169         'dbus/fake_lorgnette_manager_client.h',
    170         'dbus/fake_modem_messaging_client.cc',
    171         'dbus/fake_modem_messaging_client.h',
    172         'dbus/fake_nfc_adapter_client.cc',
    173         'dbus/fake_nfc_adapter_client.h',
    174         'dbus/fake_nfc_device_client.cc',
    175         'dbus/fake_nfc_device_client.h',
    176         'dbus/fake_nfc_manager_client.cc',
    177         'dbus/fake_nfc_manager_client.h',
    178         'dbus/fake_nfc_record_client.cc',
    179         'dbus/fake_nfc_record_client.h',
    180         'dbus/fake_nfc_tag_client.cc',
    181         'dbus/fake_nfc_tag_client.h',
    182         'dbus/fake_permission_broker_client.cc',
    183         'dbus/fake_permission_broker_client.h',
    184         'dbus/fake_shill_device_client.cc',
    185         'dbus/fake_shill_device_client.h',
    186         'dbus/fake_shill_ipconfig_client.cc',
    187         'dbus/fake_shill_ipconfig_client.h',
    188         'dbus/fake_shill_manager_client.cc',
    189         'dbus/fake_shill_manager_client.h',
    190         'dbus/fake_shill_profile_client.cc',
    191         'dbus/fake_shill_profile_client.h',
    192         'dbus/fake_shill_service_client.cc',
    193         'dbus/fake_shill_service_client.h',
    194         'dbus/fake_sms_client.cc',
    195         'dbus/fake_sms_client.h',
    196         'dbus/fake_system_clock_client.cc',
    197         'dbus/fake_system_clock_client.h',
    198         'dbus/gsm_sms_client.cc',
    199         'dbus/gsm_sms_client.h',
    200         'dbus/image_burner_client.cc',
    201         'dbus/image_burner_client.h',
    202         'dbus/introspectable_client.cc',
    203         'dbus/introspectable_client.h',
    204         'dbus/lorgnette_manager_client.cc',
    205         'dbus/lorgnette_manager_client.h',
    206         'dbus/modem_messaging_client.cc',
    207         'dbus/modem_messaging_client.h',
    208         'dbus/nfc_adapter_client.cc',
    209         'dbus/nfc_adapter_client.h',
    210         'dbus/nfc_client_helpers.cc',
    211         'dbus/nfc_client_helpers.h',
    212         'dbus/nfc_device_client.cc',
    213         'dbus/nfc_device_client.h',
    214         'dbus/nfc_manager_client.cc',
    215         'dbus/nfc_manager_client.h',
    216         'dbus/nfc_property_set.cc',
    217         'dbus/nfc_property_set.h',
    218         'dbus/nfc_record_client.cc',
    219         'dbus/nfc_record_client.h',
    220         'dbus/nfc_tag_client.cc',
    221         'dbus/nfc_tag_client.h',
    222         'dbus/permission_broker_client.cc',
    223         'dbus/permission_broker_client.h',
    224         'dbus/pipe_reader.cc',
    225         'dbus/pipe_reader.h',
    226         'dbus/power_manager_client.cc',
    227         'dbus/power_manager_client.h',
    228         'dbus/power_policy_controller.cc',
    229         'dbus/power_policy_controller.h',
    230         'dbus/session_manager_client.cc',
    231         'dbus/session_manager_client.h',
    232         'dbus/shill_client_helper.cc',
    233         'dbus/shill_client_helper.h',
    234         'dbus/shill_device_client.cc',
    235         'dbus/shill_device_client.h',
    236         'dbus/shill_ipconfig_client.cc',
    237         'dbus/shill_ipconfig_client.h',
    238         'dbus/shill_manager_client.cc',
    239         'dbus/shill_manager_client.h',
    240         'dbus/shill_profile_client.cc',
    241         'dbus/shill_profile_client.h',
    242         'dbus/shill_service_client.cc',
    243         'dbus/shill_service_client.h',
    244         'dbus/sms_client.cc',
    245         'dbus/sms_client.h',
    246         'dbus/system_clock_client.cc',
    247         'dbus/system_clock_client.h',
    248         'dbus/update_engine_client.cc',
    249         'dbus/update_engine_client.h',
    250         'dbus/volume_state.cc',
    251         'dbus/volume_state.h',
    252         'disks/disk_mount_manager.cc',
    253         'disks/disk_mount_manager.h',
    254         'ime/component_extension_ime_manager.cc',
    255         'ime/component_extension_ime_manager.h',
    256         'ime/composition_text.cc',
    257         'ime/composition_text.h',
    258         'ime/extension_ime_util.cc',
    259         'ime/extension_ime_util.h',
    260         'ime/fake_ime_keyboard.cc',
    261         'ime/fake_ime_keyboard.h',
    262         'ime/ime_keyboard.h',
    263         'ime/ime_keyboard_ozone.cc',
    264         'ime/ime_keyboard_x11.cc',
    265         'ime/input_method_delegate.h',
    266         'ime/input_method_descriptor.cc',
    267         'ime/input_method_descriptor.h',
    268         'ime/input_method_manager.cc',
    269         'ime/input_method_manager.h',
    270         'ime/input_method_whitelist.cc',
    271         'ime/input_method_whitelist.h',
    272         'login/auth/auth_attempt_state.cc',
    273         'login/auth/auth_attempt_state.h',
    274         'login/auth/auth_attempt_state_resolver.cc',
    275         'login/auth/auth_attempt_state_resolver.h',
    276         'login/auth/auth_status_consumer.cc',
    277         'login/auth/auth_status_consumer.h',
    278         'login/auth/authenticator.cc',
    279         'login/auth/authenticator.h',
    280         'login/auth/cryptohome_authenticator.cc',
    281         'login/auth/cryptohome_authenticator.h',
    282         'login/auth/extended_authenticator.cc',
    283         'login/auth/extended_authenticator.h',
    284         'login/auth/extended_authenticator_impl.cc',
    285         'login/auth/extended_authenticator_impl.h',
    286         'login/auth/key.cc',
    287         'login/auth/key.h',
    288         'login/auth/online_attempt.cc',
    289         'login/auth/online_attempt.h',
    290         'login/auth/online_attempt_host.cc',
    291         'login/auth/online_attempt_host.h',
    292         'login/auth/test_attempt_state.cc',
    293         'login/auth/test_attempt_state.h',
    294         'login/auth/user_context.cc',
    295         'login/auth/user_context.h',
    296         'login/login_state.cc',
    297         'login/login_state.h',
    298         'login/user_names.cc',
    299         'login/user_names.h',
    300         'login_event_recorder.cc',
    301         'login_event_recorder.h',
    302         'network/certificate_pattern.cc',
    303         'network/certificate_pattern.h',
    304         'network/client_cert_resolver.cc',
    305         'network/client_cert_resolver.h',
    306         'network/client_cert_util.cc',
    307         'network/client_cert_util.h',
    308         'network/device_state.cc',
    309         'network/device_state.h',
    310         'network/dhcp_proxy_script_fetcher_chromeos.cc',
    311         'network/dhcp_proxy_script_fetcher_chromeos.h',
    312         'network/geolocation_handler.cc',
    313         'network/geolocation_handler.h',
    314         'network/host_resolver_impl_chromeos.cc',
    315         'network/host_resolver_impl_chromeos.h',
    316         'network/managed_network_configuration_handler.cc',
    317         'network/managed_network_configuration_handler.h',
    318         'network/managed_network_configuration_handler_impl.cc',
    319         'network/managed_network_configuration_handler_impl.h',
    320         'network/managed_state.cc',
    321         'network/managed_state.h',
    322         'network/network_activation_handler.cc',
    323         'network/network_activation_handler.h',
    324         'network/network_cert_migrator.cc',
    325         'network/network_cert_migrator.h',
    326         'network/network_change_notifier_chromeos.cc',
    327         'network/network_change_notifier_chromeos.h',
    328         'network/network_change_notifier_factory_chromeos.cc',
    329         'network/network_change_notifier_factory_chromeos.h',
    330         'network/network_configuration_handler.cc',
    331         'network/network_configuration_handler.h',
    332         'network/network_connection_handler.cc',
    333         'network/network_connection_handler.h',
    334         'network/network_device_handler.cc',
    335         'network/network_device_handler.h',
    336         'network/network_device_handler_impl.cc',
    337         'network/network_device_handler_impl.h',
    338         'network/network_event_log.cc',
    339         'network/network_event_log.h',
    340         'network/network_handler.cc',
    341         'network/network_handler.h',
    342         'network/network_handler_callbacks.cc',
    343         'network/network_handler_callbacks.h',
    344         'network/network_ip_config.cc',
    345         'network/network_ip_config.h',
    346         'network/network_profile.cc',
    347         'network/network_profile.h',
    348         'network/network_profile_handler.cc',
    349         'network/network_profile_handler.h',
    350         'network/network_profile_observer.h',
    351         'network/network_sms_handler.cc',
    352         'network/network_sms_handler.h',
    353         'network/network_state.cc',
    354         'network/network_state.h',
    355         'network/network_state_handler.cc',
    356         'network/network_state_handler.h',
    357         'network/network_state_handler_observer.cc',
    358         'network/network_state_handler_observer.h',
    359         'network/network_type_pattern.cc',
    360         'network/network_type_pattern.h',
    361         'network/network_ui_data.cc',
    362         'network/network_ui_data.h',
    363         'network/network_util.cc',
    364         'network/network_util.h',
    365         'network/onc/onc_certificate_importer.h',
    366         'network/onc/onc_certificate_importer_impl.cc',
    367         'network/onc/onc_certificate_importer_impl.h',
    368         'network/onc/onc_mapper.cc',
    369         'network/onc/onc_mapper.h',
    370         'network/onc/onc_merger.cc',
    371         'network/onc/onc_merger.h',
    372         'network/onc/onc_normalizer.cc',
    373         'network/onc/onc_normalizer.h',
    374         'network/onc/onc_signature.cc',
    375         'network/onc/onc_signature.h',
    376         'network/onc/onc_translation_tables.cc',
    377         'network/onc/onc_translation_tables.h',
    378         'network/onc/onc_translator.h',
    379         'network/onc/onc_translator_onc_to_shill.cc',
    380         'network/onc/onc_translator_shill_to_onc.cc',
    381         'network/onc/onc_utils.cc',
    382         'network/onc/onc_utils.h',
    383         'network/onc/onc_validator.cc',
    384         'network/onc/onc_validator.h',
    385         'network/policy_applicator.cc',
    386         'network/policy_applicator.h',
    387         'network/policy_util.cc',
    388         'network/policy_util.h',
    389         'network/portal_detector/network_portal_detector.cc',
    390         'network/portal_detector/network_portal_detector.h',
    391         'network/portal_detector/network_portal_detector_strategy.cc',
    392         'network/portal_detector/network_portal_detector_strategy.h',
    393         'network/shill_property_handler.cc',
    394         'network/shill_property_handler.h',
    395         'network/shill_property_util.cc',
    396         'network/shill_property_util.h',
    397         'process_proxy/process_output_watcher.cc',
    398         'process_proxy/process_output_watcher.h',
    399         'process_proxy/process_proxy.cc',
    400         'process_proxy/process_proxy.h',
    401         'process_proxy/process_proxy_registry.cc',
    402         'process_proxy/process_proxy_registry.h',
    403         'settings/cros_settings_names.cc',
    404         'settings/cros_settings_names.h',
    405         'settings/cros_settings_provider.cc',
    406         'settings/cros_settings_provider.h',
    407         'settings/timezone_settings.cc',
    408         'settings/timezone_settings.h',
    409         'system/name_value_pairs_parser.cc',
    410         'system/name_value_pairs_parser.h',
    411         'system/statistics_provider.cc',
    412         'system/statistics_provider.h',
    413         'tpm_password_fetcher.cc',
    414         'tpm_password_fetcher.h',
    415         'tpm_token_loader.cc',
    416         'tpm_token_loader.h'
    417       ],
    418       'conditions': [
    419         ['use_x11 == 1', {
    420           'dependencies': [
    421             '../build/linux/system.gyp:x11',
    422             '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
    423           ],
    424         }, {
    425           # use_x11 == 0
    426           'sources!': [
    427             'ime/keyboard_controller.cc',
    428             'ime/ime_keyboard.h',
    429           ],
    430         }],
    431       ],
    432     },
    433     {
    434       # This target contains mocks that can be used to write unit tests.
    435       'target_name': 'chromeos_test_support',
    436       'type': 'static_library',
    437       'dependencies': [
    438         '../build/linux/system.gyp:dbus',
    439         '../testing/gmock.gyp:gmock',
    440         'chromeos',
    441         'chromeos_test_support_without_gmock',
    442         'cryptohome_proto',
    443         'power_manager_proto',
    444       ],
    445       'sources': [
    446         'attestation/mock_attestation_flow.cc',
    447         'attestation/mock_attestation_flow.h',
    448         'chromeos_test_utils.cc',
    449         'chromeos_test_utils.h',
    450         'cryptohome/mock_async_method_caller.cc',
    451         'cryptohome/mock_async_method_caller.h',
    452         'cryptohome/mock_homedir_methods.cc',
    453         'cryptohome/mock_homedir_methods.h',
    454         'dbus/mock_cryptohome_client.cc',
    455         'dbus/mock_cryptohome_client.h',
    456         'dbus/mock_session_manager_client.cc',
    457         'dbus/mock_session_manager_client.h',
    458         'dbus/mock_shill_manager_client.cc',
    459         'dbus/mock_shill_manager_client.h',
    460         'dbus/mock_shill_profile_client.cc',
    461         'dbus/mock_shill_profile_client.h',
    462         'dbus/mock_shill_service_client.cc',
    463         'dbus/mock_shill_service_client.h',
    464         'disks/mock_disk_mount_manager.cc',
    465         'disks/mock_disk_mount_manager.h',
    466         'ime/mock_component_extension_ime_manager_delegate.cc',
    467         'ime/mock_component_extension_ime_manager_delegate.h',
    468         'login/auth/fake_extended_authenticator.cc',
    469         'login/auth/fake_extended_authenticator.h',
    470         'login/auth/mock_auth_attempt_state_resolver.cc',
    471         'login/auth/mock_auth_attempt_state_resolver.h',
    472         'login/auth/mock_auth_status_consumer.cc',
    473         'login/auth/mock_auth_status_consumer.h',
    474         'login/auth/mock_authenticator.cc',
    475         'login/auth/mock_authenticator.h',
    476         'login/auth/mock_url_fetchers.cc',
    477         'login/auth/mock_url_fetchers.h',
    478         'network/fake_network_device_handler.cc',
    479         'network/fake_network_device_handler.h',
    480         'network/mock_managed_network_configuration_handler.cc',
    481         'network/mock_managed_network_configuration_handler.h',
    482         'network/onc/onc_test_utils.cc',
    483         'network/onc/onc_test_utils.h',
    484         'system/mock_statistics_provider.cc',
    485         'system/mock_statistics_provider.h',
    486       ],
    487       'include_dirs': [
    488         '..',
    489       ],
    490     },
    491     {
    492       'target_name': 'chromeos_test_support_without_gmock',
    493       'type': 'static_library',
    494       'export_dependent_settings': [
    495         # fake_power_manager_client.h includes pb.h files.
    496         'power_manager_proto',
    497       ],
    498       'dependencies': [
    499         '../build/linux/system.gyp:dbus',
    500         '../crypto/crypto.gyp:crypto',
    501         '../dbus/dbus.gyp:dbus',
    502         'chromeos',
    503         'cryptohome_proto',
    504         'power_manager_proto',
    505       ],
    506       'sources': [
    507         'dbus/fake_cros_disks_client.cc',
    508         'dbus/fake_cros_disks_client.h',
    509         'dbus/fake_power_manager_client.cc',
    510         'dbus/fake_power_manager_client.h',
    511         'dbus/fake_session_manager_client.cc',
    512         'dbus/fake_session_manager_client.h',
    513         'dbus/fake_shill_manager_client.cc',
    514         'dbus/fake_shill_manager_client.h',
    515         'dbus/fake_update_engine_client.cc',
    516         'dbus/fake_update_engine_client.h',
    517         'ime/fake_input_method_delegate.cc',
    518         'ime/fake_input_method_delegate.h',
    519       ],
    520       'include_dirs': [
    521         '..',
    522       ],
    523     },
    524     {
    525       'target_name': 'chromeos_unittests',
    526       'type': 'executable',
    527       'dependencies': [
    528         '../base/base.gyp:run_all_unittests',
    529         '../base/base.gyp:test_support_base',
    530         '../build/linux/system.gyp:dbus',
    531         '../build/linux/system.gyp:ssl',
    532         '../components/components.gyp:onc_component',
    533         '../content/content_shell_and_tests.gyp:test_support_content',
    534         '../crypto/crypto.gyp:crypto',
    535         '../crypto/crypto.gyp:crypto_test_support',
    536         '../dbus/dbus.gyp:dbus_test_support',
    537         '../google_apis/google_apis.gyp:google_apis',
    538         '../net/net.gyp:net',
    539         '../net/net.gyp:net_test_support',
    540         '../testing/gmock.gyp:gmock',
    541         '../testing/gtest.gyp:gtest',
    542         '../url/url.gyp:url_lib',
    543         'chromeos_test_support',
    544         'cryptohome_proto',
    545         'power_manager_proto',
    546       ],
    547       'sources': [
    548         'app_mode/kiosk_oem_manifest_parser_unittest.cc',
    549         'attestation/attestation_flow_unittest.cc',
    550         'audio/cras_audio_handler_unittest.cc',
    551         'cert_loader_unittest.cc',
    552         'cryptohome/homedir_methods_unittest.cc',
    553         'cryptohome/system_salt_getter_unittest.cc',
    554         'dbus/blocking_method_caller_unittest.cc',
    555         'dbus/cros_disks_client_unittest.cc',
    556         'dbus/dbus_client_bundle_unittest.cc',
    557         'dbus/fake_easy_unlock_client_unittest.cc',
    558         'dbus/gsm_sms_client_unittest.cc',
    559         'dbus/introspectable_client_unittest.cc',
    560         'dbus/modem_messaging_client_unittest.cc',
    561         'dbus/nfc_client_unittest.cc',
    562         'dbus/power_policy_controller_unittest.cc',
    563         'dbus/shill_client_unittest_base.cc',
    564         'dbus/shill_client_unittest_base.h',
    565         'dbus/shill_device_client_unittest.cc',
    566         'dbus/shill_ipconfig_client_unittest.cc',
    567         'dbus/shill_manager_client_unittest.cc',
    568         'dbus/shill_profile_client_unittest.cc',
    569         'dbus/shill_service_client_unittest.cc',
    570         'disks/disk_mount_manager_unittest.cc',
    571         'ime/component_extension_ime_manager_unittest.cc',
    572         'ime/composition_text_unittest.cc',
    573         'ime/extension_ime_util_unittest.cc',
    574         'ime/ime_keyboard_x11_unittest.cc',
    575         'ime/input_method_manager.h',
    576         'ime/input_method_whitelist_unittest.cc',
    577         'login/auth/key_unittest.cc',
    578         'login/login_state_unittest.cc',
    579         'network/client_cert_resolver_unittest.cc',
    580         'network/geolocation_handler_unittest.cc',
    581         'network/host_resolver_impl_chromeos_unittest.cc',
    582         'network/managed_network_configuration_handler_unittest.cc',
    583         'network/network_cert_migrator_unittest.cc',
    584         'network/network_change_notifier_chromeos_unittest.cc',
    585         'network/network_configuration_handler_unittest.cc',
    586         'network/network_connection_handler_unittest.cc',
    587         'network/network_device_handler_unittest.cc',
    588         'network/network_event_log_unittest.cc',
    589         'network/network_profile_handler_stub.h',
    590         'network/network_sms_handler_unittest.cc',
    591         'network/network_state_handler_unittest.cc',
    592         'network/network_state_unittest.cc',
    593         'network/network_type_pattern_unittest.cc',
    594         'network/network_ui_data_unittest.cc',
    595         'network/network_util_unittest.cc',
    596         'network/onc/onc_certificate_importer_impl_unittest.cc',
    597         'network/onc/onc_merger_unittest.cc',
    598         'network/onc/onc_normalizer_unittest.cc',
    599         'network/onc/onc_translator_unittest.cc',
    600         'network/onc/onc_utils_unittest.cc',
    601         'network/onc/onc_validator_unittest.cc',
    602         'network/shill_property_handler_unittest.cc',
    603         'process_proxy/process_output_watcher_unittest.cc',
    604         'process_proxy/process_proxy_unittest.cc',
    605         'system/name_value_pairs_parser_unittest.cc',
    606       ],
    607       'include_dirs': [
    608         '..',
    609       ],
    610       'conditions': [
    611         [ 'use_allocator!="none"', {
    612            'dependencies': [
    613               '../base/allocator/allocator.gyp:allocator',
    614             ],
    615           },
    616         ],
    617         ['use_x11 == 1', {
    618           'dependencies': [
    619             '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
    620           ],
    621         }]
    622       ],
    623     },
    624     {
    625       # Protobuf compiler/generator for power-manager related protocol buffers.
    626       'target_name': 'power_manager_proto',
    627       'type': 'static_library',
    628       'sources': [
    629         '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
    630         '../third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto',
    631         '../third_party/cros_system_api/dbus/power_manager/policy.proto',
    632         '../third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto',
    633         '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
    634       ],
    635       'variables': {
    636         'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
    637         'proto_out_dir': 'chromeos/dbus/power_manager',
    638       },
    639       'includes': ['../build/protoc.gypi'],
    640     },
    641     {
    642       # Protobuf compiler/generator for cryptohome related protocol buffers.
    643       'target_name': 'cryptohome_proto',
    644       'type': 'static_library',
    645       'sources': [
    646         '../third_party/cros_system_api/dbus/cryptohome/key.proto',
    647         '../third_party/cros_system_api/dbus/cryptohome/rpc.proto',
    648       ],
    649       'variables': {
    650         'proto_in_dir': '../third_party/cros_system_api/dbus/cryptohome',
    651         'proto_out_dir': 'chromeos/dbus/cryptohome',
    652       },
    653       'includes': ['../build/protoc.gypi'],
    654     },
    655     {
    656       # Protobuf compiler/generator for cryptohome key signing protocol buffer.
    657       'target_name': 'cryptohome_signkey_proto',
    658       'type': 'static_library',
    659       'sources': [
    660         '../third_party/cros_system_api/dbus/cryptohome/signed_secret.proto',
    661       ],
    662       'variables': {
    663         'proto_in_dir': '../third_party/cros_system_api/dbus/cryptohome',
    664         'proto_out_dir': 'chromeos/cryptohome',
    665       },
    666       'includes': ['../build/protoc.gypi'],
    667     },
    668 
    669   ],
    670 }
    671