| # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| { |
| 'variables': { |
| 'chromium_code': 1, |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'chromeos', |
| 'type': '<(component)', |
| 'dependencies': [ |
| '../base/base.gyp:base', |
| '../build/linux/system.gyp:dbus', |
| '../dbus/dbus.gyp:dbus', |
| '../net/net.gyp:net', |
| '../third_party/libxml/libxml.gyp:libxml', |
| 'mtp_file_entry_proto', |
| 'mtp_storage_info_proto', |
| 'power_state_control_proto', |
| 'power_supply_properties_proto', |
| 'video_activity_update_proto', |
| ], |
| 'defines': [ |
| 'CHROMEOS_IMPLEMENTATION', |
| ], |
| 'sources': [ |
| 'chromeos_export.h', |
| 'chromeos_switches.cc', |
| 'chromeos_switches.h', |
| 'cryptohome/async_method_caller.cc', |
| 'cryptohome/async_method_caller.h', |
| 'dbus/blocking_method_caller.cc', |
| 'dbus/blocking_method_caller.h', |
| 'dbus/bluetooth_adapter_client.cc', |
| 'dbus/bluetooth_adapter_client.h', |
| 'dbus/bluetooth_agent_service_provider.cc', |
| 'dbus/bluetooth_agent_service_provider.h', |
| 'dbus/bluetooth_device_client.cc', |
| 'dbus/bluetooth_device_client.h', |
| 'dbus/bluetooth_input_client.cc', |
| 'dbus/bluetooth_input_client.h', |
| 'dbus/bluetooth_manager_client.cc', |
| 'dbus/bluetooth_manager_client.h', |
| 'dbus/bluetooth_node_client.cc', |
| 'dbus/bluetooth_node_client.h', |
| 'dbus/bluetooth_out_of_band_client.cc', |
| 'dbus/bluetooth_out_of_band_client.h', |
| 'dbus/bluetooth_property.cc', |
| 'dbus/bluetooth_property.h', |
| 'dbus/cashew_client.cc', |
| 'dbus/cashew_client.h', |
| 'dbus/cros_disks_client.cc', |
| 'dbus/cros_disks_client.h', |
| 'dbus/cryptohome_client.cc', |
| 'dbus/cryptohome_client.h', |
| 'dbus/dbus_client_implementation_type.h', |
| 'dbus/dbus_method_call_status.h', |
| 'dbus/dbus_thread_manager.cc', |
| 'dbus/dbus_thread_manager.h', |
| 'dbus/debug_daemon_client.cc', |
| 'dbus/debug_daemon_client.h', |
| 'dbus/gsm_sms_client.cc', |
| 'dbus/gsm_sms_client.h', |
| 'dbus/shill_ipconfig_client.cc', |
| 'dbus/shill_ipconfig_client.h', |
| 'dbus/shill_client_helper.cc', |
| 'dbus/shill_client_helper.h', |
| 'dbus/shill_device_client.cc', |
| 'dbus/shill_device_client.h', |
| 'dbus/shill_manager_client.cc', |
| 'dbus/shill_manager_client.h', |
| 'dbus/shill_network_client.cc', |
| 'dbus/shill_network_client.h', |
| 'dbus/shill_profile_client.cc', |
| 'dbus/shill_profile_client.h', |
| 'dbus/shill_service_client.cc', |
| 'dbus/shill_service_client.h', |
| 'dbus/ibus/ibus_client.cc', |
| 'dbus/ibus/ibus_client.h', |
| 'dbus/ibus/ibus_component.cc', |
| 'dbus/ibus/ibus_component.h', |
| 'dbus/ibus/ibus_constants.h', |
| 'dbus/ibus/ibus_engine_service.cc', |
| 'dbus/ibus/ibus_engine_service.h', |
| 'dbus/ibus/ibus_engine_factory_service.cc', |
| 'dbus/ibus/ibus_engine_factory_service.h', |
| 'dbus/ibus/ibus_lookup_table.cc', |
| 'dbus/ibus/ibus_lookup_table.h', |
| 'dbus/ibus/ibus_object.cc', |
| 'dbus/ibus/ibus_object.h', |
| 'dbus/ibus/ibus_property.cc', |
| 'dbus/ibus/ibus_property.h', |
| 'dbus/ibus/ibus_text.cc', |
| 'dbus/ibus/ibus_text.h', |
| 'dbus/ibus/ibus_input_context_client.cc', |
| 'dbus/ibus/ibus_input_context_client.h', |
| 'dbus/image_burner_client.cc', |
| 'dbus/image_burner_client.h', |
| 'dbus/introspectable_client.cc', |
| 'dbus/introspectable_client.h', |
| 'dbus/media_transfer_protocol_daemon_client.cc', |
| 'dbus/media_transfer_protocol_daemon_client.h', |
| 'dbus/modem_messaging_client.cc', |
| 'dbus/modem_messaging_client.h', |
| 'dbus/permission_broker_client.cc', |
| 'dbus/permission_broker_client.h', |
| 'dbus/power_manager_client.cc', |
| 'dbus/power_manager_client.h', |
| 'dbus/power_supply_status.cc', |
| 'dbus/power_supply_status.h', |
| 'dbus/session_manager_client.cc', |
| 'dbus/session_manager_client.h', |
| 'dbus/speech_synthesizer_client.cc', |
| 'dbus/speech_synthesizer_client.h', |
| 'dbus/sms_client.cc', |
| 'dbus/sms_client.h', |
| 'dbus/update_engine_client.cc', |
| 'dbus/update_engine_client.h', |
| 'disks/disk_mount_manager.cc', |
| 'disks/disk_mount_manager.h', |
| 'display/output_configurator.cc', |
| 'display/output_configurator.h', |
| 'network/network_sms_handler.cc', |
| 'network/network_sms_handler.h', |
| 'power/power_state_override.cc', |
| 'power/power_state_override.h', |
| ], |
| 'link_settings': { |
| 'libraries': [ |
| '-lXext', |
| '-lXrandr', |
| ], |
| }, |
| }, |
| { |
| # This target contains mocks that can be used to write unit tests. |
| 'target_name': 'chromeos_test_support', |
| 'type': 'static_library', |
| 'dependencies': [ |
| '../build/linux/system.gyp:dbus', |
| '../testing/gmock.gyp:gmock', |
| 'chromeos', |
| 'mtp_file_entry_proto', |
| ], |
| 'sources': [ |
| 'cryptohome/mock_async_method_caller.cc', |
| 'cryptohome/mock_async_method_caller.h', |
| 'dbus/mock_bluetooth_adapter_client.cc', |
| 'dbus/mock_bluetooth_adapter_client.h', |
| 'dbus/mock_bluetooth_device_client.cc', |
| 'dbus/mock_bluetooth_device_client.h', |
| 'dbus/mock_bluetooth_input_client.cc', |
| 'dbus/mock_bluetooth_input_client.h', |
| 'dbus/mock_bluetooth_manager_client.cc', |
| 'dbus/mock_bluetooth_manager_client.h', |
| 'dbus/mock_bluetooth_node_client.cc', |
| 'dbus/mock_bluetooth_node_client.h', |
| 'dbus/mock_bluetooth_out_of_band_client.cc', |
| 'dbus/mock_bluetooth_out_of_band_client.h', |
| 'dbus/mock_cashew_client.cc', |
| 'dbus/mock_cashew_client.h', |
| 'dbus/mock_cros_disks_client.cc', |
| 'dbus/mock_cros_disks_client.h', |
| 'dbus/mock_cryptohome_client.cc', |
| 'dbus/mock_cryptohome_client.h', |
| 'dbus/mock_dbus_thread_manager.cc', |
| 'dbus/mock_dbus_thread_manager.h', |
| 'dbus/mock_debug_daemon_client.cc', |
| 'dbus/mock_debug_daemon_client.h', |
| 'dbus/mock_shill_device_client.cc', |
| 'dbus/mock_shill_device_client.h', |
| 'dbus/mock_shill_ipconfig_client.cc', |
| 'dbus/mock_shill_ipconfig_client.h', |
| 'dbus/mock_shill_manager_client.cc', |
| 'dbus/mock_shill_manager_client.h', |
| 'dbus/mock_shill_network_client.cc', |
| 'dbus/mock_shill_network_client.h', |
| 'dbus/mock_shill_profile_client.cc', |
| 'dbus/mock_shill_profile_client.h', |
| 'dbus/mock_shill_service_client.cc', |
| 'dbus/mock_shill_service_client.h', |
| 'dbus/mock_gsm_sms_client.cc', |
| 'dbus/mock_gsm_sms_client.h', |
| 'dbus/mock_image_burner_client.cc', |
| 'dbus/mock_image_burner_client.h', |
| 'dbus/mock_introspectable_client.cc', |
| 'dbus/mock_introspectable_client.h', |
| 'dbus/mock_media_transfer_protocol_daemon_client.cc', |
| 'dbus/mock_media_transfer_protocol_daemon_client.h', |
| 'dbus/mock_modem_messaging_client.cc', |
| 'dbus/mock_modem_messaging_client.h', |
| 'dbus/mock_permission_broker_client.h', |
| 'dbus/mock_permission_broker_client.cc', |
| 'dbus/mock_power_manager_client.cc', |
| 'dbus/mock_power_manager_client.h', |
| 'dbus/mock_session_manager_client.cc', |
| 'dbus/mock_session_manager_client.h', |
| 'dbus/mock_sms_client.cc', |
| 'dbus/mock_sms_client.h', |
| 'dbus/mock_speech_synthesizer_client.cc', |
| 'dbus/mock_speech_synthesizer_client.h', |
| 'dbus/mock_update_engine_client.cc', |
| 'dbus/mock_update_engine_client.h', |
| 'disks/mock_disk_mount_manager.cc', |
| 'disks/mock_disk_mount_manager.h', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| }, |
| { |
| 'target_name': 'chromeos_test_support_without_gmock', |
| 'type': 'static_library', |
| 'dependencies': [ |
| '../build/linux/system.gyp:dbus', |
| 'chromeos', |
| ], |
| 'sources': [ |
| 'dbus/mock_dbus_thread_manager_without_gmock.cc', |
| 'dbus/mock_dbus_thread_manager_without_gmock.h', |
| 'dbus/ibus/mock_ibus_client.cc', |
| 'dbus/ibus/mock_ibus_client.h', |
| 'dbus/ibus/mock_ibus_input_context_client.cc', |
| 'dbus/ibus/mock_ibus_input_context_client.h', |
| 'dbus/ibus/mock_ibus_engine_factory_service.cc', |
| 'dbus/ibus/mock_ibus_engine_factory_service.h', |
| 'dbus/ibus/mock_ibus_engine_service.cc', |
| 'dbus/ibus/mock_ibus_engine_service.h', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| }, |
| { |
| 'target_name': 'chromeos_unittests', |
| 'type': 'executable', |
| 'dependencies': [ |
| '../base/base.gyp:run_all_unittests', |
| '../base/base.gyp:test_support_base', |
| '../build/linux/system.gyp:dbus', |
| '../dbus/dbus.gyp:dbus_test_support', |
| '../testing/gmock.gyp:gmock', |
| '../testing/gtest.gyp:gtest', |
| 'chromeos_test_support', |
| ], |
| 'sources': [ |
| 'display/output_configurator_unittest.cc', |
| 'dbus/blocking_method_caller_unittest.cc', |
| 'dbus/shill_client_unittest_base.cc', |
| 'dbus/shill_client_unittest_base.h', |
| 'dbus/shill_device_client_unittest.cc', |
| 'dbus/shill_ipconfig_client_unittest.cc', |
| 'dbus/shill_manager_client_unittest.cc', |
| 'dbus/shill_network_client_unittest.cc', |
| 'dbus/shill_profile_client_unittest.cc', |
| 'dbus/shill_service_client_unittest.cc', |
| 'dbus/gsm_sms_client_unittest.cc', |
| 'dbus/ibus/ibus_client_unittest.cc', |
| 'dbus/ibus/ibus_component_unittest.cc', |
| 'dbus/ibus/ibus_engine_factory_service_unittest.cc', |
| 'dbus/ibus/ibus_engine_service_unittest.cc', |
| 'dbus/ibus/ibus_input_context_client_unittest.cc', |
| 'dbus/ibus/ibus_lookup_table_unittest.cc', |
| 'dbus/ibus/ibus_object_unittest.cc', |
| 'dbus/ibus/ibus_property_unittest.cc', |
| 'dbus/ibus/ibus_text_unittest.cc', |
| 'dbus/introspectable_client_unittest.cc', |
| 'dbus/modem_messaging_client_unittest.cc', |
| 'network/network_sms_handler_unittest.cc', |
| 'power/power_state_override_unittest.cc', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| 'conditions': [ |
| [ 'linux_use_tcmalloc==1', { |
| 'dependencies': [ |
| '../base/allocator/allocator.gyp:allocator', |
| ], |
| }, |
| ], |
| ], |
| }, |
| { |
| # Protobuf compiler / generator for the MtpFileEntry and MtpFileEntries |
| # protocol buffers. |
| 'target_name': 'mtp_file_entry_proto', |
| 'type': 'static_library', |
| 'sources': [ |
| '../third_party/cros_system_api/dbus/mtp_file_entry.proto', |
| ], |
| 'variables': { |
| 'proto_in_dir': '../third_party/cros_system_api/dbus', |
| 'proto_out_dir': 'chromeos/dbus', |
| 'cc_generator_options': 'dllexport_decl=CHROMEOS_EXPORT:', |
| 'cc_include': 'chromeos/chromeos_export.h', |
| }, |
| 'includes': ['../build/protoc.gypi'], |
| }, |
| { |
| # Protobuf compiler / generator for the MtpStorageInfo protocol buffers. |
| 'target_name': 'mtp_storage_info_proto', |
| 'type': 'static_library', |
| 'sources': [ |
| '../third_party/cros_system_api/dbus/mtp_storage_info.proto', |
| ], |
| 'variables': { |
| 'proto_in_dir': '../third_party/cros_system_api/dbus', |
| 'proto_out_dir': 'chromeos/dbus', |
| 'cc_generator_options': 'dllexport_decl=CHROMEOS_EXPORT:', |
| 'cc_include': 'chromeos/chromeos_export.h', |
| }, |
| 'includes': ['../build/protoc.gypi'], |
| }, |
| { |
| # Protobuf compiler / generator for the PowerSupplyProperties protocol |
| # buffer. |
| 'target_name': 'power_state_control_proto', |
| 'type': 'static_library', |
| 'sources': [ |
| '../third_party/cros_system_api/dbus/power_state_control.proto', |
| ], |
| 'variables': { |
| 'proto_in_dir': '../third_party/cros_system_api/dbus', |
| 'proto_out_dir': 'chromeos/dbus', |
| }, |
| 'includes': ['../build/protoc.gypi'], |
| }, |
| { |
| # Protobuf compiler / generator for the PowerSupplyProperties protocol |
| # buffer. |
| 'target_name': 'power_supply_properties_proto', |
| 'type': 'static_library', |
| 'sources': [ |
| '../third_party/cros_system_api/dbus/power_supply_properties.proto', |
| ], |
| 'variables': { |
| 'proto_in_dir': '../third_party/cros_system_api/dbus', |
| 'proto_out_dir': 'chromeos/dbus', |
| }, |
| 'includes': ['../build/protoc.gypi'], |
| }, |
| { |
| # Protobuf compiler / generator for the VideoActivityUpdate protocol |
| # buffer. |
| 'target_name': 'video_activity_update_proto', |
| 'type': 'static_library', |
| 'sources': [ |
| '../third_party/cros_system_api/dbus/video_activity_update.proto', |
| ], |
| 'variables': { |
| 'proto_in_dir': '../third_party/cros_system_api/dbus/', |
| 'proto_out_dir': 'chromeos/dbus', |
| }, |
| 'includes': ['../build/protoc.gypi'], |
| }, |
| ], |
| } |