blob: 5a16ad8d64c5761a211b01635cfeebf02a487a26 [file] [log] [blame]
[email protected]af4ac5de82012-04-05 00:50:271# 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]64e199252012-04-06 01:54:3615 '../build/linux/system.gyp:dbus',
16 '../dbus/dbus.gyp:dbus',
17 '../net/net.gyp:net',
[email protected]b6ebf072012-05-30 10:44:3418 '../third_party/libxml/libxml.gyp:libxml',
[email protected]64e199252012-04-06 01:54:3619 'power_state_control_proto',
20 'power_supply_properties_proto',
[email protected]960058f2012-09-11 13:23:3121 'video_activity_update_proto',
[email protected]af4ac5de82012-04-05 00:50:2722 ],
[email protected]b3878642012-05-15 15:04:3223 'defines': [
24 'CHROMEOS_IMPLEMENTATION',
25 ],
[email protected]af4ac5de82012-04-05 00:50:2726 'sources': [
27 'chromeos_export.h',
[email protected]66149a5c2012-05-11 19:14:2728 'chromeos_switches.cc',
29 'chromeos_switches.h',
[email protected]6666e5bf2012-08-26 12:11:3730 'cryptohome/async_method_caller.cc',
31 'cryptohome/async_method_caller.h',
[email protected]64e199252012-04-06 01:54:3632 'dbus/blocking_method_caller.cc',
33 'dbus/blocking_method_caller.h',
34 'dbus/bluetooth_adapter_client.cc',
35 'dbus/bluetooth_adapter_client.h',
36 'dbus/bluetooth_agent_service_provider.cc',
37 'dbus/bluetooth_agent_service_provider.h',
38 'dbus/bluetooth_device_client.cc',
39 'dbus/bluetooth_device_client.h',
40 'dbus/bluetooth_input_client.cc',
41 'dbus/bluetooth_input_client.h',
42 'dbus/bluetooth_manager_client.cc',
43 'dbus/bluetooth_manager_client.h',
44 'dbus/bluetooth_node_client.cc',
45 'dbus/bluetooth_node_client.h',
[email protected]2b7c40d2012-06-15 03:50:4546 'dbus/bluetooth_out_of_band_client.cc',
47 'dbus/bluetooth_out_of_band_client.h',
[email protected]64e199252012-04-06 01:54:3648 'dbus/bluetooth_property.cc',
49 'dbus/bluetooth_property.h',
50 'dbus/cashew_client.cc',
51 'dbus/cashew_client.h',
52 'dbus/cros_disks_client.cc',
53 'dbus/cros_disks_client.h',
54 'dbus/cryptohome_client.cc',
55 'dbus/cryptohome_client.h',
56 'dbus/dbus_client_implementation_type.h',
57 'dbus/dbus_method_call_status.h',
58 'dbus/dbus_thread_manager.cc',
59 'dbus/dbus_thread_manager.h',
60 'dbus/debug_daemon_client.cc',
61 'dbus/debug_daemon_client.h',
[email protected]3e87a6c2012-04-19 08:18:4862 'dbus/gsm_sms_client.cc',
63 'dbus/gsm_sms_client.h',
[email protected]07c674cd2012-09-07 20:53:5664 'dbus/shill_ipconfig_client.cc',
65 'dbus/shill_ipconfig_client.h',
66 'dbus/shill_client_helper.cc',
67 'dbus/shill_client_helper.h',
68 'dbus/shill_device_client.cc',
69 'dbus/shill_device_client.h',
70 'dbus/shill_manager_client.cc',
71 'dbus/shill_manager_client.h',
72 'dbus/shill_network_client.cc',
73 'dbus/shill_network_client.h',
74 'dbus/shill_profile_client.cc',
75 'dbus/shill_profile_client.h',
76 'dbus/shill_service_client.cc',
77 'dbus/shill_service_client.h',
[email protected]ce4f3532012-05-11 20:41:5378 'dbus/ibus/ibus_client.cc',
79 'dbus/ibus/ibus_client.h',
[email protected]f98713f2012-07-09 09:57:4080 'dbus/ibus/ibus_component.cc',
81 'dbus/ibus/ibus_component.h',
[email protected]25fe2042012-11-05 09:43:3182 'dbus/ibus/ibus_config_client.cc',
83 'dbus/ibus/ibus_config_client.h',
[email protected]ce4f3532012-05-11 20:41:5384 'dbus/ibus/ibus_constants.h',
[email protected]7f9876b2012-07-17 06:33:1585 'dbus/ibus/ibus_engine_service.cc',
86 'dbus/ibus/ibus_engine_service.h',
[email protected]f2dca75a2012-07-18 04:11:4887 'dbus/ibus/ibus_engine_factory_service.cc',
88 'dbus/ibus/ibus_engine_factory_service.h',
[email protected]e615bff2012-05-23 17:14:4989 'dbus/ibus/ibus_lookup_table.cc',
90 'dbus/ibus/ibus_lookup_table.h',
[email protected]cd301f3c2012-05-12 00:47:4491 'dbus/ibus/ibus_object.cc',
92 'dbus/ibus/ibus_object.h',
[email protected]b0b6ffa2012-06-22 06:16:3793 'dbus/ibus/ibus_property.cc',
94 'dbus/ibus/ibus_property.h',
[email protected]797510b2012-05-12 02:19:3195 'dbus/ibus/ibus_text.cc',
96 'dbus/ibus/ibus_text.h',
[email protected]2110271e2012-05-23 15:55:4897 'dbus/ibus/ibus_input_context_client.cc',
98 'dbus/ibus/ibus_input_context_client.h',
[email protected]a2f407792012-11-05 09:47:3399 'dbus/ibus/ibus_panel_service.cc',
100 'dbus/ibus/ibus_panel_service.h',
[email protected]64e199252012-04-06 01:54:36101 'dbus/image_burner_client.cc',
102 'dbus/image_burner_client.h',
103 'dbus/introspectable_client.cc',
104 'dbus/introspectable_client.h',
[email protected]88d6fc252012-06-12 08:57:52105 'dbus/modem_messaging_client.cc',
106 'dbus/modem_messaging_client.h',
[email protected]3392da32012-09-07 04:26:53107 'dbus/permission_broker_client.cc',
108 'dbus/permission_broker_client.h',
[email protected]64e199252012-04-06 01:54:36109 'dbus/power_manager_client.cc',
110 'dbus/power_manager_client.h',
[email protected]af4ac5de82012-04-05 00:50:27111 'dbus/power_supply_status.cc',
112 'dbus/power_supply_status.h',
[email protected]64e199252012-04-06 01:54:36113 'dbus/session_manager_client.cc',
114 'dbus/session_manager_client.h',
115 'dbus/speech_synthesizer_client.cc',
116 'dbus/speech_synthesizer_client.h',
[email protected]88d6fc252012-06-12 08:57:52117 'dbus/sms_client.cc',
118 'dbus/sms_client.h',
[email protected]64e199252012-04-06 01:54:36119 'dbus/update_engine_client.cc',
120 'dbus/update_engine_client.h',
[email protected]4cbead42012-08-26 12:02:39121 'disks/disk_mount_manager.cc',
122 'disks/disk_mount_manager.h',
[email protected]2e236a52012-06-27 22:21:47123 'display/output_configurator.cc',
124 'display/output_configurator.h',
[email protected]9c0991fb2012-05-15 01:45:36125 'network/network_sms_handler.cc',
126 'network/network_sms_handler.h',
[email protected]640858922012-09-23 19:28:48127 'power/power_state_override.cc',
128 'power/power_state_override.h',
[email protected]af4ac5de82012-04-05 00:50:27129 ],
[email protected]70b3e7d52012-06-02 22:12:25130 'link_settings': {
131 'libraries': [
132 '-lXext',
[email protected]c235233da2012-09-10 20:13:42133 '-lXrandr',
[email protected]70b3e7d52012-06-02 22:12:25134 ],
135 },
[email protected]af4ac5de82012-04-05 00:50:27136 },
[email protected]64e199252012-04-06 01:54:36137 {
138 # This target contains mocks that can be used to write unit tests.
139 'target_name': 'chromeos_test_support',
140 'type': 'static_library',
141 'dependencies': [
142 '../build/linux/system.gyp:dbus',
143 '../testing/gmock.gyp:gmock',
144 'chromeos',
145 ],
146 'sources': [
[email protected]6666e5bf2012-08-26 12:11:37147 'cryptohome/mock_async_method_caller.cc',
148 'cryptohome/mock_async_method_caller.h',
[email protected]64e199252012-04-06 01:54:36149 'dbus/mock_bluetooth_adapter_client.cc',
150 'dbus/mock_bluetooth_adapter_client.h',
151 'dbus/mock_bluetooth_device_client.cc',
152 'dbus/mock_bluetooth_device_client.h',
153 'dbus/mock_bluetooth_input_client.cc',
154 'dbus/mock_bluetooth_input_client.h',
155 'dbus/mock_bluetooth_manager_client.cc',
156 'dbus/mock_bluetooth_manager_client.h',
157 'dbus/mock_bluetooth_node_client.cc',
158 'dbus/mock_bluetooth_node_client.h',
[email protected]2b7c40d2012-06-15 03:50:45159 'dbus/mock_bluetooth_out_of_band_client.cc',
160 'dbus/mock_bluetooth_out_of_band_client.h',
[email protected]64e199252012-04-06 01:54:36161 'dbus/mock_cashew_client.cc',
162 'dbus/mock_cashew_client.h',
[email protected]85b95a2012012-08-07 18:57:27163 'dbus/mock_cros_disks_client.cc',
164 'dbus/mock_cros_disks_client.h',
[email protected]64e199252012-04-06 01:54:36165 'dbus/mock_cryptohome_client.cc',
166 'dbus/mock_cryptohome_client.h',
167 'dbus/mock_dbus_thread_manager.cc',
168 'dbus/mock_dbus_thread_manager.h',
169 'dbus/mock_debug_daemon_client.cc',
170 'dbus/mock_debug_daemon_client.h',
[email protected]07c674cd2012-09-07 20:53:56171 'dbus/mock_shill_device_client.cc',
172 'dbus/mock_shill_device_client.h',
173 'dbus/mock_shill_ipconfig_client.cc',
174 'dbus/mock_shill_ipconfig_client.h',
175 'dbus/mock_shill_manager_client.cc',
176 'dbus/mock_shill_manager_client.h',
177 'dbus/mock_shill_network_client.cc',
178 'dbus/mock_shill_network_client.h',
179 'dbus/mock_shill_profile_client.cc',
180 'dbus/mock_shill_profile_client.h',
181 'dbus/mock_shill_service_client.cc',
182 'dbus/mock_shill_service_client.h',
[email protected]3e87a6c2012-04-19 08:18:48183 'dbus/mock_gsm_sms_client.cc',
184 'dbus/mock_gsm_sms_client.h',
[email protected]64e199252012-04-06 01:54:36185 'dbus/mock_image_burner_client.cc',
186 'dbus/mock_image_burner_client.h',
187 'dbus/mock_introspectable_client.cc',
188 'dbus/mock_introspectable_client.h',
[email protected]88d6fc252012-06-12 08:57:52189 'dbus/mock_modem_messaging_client.cc',
190 'dbus/mock_modem_messaging_client.h',
[email protected]3392da32012-09-07 04:26:53191 'dbus/mock_permission_broker_client.h',
192 'dbus/mock_permission_broker_client.cc',
[email protected]64e199252012-04-06 01:54:36193 'dbus/mock_power_manager_client.cc',
194 'dbus/mock_power_manager_client.h',
195 'dbus/mock_session_manager_client.cc',
196 'dbus/mock_session_manager_client.h',
[email protected]88d6fc252012-06-12 08:57:52197 'dbus/mock_sms_client.cc',
198 'dbus/mock_sms_client.h',
[email protected]64e199252012-04-06 01:54:36199 'dbus/mock_speech_synthesizer_client.cc',
200 'dbus/mock_speech_synthesizer_client.h',
201 'dbus/mock_update_engine_client.cc',
202 'dbus/mock_update_engine_client.h',
[email protected]4cbead42012-08-26 12:02:39203 'disks/mock_disk_mount_manager.cc',
204 'disks/mock_disk_mount_manager.h',
[email protected]64e199252012-04-06 01:54:36205 ],
206 'include_dirs': [
207 '..',
208 ],
209 },
210 {
[email protected]640858922012-09-23 19:28:48211 'target_name': 'chromeos_test_support_without_gmock',
212 'type': 'static_library',
213 'dependencies': [
214 '../build/linux/system.gyp:dbus',
215 'chromeos',
216 ],
217 'sources': [
218 'dbus/mock_dbus_thread_manager_without_gmock.cc',
219 'dbus/mock_dbus_thread_manager_without_gmock.h',
220 'dbus/ibus/mock_ibus_client.cc',
221 'dbus/ibus/mock_ibus_client.h',
[email protected]25fe2042012-11-05 09:43:31222 'dbus/ibus/mock_ibus_config_client.cc',
223 'dbus/ibus/mock_ibus_config_client.h',
[email protected]640858922012-09-23 19:28:48224 'dbus/ibus/mock_ibus_input_context_client.cc',
225 'dbus/ibus/mock_ibus_input_context_client.h',
226 'dbus/ibus/mock_ibus_engine_factory_service.cc',
227 'dbus/ibus/mock_ibus_engine_factory_service.h',
228 'dbus/ibus/mock_ibus_engine_service.cc',
229 'dbus/ibus/mock_ibus_engine_service.h',
[email protected]a2f407792012-11-05 09:47:33230 'dbus/ibus/mock_ibus_panel_service.cc',
231 'dbus/ibus/mock_ibus_panel_service.h',
[email protected]640858922012-09-23 19:28:48232 ],
233 'include_dirs': [
234 '..',
235 ],
[email protected]400d31532012-06-15 07:41:38236 },
237 {
[email protected]64e199252012-04-06 01:54:36238 'target_name': 'chromeos_unittests',
239 'type': 'executable',
240 'dependencies': [
241 '../base/base.gyp:run_all_unittests',
242 '../base/base.gyp:test_support_base',
243 '../build/linux/system.gyp:dbus',
244 '../dbus/dbus.gyp:dbus_test_support',
245 '../testing/gmock.gyp:gmock',
246 '../testing/gtest.gyp:gtest',
247 'chromeos_test_support',
248 ],
249 'sources': [
[email protected]6d980bc2012-09-10 19:28:45250 'display/output_configurator_unittest.cc',
[email protected]64e199252012-04-06 01:54:36251 'dbus/blocking_method_caller_unittest.cc',
[email protected]07c674cd2012-09-07 20:53:56252 'dbus/shill_client_unittest_base.cc',
253 'dbus/shill_client_unittest_base.h',
254 'dbus/shill_device_client_unittest.cc',
255 'dbus/shill_ipconfig_client_unittest.cc',
256 'dbus/shill_manager_client_unittest.cc',
257 'dbus/shill_network_client_unittest.cc',
258 'dbus/shill_profile_client_unittest.cc',
259 'dbus/shill_service_client_unittest.cc',
[email protected]3e87a6c2012-04-19 08:18:48260 'dbus/gsm_sms_client_unittest.cc',
[email protected]ce4f3532012-05-11 20:41:53261 'dbus/ibus/ibus_client_unittest.cc',
[email protected]f98713f2012-07-09 09:57:40262 'dbus/ibus/ibus_component_unittest.cc',
[email protected]f2dca75a2012-07-18 04:11:48263 'dbus/ibus/ibus_engine_factory_service_unittest.cc',
[email protected]2f2f005f2012-07-24 09:00:28264 'dbus/ibus/ibus_engine_service_unittest.cc',
265 'dbus/ibus/ibus_input_context_client_unittest.cc',
[email protected]e615bff2012-05-23 17:14:49266 'dbus/ibus/ibus_lookup_table_unittest.cc',
[email protected]cd301f3c2012-05-12 00:47:44267 'dbus/ibus/ibus_object_unittest.cc',
[email protected]b0b6ffa2012-06-22 06:16:37268 'dbus/ibus/ibus_property_unittest.cc',
[email protected]797510b2012-05-12 02:19:31269 'dbus/ibus/ibus_text_unittest.cc',
[email protected]b6ebf072012-05-30 10:44:34270 'dbus/introspectable_client_unittest.cc',
[email protected]88d6fc252012-06-12 08:57:52271 'dbus/modem_messaging_client_unittest.cc',
[email protected]9c0991fb2012-05-15 01:45:36272 'network/network_sms_handler_unittest.cc',
[email protected]640858922012-09-23 19:28:48273 'power/power_state_override_unittest.cc',
[email protected]64e199252012-04-06 01:54:36274 ],
275 'include_dirs': [
276 '..',
277 ],
[email protected]ba1c6ca02012-09-11 21:52:00278 'conditions': [
279 [ 'linux_use_tcmalloc==1', {
280 'dependencies': [
281 '../base/allocator/allocator.gyp:allocator',
282 ],
283 },
284 ],
285 ],
[email protected]64e199252012-04-06 01:54:36286 },
287 {
288 # Protobuf compiler / generator for the PowerSupplyProperties protocol
289 # buffer.
290 'target_name': 'power_state_control_proto',
291 'type': 'static_library',
292 'sources': [
293 '../third_party/cros_system_api/dbus/power_state_control.proto',
294 ],
295 'variables': {
[email protected]c6ccf422012-09-13 02:27:52296 'proto_in_dir': '../third_party/cros_system_api/dbus',
[email protected]64e199252012-04-06 01:54:36297 'proto_out_dir': 'chromeos/dbus',
298 },
299 'includes': ['../build/protoc.gypi'],
300 },
301 {
302 # Protobuf compiler / generator for the PowerSupplyProperties protocol
303 # buffer.
304 'target_name': 'power_supply_properties_proto',
305 'type': 'static_library',
306 'sources': [
307 '../third_party/cros_system_api/dbus/power_supply_properties.proto',
308 ],
309 'variables': {
[email protected]c6ccf422012-09-13 02:27:52310 'proto_in_dir': '../third_party/cros_system_api/dbus',
[email protected]64e199252012-04-06 01:54:36311 'proto_out_dir': 'chromeos/dbus',
312 },
313 'includes': ['../build/protoc.gypi'],
314 },
[email protected]960058f2012-09-11 13:23:31315 {
316 # Protobuf compiler / generator for the VideoActivityUpdate protocol
317 # buffer.
318 'target_name': 'video_activity_update_proto',
319 'type': 'static_library',
320 'sources': [
321 '../third_party/cros_system_api/dbus/video_activity_update.proto',
322 ],
323 'variables': {
324 'proto_in_dir': '../third_party/cros_system_api/dbus/',
325 'proto_out_dir': 'chromeos/dbus',
326 },
327 'includes': ['../build/protoc.gypi'],
328 },
[email protected]64e199252012-04-06 01:54:36329 ],
[email protected]af4ac5de82012-04-05 00:50:27330}