blob: d8ce661738f7a17486727a4cbe5aeececb12d227 [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]23bf56f2012-11-21 19:33:4219 'power_manager_proto',
[email protected]64e199252012-04-06 01:54:3620 'power_state_control_proto',
21 'power_supply_properties_proto',
[email protected]960058f2012-09-11 13:23:3122 'video_activity_update_proto',
[email protected]af4ac5de82012-04-05 00:50:2723 ],
[email protected]b3878642012-05-15 15:04:3224 'defines': [
25 'CHROMEOS_IMPLEMENTATION',
26 ],
[email protected]af4ac5de82012-04-05 00:50:2727 'sources': [
28 'chromeos_export.h',
[email protected]66149a5c2012-05-11 19:14:2729 'chromeos_switches.cc',
30 'chromeos_switches.h',
[email protected]6666e5bf2012-08-26 12:11:3731 'cryptohome/async_method_caller.cc',
32 'cryptohome/async_method_caller.h',
[email protected]64e199252012-04-06 01:54:3633 'dbus/blocking_method_caller.cc',
34 'dbus/blocking_method_caller.h',
35 'dbus/bluetooth_adapter_client.cc',
36 'dbus/bluetooth_adapter_client.h',
37 'dbus/bluetooth_agent_service_provider.cc',
38 'dbus/bluetooth_agent_service_provider.h',
39 'dbus/bluetooth_device_client.cc',
40 'dbus/bluetooth_device_client.h',
41 'dbus/bluetooth_input_client.cc',
42 'dbus/bluetooth_input_client.h',
43 'dbus/bluetooth_manager_client.cc',
44 'dbus/bluetooth_manager_client.h',
45 'dbus/bluetooth_node_client.cc',
46 'dbus/bluetooth_node_client.h',
[email protected]2b7c40d2012-06-15 03:50:4547 'dbus/bluetooth_out_of_band_client.cc',
48 'dbus/bluetooth_out_of_band_client.h',
[email protected]64e199252012-04-06 01:54:3649 'dbus/bluetooth_property.cc',
50 'dbus/bluetooth_property.h',
[email protected]64e199252012-04-06 01:54:3651 'dbus/cros_disks_client.cc',
52 'dbus/cros_disks_client.h',
53 'dbus/cryptohome_client.cc',
54 'dbus/cryptohome_client.h',
55 'dbus/dbus_client_implementation_type.h',
56 'dbus/dbus_method_call_status.h',
57 'dbus/dbus_thread_manager.cc',
58 'dbus/dbus_thread_manager.h',
59 'dbus/debug_daemon_client.cc',
60 'dbus/debug_daemon_client.h',
[email protected]3e87a6c2012-04-19 08:18:4861 'dbus/gsm_sms_client.cc',
62 'dbus/gsm_sms_client.h',
[email protected]07c674cd2012-09-07 20:53:5663 'dbus/shill_ipconfig_client.cc',
64 'dbus/shill_ipconfig_client.h',
65 'dbus/shill_client_helper.cc',
66 'dbus/shill_client_helper.h',
67 'dbus/shill_device_client.cc',
68 'dbus/shill_device_client.h',
69 'dbus/shill_manager_client.cc',
70 'dbus/shill_manager_client.h',
71 'dbus/shill_network_client.cc',
72 'dbus/shill_network_client.h',
73 'dbus/shill_profile_client.cc',
74 'dbus/shill_profile_client.h',
75 'dbus/shill_service_client.cc',
76 'dbus/shill_service_client.h',
[email protected]ce4f3532012-05-11 20:41:5377 'dbus/ibus/ibus_client.cc',
78 'dbus/ibus/ibus_client.h',
[email protected]f98713f2012-07-09 09:57:4079 'dbus/ibus/ibus_component.cc',
80 'dbus/ibus/ibus_component.h',
[email protected]25fe2042012-11-05 09:43:3181 'dbus/ibus/ibus_config_client.cc',
82 'dbus/ibus/ibus_config_client.h',
[email protected]ce4f3532012-05-11 20:41:5383 'dbus/ibus/ibus_constants.h',
[email protected]7f9876b2012-07-17 06:33:1584 'dbus/ibus/ibus_engine_service.cc',
85 'dbus/ibus/ibus_engine_service.h',
[email protected]f2dca75a2012-07-18 04:11:4886 'dbus/ibus/ibus_engine_factory_service.cc',
87 'dbus/ibus/ibus_engine_factory_service.h',
[email protected]e615bff2012-05-23 17:14:4988 'dbus/ibus/ibus_lookup_table.cc',
89 'dbus/ibus/ibus_lookup_table.h',
[email protected]cd301f3c2012-05-12 00:47:4490 'dbus/ibus/ibus_object.cc',
91 'dbus/ibus/ibus_object.h',
[email protected]b0b6ffa2012-06-22 06:16:3792 'dbus/ibus/ibus_property.cc',
93 'dbus/ibus/ibus_property.h',
[email protected]797510b2012-05-12 02:19:3194 'dbus/ibus/ibus_text.cc',
95 'dbus/ibus/ibus_text.h',
[email protected]2110271e2012-05-23 15:55:4896 'dbus/ibus/ibus_input_context_client.cc',
97 'dbus/ibus/ibus_input_context_client.h',
[email protected]a2f407792012-11-05 09:47:3398 'dbus/ibus/ibus_panel_service.cc',
99 'dbus/ibus/ibus_panel_service.h',
[email protected]64e199252012-04-06 01:54:36100 'dbus/image_burner_client.cc',
101 'dbus/image_burner_client.h',
102 'dbus/introspectable_client.cc',
103 'dbus/introspectable_client.h',
[email protected]88d6fc252012-06-12 08:57:52104 'dbus/modem_messaging_client.cc',
105 'dbus/modem_messaging_client.h',
[email protected]3392da32012-09-07 04:26:53106 'dbus/permission_broker_client.cc',
107 'dbus/permission_broker_client.h',
[email protected]64e199252012-04-06 01:54:36108 'dbus/power_manager_client.cc',
109 'dbus/power_manager_client.h',
[email protected]af4ac5de82012-04-05 00:50:27110 'dbus/power_supply_status.cc',
111 'dbus/power_supply_status.h',
[email protected]23bf56f2012-11-21 19:33:42112 'dbus/root_power_manager_client.cc',
113 'dbus/root_power_manager_client.h',
114 'dbus/root_power_manager_observer.h',
[email protected]64e199252012-04-06 01:54:36115 'dbus/session_manager_client.cc',
116 'dbus/session_manager_client.h',
117 'dbus/speech_synthesizer_client.cc',
118 'dbus/speech_synthesizer_client.h',
[email protected]88d6fc252012-06-12 08:57:52119 'dbus/sms_client.cc',
120 'dbus/sms_client.h',
[email protected]64e199252012-04-06 01:54:36121 'dbus/update_engine_client.cc',
122 'dbus/update_engine_client.h',
[email protected]4cbead42012-08-26 12:02:39123 'disks/disk_mount_manager.cc',
124 'disks/disk_mount_manager.h',
[email protected]2e236a52012-06-27 22:21:47125 'display/output_configurator.cc',
126 'display/output_configurator.h',
[email protected]3c8bd112012-11-07 10:14:59127 'network/device_state.cc',
128 'network/device_state.h',
129 'network/managed_state.cc',
130 'network/managed_state.h',
[email protected]24e4732f2012-11-17 00:08:34131 'network/network_configuration_handler.cc',
132 'network/network_configuration_handler.h',
[email protected]669b00102012-11-21 01:38:01133 'network/network_event_log.cc',
134 'network/network_event_log.h',
[email protected]eb052c92012-11-26 20:12:21135 'network/network_handler_callbacks.cc',
136 'network/network_handler_callbacks.h',
[email protected]9c0991fb2012-05-15 01:45:36137 'network/network_sms_handler.cc',
138 'network/network_sms_handler.h',
[email protected]3c8bd112012-11-07 10:14:59139 'network/network_state.cc',
140 'network/network_state.h',
141 'network/network_state_handler.cc',
142 'network/network_state_handler.h',
143 'network/network_state_handler_observer.cc',
144 'network/network_state_handler_observer.h',
145 'network/shill_property_handler.cc',
146 'network/shill_property_handler.h',
147 'network/shill_service_observer.cc',
148 'network/shill_service_observer.h',
[email protected]640858922012-09-23 19:28:48149 'power/power_state_override.cc',
150 'power/power_state_override.h',
[email protected]af4ac5de82012-04-05 00:50:27151 ],
[email protected]70b3e7d52012-06-02 22:12:25152 'link_settings': {
153 'libraries': [
154 '-lXext',
[email protected]c235233da2012-09-10 20:13:42155 '-lXrandr',
[email protected]70b3e7d52012-06-02 22:12:25156 ],
157 },
[email protected]af4ac5de82012-04-05 00:50:27158 },
[email protected]64e199252012-04-06 01:54:36159 {
160 # This target contains mocks that can be used to write unit tests.
161 'target_name': 'chromeos_test_support',
162 'type': 'static_library',
163 'dependencies': [
164 '../build/linux/system.gyp:dbus',
165 '../testing/gmock.gyp:gmock',
166 'chromeos',
167 ],
168 'sources': [
[email protected]6666e5bf2012-08-26 12:11:37169 'cryptohome/mock_async_method_caller.cc',
170 'cryptohome/mock_async_method_caller.h',
[email protected]64e199252012-04-06 01:54:36171 'dbus/mock_bluetooth_adapter_client.cc',
172 'dbus/mock_bluetooth_adapter_client.h',
173 'dbus/mock_bluetooth_device_client.cc',
174 'dbus/mock_bluetooth_device_client.h',
175 'dbus/mock_bluetooth_input_client.cc',
176 'dbus/mock_bluetooth_input_client.h',
177 'dbus/mock_bluetooth_manager_client.cc',
178 'dbus/mock_bluetooth_manager_client.h',
179 'dbus/mock_bluetooth_node_client.cc',
180 'dbus/mock_bluetooth_node_client.h',
[email protected]2b7c40d2012-06-15 03:50:45181 'dbus/mock_bluetooth_out_of_band_client.cc',
182 'dbus/mock_bluetooth_out_of_band_client.h',
[email protected]85b95a2012012-08-07 18:57:27183 'dbus/mock_cros_disks_client.cc',
184 'dbus/mock_cros_disks_client.h',
[email protected]64e199252012-04-06 01:54:36185 'dbus/mock_cryptohome_client.cc',
186 'dbus/mock_cryptohome_client.h',
187 'dbus/mock_dbus_thread_manager.cc',
188 'dbus/mock_dbus_thread_manager.h',
189 'dbus/mock_debug_daemon_client.cc',
190 'dbus/mock_debug_daemon_client.h',
[email protected]07c674cd2012-09-07 20:53:56191 'dbus/mock_shill_device_client.cc',
192 'dbus/mock_shill_device_client.h',
193 'dbus/mock_shill_ipconfig_client.cc',
194 'dbus/mock_shill_ipconfig_client.h',
195 'dbus/mock_shill_manager_client.cc',
196 'dbus/mock_shill_manager_client.h',
197 'dbus/mock_shill_network_client.cc',
198 'dbus/mock_shill_network_client.h',
199 'dbus/mock_shill_profile_client.cc',
200 'dbus/mock_shill_profile_client.h',
201 'dbus/mock_shill_service_client.cc',
202 'dbus/mock_shill_service_client.h',
[email protected]3e87a6c2012-04-19 08:18:48203 'dbus/mock_gsm_sms_client.cc',
204 'dbus/mock_gsm_sms_client.h',
[email protected]64e199252012-04-06 01:54:36205 'dbus/mock_image_burner_client.cc',
206 'dbus/mock_image_burner_client.h',
207 'dbus/mock_introspectable_client.cc',
208 'dbus/mock_introspectable_client.h',
[email protected]88d6fc252012-06-12 08:57:52209 'dbus/mock_modem_messaging_client.cc',
210 'dbus/mock_modem_messaging_client.h',
[email protected]3392da32012-09-07 04:26:53211 'dbus/mock_permission_broker_client.h',
212 'dbus/mock_permission_broker_client.cc',
[email protected]64e199252012-04-06 01:54:36213 'dbus/mock_power_manager_client.cc',
214 'dbus/mock_power_manager_client.h',
[email protected]23bf56f2012-11-21 19:33:42215 'dbus/mock_root_power_manager_client.cc',
216 'dbus/mock_root_power_manager_client.h',
[email protected]64e199252012-04-06 01:54:36217 'dbus/mock_session_manager_client.cc',
218 'dbus/mock_session_manager_client.h',
[email protected]88d6fc252012-06-12 08:57:52219 'dbus/mock_sms_client.cc',
220 'dbus/mock_sms_client.h',
[email protected]64e199252012-04-06 01:54:36221 'dbus/mock_speech_synthesizer_client.cc',
222 'dbus/mock_speech_synthesizer_client.h',
223 'dbus/mock_update_engine_client.cc',
224 'dbus/mock_update_engine_client.h',
[email protected]4cbead42012-08-26 12:02:39225 'disks/mock_disk_mount_manager.cc',
226 'disks/mock_disk_mount_manager.h',
[email protected]64e199252012-04-06 01:54:36227 ],
228 'include_dirs': [
229 '..',
230 ],
231 },
232 {
[email protected]640858922012-09-23 19:28:48233 'target_name': 'chromeos_test_support_without_gmock',
234 'type': 'static_library',
235 'dependencies': [
236 '../build/linux/system.gyp:dbus',
237 'chromeos',
238 ],
239 'sources': [
240 'dbus/mock_dbus_thread_manager_without_gmock.cc',
241 'dbus/mock_dbus_thread_manager_without_gmock.h',
242 'dbus/ibus/mock_ibus_client.cc',
243 'dbus/ibus/mock_ibus_client.h',
[email protected]25fe2042012-11-05 09:43:31244 'dbus/ibus/mock_ibus_config_client.cc',
245 'dbus/ibus/mock_ibus_config_client.h',
[email protected]640858922012-09-23 19:28:48246 'dbus/ibus/mock_ibus_input_context_client.cc',
247 'dbus/ibus/mock_ibus_input_context_client.h',
248 'dbus/ibus/mock_ibus_engine_factory_service.cc',
249 'dbus/ibus/mock_ibus_engine_factory_service.h',
250 'dbus/ibus/mock_ibus_engine_service.cc',
251 'dbus/ibus/mock_ibus_engine_service.h',
[email protected]a2f407792012-11-05 09:47:33252 'dbus/ibus/mock_ibus_panel_service.cc',
253 'dbus/ibus/mock_ibus_panel_service.h',
[email protected]640858922012-09-23 19:28:48254 ],
255 'include_dirs': [
256 '..',
257 ],
[email protected]400d31532012-06-15 07:41:38258 },
259 {
[email protected]64e199252012-04-06 01:54:36260 'target_name': 'chromeos_unittests',
261 'type': 'executable',
262 'dependencies': [
263 '../base/base.gyp:run_all_unittests',
264 '../base/base.gyp:test_support_base',
265 '../build/linux/system.gyp:dbus',
266 '../dbus/dbus.gyp:dbus_test_support',
267 '../testing/gmock.gyp:gmock',
268 '../testing/gtest.gyp:gtest',
269 'chromeos_test_support',
270 ],
271 'sources': [
[email protected]6d980bc2012-09-10 19:28:45272 'display/output_configurator_unittest.cc',
[email protected]64e199252012-04-06 01:54:36273 'dbus/blocking_method_caller_unittest.cc',
[email protected]07c674cd2012-09-07 20:53:56274 'dbus/shill_client_unittest_base.cc',
275 'dbus/shill_client_unittest_base.h',
276 'dbus/shill_device_client_unittest.cc',
277 'dbus/shill_ipconfig_client_unittest.cc',
278 'dbus/shill_manager_client_unittest.cc',
279 'dbus/shill_network_client_unittest.cc',
280 'dbus/shill_profile_client_unittest.cc',
281 'dbus/shill_service_client_unittest.cc',
[email protected]3e87a6c2012-04-19 08:18:48282 'dbus/gsm_sms_client_unittest.cc',
[email protected]ce4f3532012-05-11 20:41:53283 'dbus/ibus/ibus_client_unittest.cc',
[email protected]58d54352012-11-06 08:43:05284 'dbus/ibus/ibus_config_client_unittest.cc',
[email protected]f98713f2012-07-09 09:57:40285 'dbus/ibus/ibus_component_unittest.cc',
[email protected]f2dca75a2012-07-18 04:11:48286 'dbus/ibus/ibus_engine_factory_service_unittest.cc',
[email protected]2f2f005f2012-07-24 09:00:28287 'dbus/ibus/ibus_engine_service_unittest.cc',
288 'dbus/ibus/ibus_input_context_client_unittest.cc',
[email protected]e615bff2012-05-23 17:14:49289 'dbus/ibus/ibus_lookup_table_unittest.cc',
[email protected]cd301f3c2012-05-12 00:47:44290 'dbus/ibus/ibus_object_unittest.cc',
[email protected]843d58c2012-11-06 03:29:24291 'dbus/ibus/ibus_panel_service_unittest.cc',
[email protected]b0b6ffa2012-06-22 06:16:37292 'dbus/ibus/ibus_property_unittest.cc',
[email protected]797510b2012-05-12 02:19:31293 'dbus/ibus/ibus_text_unittest.cc',
[email protected]b6ebf072012-05-30 10:44:34294 'dbus/introspectable_client_unittest.cc',
[email protected]88d6fc252012-06-12 08:57:52295 'dbus/modem_messaging_client_unittest.cc',
[email protected]e3c1fc92012-11-15 00:56:46296 'disks/disk_mount_manager_unittest.cc',
[email protected]24e4732f2012-11-17 00:08:34297 'network/network_configuration_handler_unittest.cc',
[email protected]669b00102012-11-21 01:38:01298 'network/network_event_log_unittest.cc',
[email protected]9c0991fb2012-05-15 01:45:36299 'network/network_sms_handler_unittest.cc',
[email protected]3c8bd112012-11-07 10:14:59300 'network/network_state_handler_unittest.cc',
301 'network/shill_property_handler_unittest.cc',
[email protected]640858922012-09-23 19:28:48302 'power/power_state_override_unittest.cc',
[email protected]64e199252012-04-06 01:54:36303 ],
304 'include_dirs': [
305 '..',
306 ],
[email protected]ba1c6ca02012-09-11 21:52:00307 'conditions': [
308 [ 'linux_use_tcmalloc==1', {
309 'dependencies': [
310 '../base/allocator/allocator.gyp:allocator',
311 ],
312 },
313 ],
314 ],
[email protected]64e199252012-04-06 01:54:36315 },
316 {
[email protected]23bf56f2012-11-21 19:33:42317 # Protobuf compiler/generator for power-manager related protocol buffers.
318 # TODO(derat): Remove other protocol buffers in favor of these.
319 'target_name': 'power_manager_proto',
320 'type': 'static_library',
321 'sources': [
322 '../third_party/cros_system_api/dbus/power_manager/input_event.proto',
[email protected]bf29c082012-11-26 04:29:11323 '../third_party/cros_system_api/dbus/power_manager/suspend.proto',
[email protected]23bf56f2012-11-21 19:33:42324 ],
325 'variables': {
326 'proto_in_dir': '../third_party/cros_system_api/dbus/power_manager',
327 'proto_out_dir': 'chromeos/dbus/power_manager',
328 },
329 'includes': ['../build/protoc.gypi'],
330 },
331 {
[email protected]64e199252012-04-06 01:54:36332 # Protobuf compiler / generator for the PowerSupplyProperties protocol
333 # buffer.
334 'target_name': 'power_state_control_proto',
335 'type': 'static_library',
336 'sources': [
337 '../third_party/cros_system_api/dbus/power_state_control.proto',
338 ],
339 'variables': {
[email protected]c6ccf422012-09-13 02:27:52340 'proto_in_dir': '../third_party/cros_system_api/dbus',
[email protected]64e199252012-04-06 01:54:36341 'proto_out_dir': 'chromeos/dbus',
342 },
343 'includes': ['../build/protoc.gypi'],
344 },
345 {
346 # Protobuf compiler / generator for the PowerSupplyProperties protocol
347 # buffer.
348 'target_name': 'power_supply_properties_proto',
349 'type': 'static_library',
350 'sources': [
351 '../third_party/cros_system_api/dbus/power_supply_properties.proto',
352 ],
353 'variables': {
[email protected]c6ccf422012-09-13 02:27:52354 'proto_in_dir': '../third_party/cros_system_api/dbus',
[email protected]64e199252012-04-06 01:54:36355 'proto_out_dir': 'chromeos/dbus',
356 },
357 'includes': ['../build/protoc.gypi'],
358 },
[email protected]960058f2012-09-11 13:23:31359 {
360 # Protobuf compiler / generator for the VideoActivityUpdate protocol
361 # buffer.
362 'target_name': 'video_activity_update_proto',
363 'type': 'static_library',
364 'sources': [
365 '../third_party/cros_system_api/dbus/video_activity_update.proto',
366 ],
367 'variables': {
368 'proto_in_dir': '../third_party/cros_system_api/dbus/',
369 'proto_out_dir': 'chromeos/dbus',
370 },
371 'includes': ['../build/protoc.gypi'],
372 },
[email protected]64e199252012-04-06 01:54:36373 ],
[email protected]af4ac5de82012-04-05 00:50:27374}