[email protected] | af4ac5de8 | 2012-04-05 00:50:27 | [diff] [blame] | 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 | 'targets': [ |
| 10 | { |
| 11 | 'target_name': 'chromeos', |
| 12 | 'type': '<(component)', |
| 13 | 'dependencies': [ |
| 14 | '../base/base.gyp:base', |
[email protected] | 64e19925 | 2012-04-06 01:54:36 | [diff] [blame^] | 15 | '../build/linux/system.gyp:dbus', |
| 16 | '../dbus/dbus.gyp:dbus', |
| 17 | '../net/net.gyp:net', |
| 18 | 'power_state_control_proto', |
| 19 | 'power_supply_properties_proto', |
[email protected] | af4ac5de8 | 2012-04-05 00:50:27 | [diff] [blame] | 20 | ], |
| 21 | 'sources': [ |
| 22 | 'chromeos_export.h', |
[email protected] | 64e19925 | 2012-04-06 01:54:36 | [diff] [blame^] | 23 | 'dbus/blocking_method_caller.cc', |
| 24 | 'dbus/blocking_method_caller.h', |
| 25 | 'dbus/bluetooth_adapter_client.cc', |
| 26 | 'dbus/bluetooth_adapter_client.h', |
| 27 | 'dbus/bluetooth_agent_service_provider.cc', |
| 28 | 'dbus/bluetooth_agent_service_provider.h', |
| 29 | 'dbus/bluetooth_device_client.cc', |
| 30 | 'dbus/bluetooth_device_client.h', |
| 31 | 'dbus/bluetooth_input_client.cc', |
| 32 | 'dbus/bluetooth_input_client.h', |
| 33 | 'dbus/bluetooth_manager_client.cc', |
| 34 | 'dbus/bluetooth_manager_client.h', |
| 35 | 'dbus/bluetooth_node_client.cc', |
| 36 | 'dbus/bluetooth_node_client.h', |
| 37 | 'dbus/bluetooth_property.cc', |
| 38 | 'dbus/bluetooth_property.h', |
| 39 | 'dbus/cashew_client.cc', |
| 40 | 'dbus/cashew_client.h', |
| 41 | 'dbus/cros_disks_client.cc', |
| 42 | 'dbus/cros_disks_client.h', |
| 43 | 'dbus/cryptohome_client.cc', |
| 44 | 'dbus/cryptohome_client.h', |
| 45 | 'dbus/dbus_client_implementation_type.h', |
| 46 | 'dbus/dbus_method_call_status.h', |
| 47 | 'dbus/dbus_thread_manager.cc', |
| 48 | 'dbus/dbus_thread_manager.h', |
| 49 | 'dbus/debug_daemon_client.cc', |
| 50 | 'dbus/debug_daemon_client.h', |
| 51 | 'dbus/cryptohome_client.h', |
| 52 | 'dbus/flimflam_ipconfig_client.cc', |
| 53 | 'dbus/flimflam_ipconfig_client.h', |
| 54 | 'dbus/flimflam_client_helper.cc', |
| 55 | 'dbus/flimflam_client_helper.h', |
| 56 | 'dbus/flimflam_network_client.cc', |
| 57 | 'dbus/flimflam_network_client.h', |
| 58 | 'dbus/flimflam_profile_client.cc', |
| 59 | 'dbus/flimflam_profile_client.h', |
| 60 | 'dbus/image_burner_client.cc', |
| 61 | 'dbus/image_burner_client.h', |
| 62 | 'dbus/introspectable_client.cc', |
| 63 | 'dbus/introspectable_client.h', |
| 64 | 'dbus/power_manager_client.cc', |
| 65 | 'dbus/power_manager_client.h', |
[email protected] | af4ac5de8 | 2012-04-05 00:50:27 | [diff] [blame] | 66 | 'dbus/power_supply_status.cc', |
| 67 | 'dbus/power_supply_status.h', |
[email protected] | 64e19925 | 2012-04-06 01:54:36 | [diff] [blame^] | 68 | 'dbus/session_manager_client.cc', |
| 69 | 'dbus/session_manager_client.h', |
| 70 | 'dbus/speech_synthesizer_client.cc', |
| 71 | 'dbus/speech_synthesizer_client.h', |
| 72 | 'dbus/update_engine_client.cc', |
| 73 | 'dbus/update_engine_client.h', |
[email protected] | af4ac5de8 | 2012-04-05 00:50:27 | [diff] [blame] | 74 | ], |
| 75 | }, |
[email protected] | 64e19925 | 2012-04-06 01:54:36 | [diff] [blame^] | 76 | { |
| 77 | # This target contains mocks that can be used to write unit tests. |
| 78 | 'target_name': 'chromeos_test_support', |
| 79 | 'type': 'static_library', |
| 80 | 'dependencies': [ |
| 81 | '../build/linux/system.gyp:dbus', |
| 82 | '../testing/gmock.gyp:gmock', |
| 83 | 'chromeos', |
| 84 | ], |
| 85 | 'sources': [ |
| 86 | 'dbus/mock_bluetooth_adapter_client.cc', |
| 87 | 'dbus/mock_bluetooth_adapter_client.h', |
| 88 | 'dbus/mock_bluetooth_device_client.cc', |
| 89 | 'dbus/mock_bluetooth_device_client.h', |
| 90 | 'dbus/mock_bluetooth_input_client.cc', |
| 91 | 'dbus/mock_bluetooth_input_client.h', |
| 92 | 'dbus/mock_bluetooth_manager_client.cc', |
| 93 | 'dbus/mock_bluetooth_manager_client.h', |
| 94 | 'dbus/mock_bluetooth_node_client.cc', |
| 95 | 'dbus/mock_bluetooth_node_client.h', |
| 96 | 'dbus/mock_cros_disks_client.cc', |
| 97 | 'dbus/mock_cros_disks_client.h', |
| 98 | 'dbus/mock_cashew_client.cc', |
| 99 | 'dbus/mock_cashew_client.h', |
| 100 | 'dbus/mock_cryptohome_client.cc', |
| 101 | 'dbus/mock_cryptohome_client.h', |
| 102 | 'dbus/mock_dbus_thread_manager.cc', |
| 103 | 'dbus/mock_dbus_thread_manager.h', |
| 104 | 'dbus/mock_debug_daemon_client.cc', |
| 105 | 'dbus/mock_debug_daemon_client.h', |
| 106 | 'dbus/mock_flimflam_ipconfig_client.cc', |
| 107 | 'dbus/mock_flimflam_ipconfig_client.h', |
| 108 | 'dbus/mock_flimflam_network_client.cc', |
| 109 | 'dbus/mock_flimflam_network_client.h', |
| 110 | 'dbus/mock_flimflam_profile_client.cc', |
| 111 | 'dbus/mock_flimflam_profile_client.h', |
| 112 | 'dbus/mock_image_burner_client.cc', |
| 113 | 'dbus/mock_image_burner_client.h', |
| 114 | 'dbus/mock_introspectable_client.cc', |
| 115 | 'dbus/mock_introspectable_client.h', |
| 116 | 'dbus/mock_power_manager_client.cc', |
| 117 | 'dbus/mock_power_manager_client.h', |
| 118 | 'dbus/mock_session_manager_client.cc', |
| 119 | 'dbus/mock_session_manager_client.h', |
| 120 | 'dbus/mock_speech_synthesizer_client.cc', |
| 121 | 'dbus/mock_speech_synthesizer_client.h', |
| 122 | 'dbus/mock_update_engine_client.cc', |
| 123 | 'dbus/mock_update_engine_client.h', |
| 124 | ], |
| 125 | 'include_dirs': [ |
| 126 | '..', |
| 127 | ], |
| 128 | }, |
| 129 | { |
| 130 | 'target_name': 'chromeos_unittests', |
| 131 | 'type': 'executable', |
| 132 | 'dependencies': [ |
| 133 | '../base/base.gyp:run_all_unittests', |
| 134 | '../base/base.gyp:test_support_base', |
| 135 | '../build/linux/system.gyp:dbus', |
| 136 | '../dbus/dbus.gyp:dbus_test_support', |
| 137 | '../testing/gmock.gyp:gmock', |
| 138 | '../testing/gtest.gyp:gtest', |
| 139 | 'chromeos_test_support', |
| 140 | ], |
| 141 | 'sources': [ |
| 142 | 'dbus/blocking_method_caller_unittest.cc', |
| 143 | 'dbus/flimflam_client_unittest_base.cc', |
| 144 | 'dbus/flimflam_client_unittest_base.h', |
| 145 | 'dbus/flimflam_network_client_unittest.cc', |
| 146 | ], |
| 147 | 'include_dirs': [ |
| 148 | '..', |
| 149 | ], |
| 150 | }, |
| 151 | { |
| 152 | # Protobuf compiler / generator for the PowerSupplyProperties protocol |
| 153 | # buffer. |
| 154 | 'target_name': 'power_state_control_proto', |
| 155 | 'type': 'static_library', |
| 156 | 'sources': [ |
| 157 | '../third_party/cros_system_api/dbus/power_state_control.proto', |
| 158 | ], |
| 159 | 'variables': { |
| 160 | 'proto_in_dir': '../third_party/cros_system_api/dbus/', |
| 161 | 'proto_out_dir': 'chromeos/dbus', |
| 162 | }, |
| 163 | 'includes': ['../build/protoc.gypi'], |
| 164 | }, |
| 165 | { |
| 166 | # Protobuf compiler / generator for the PowerSupplyProperties protocol |
| 167 | # buffer. |
| 168 | 'target_name': 'power_supply_properties_proto', |
| 169 | 'type': 'static_library', |
| 170 | 'sources': [ |
| 171 | '../third_party/cros_system_api/dbus/power_supply_properties.proto', |
| 172 | ], |
| 173 | 'variables': { |
| 174 | 'proto_in_dir': '../third_party/cros_system_api/dbus/', |
| 175 | 'proto_out_dir': 'chromeos/dbus', |
| 176 | }, |
| 177 | 'includes': ['../build/protoc.gypi'], |
| 178 | }, |
| 179 | ], |
[email protected] | af4ac5de8 | 2012-04-05 00:50:27 | [diff] [blame] | 180 | } |