blob: 48014f473b27ee3c5ebc452ba970088211e05b2c [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]c6ccf422012-09-13 02:27:5219 'mtp_file_entry_proto',
20 'mtp_storage_info_proto',
[email protected]64e199252012-04-06 01:54:3621 'power_state_control_proto',
22 'power_supply_properties_proto',
[email protected]960058f2012-09-11 13:23:3123 'video_activity_update_proto',
[email protected]af4ac5de82012-04-05 00:50:2724 ],
[email protected]b3878642012-05-15 15:04:3225 'defines': [
26 'CHROMEOS_IMPLEMENTATION',
27 ],
[email protected]af4ac5de82012-04-05 00:50:2728 'sources': [
29 'chromeos_export.h',
[email protected]66149a5c2012-05-11 19:14:2730 'chromeos_switches.cc',
31 'chromeos_switches.h',
[email protected]6666e5bf2012-08-26 12:11:3732 'cryptohome/async_method_caller.cc',
33 'cryptohome/async_method_caller.h',
[email protected]64e199252012-04-06 01:54:3634 'dbus/blocking_method_caller.cc',
35 'dbus/blocking_method_caller.h',
36 'dbus/bluetooth_adapter_client.cc',
37 'dbus/bluetooth_adapter_client.h',
38 'dbus/bluetooth_agent_service_provider.cc',
39 'dbus/bluetooth_agent_service_provider.h',
40 'dbus/bluetooth_device_client.cc',
41 'dbus/bluetooth_device_client.h',
42 'dbus/bluetooth_input_client.cc',
43 'dbus/bluetooth_input_client.h',
44 'dbus/bluetooth_manager_client.cc',
45 'dbus/bluetooth_manager_client.h',
46 'dbus/bluetooth_node_client.cc',
47 'dbus/bluetooth_node_client.h',
[email protected]2b7c40d2012-06-15 03:50:4548 'dbus/bluetooth_out_of_band_client.cc',
49 'dbus/bluetooth_out_of_band_client.h',
[email protected]64e199252012-04-06 01:54:3650 'dbus/bluetooth_property.cc',
51 'dbus/bluetooth_property.h',
52 'dbus/cashew_client.cc',
53 'dbus/cashew_client.h',
54 'dbus/cros_disks_client.cc',
55 'dbus/cros_disks_client.h',
56 'dbus/cryptohome_client.cc',
57 'dbus/cryptohome_client.h',
58 'dbus/dbus_client_implementation_type.h',
59 'dbus/dbus_method_call_status.h',
60 'dbus/dbus_thread_manager.cc',
61 'dbus/dbus_thread_manager.h',
62 'dbus/debug_daemon_client.cc',
63 'dbus/debug_daemon_client.h',
[email protected]3e87a6c2012-04-19 08:18:4864 'dbus/gsm_sms_client.cc',
65 'dbus/gsm_sms_client.h',
[email protected]07c674cd2012-09-07 20:53:5666 'dbus/shill_ipconfig_client.cc',
67 'dbus/shill_ipconfig_client.h',
68 'dbus/shill_client_helper.cc',
69 'dbus/shill_client_helper.h',
70 'dbus/shill_device_client.cc',
71 'dbus/shill_device_client.h',
72 'dbus/shill_manager_client.cc',
73 'dbus/shill_manager_client.h',
74 'dbus/shill_network_client.cc',
75 'dbus/shill_network_client.h',
76 'dbus/shill_profile_client.cc',
77 'dbus/shill_profile_client.h',
78 'dbus/shill_service_client.cc',
79 'dbus/shill_service_client.h',
[email protected]ce4f3532012-05-11 20:41:5380 'dbus/ibus/ibus_client.cc',
81 'dbus/ibus/ibus_client.h',
[email protected]f98713f2012-07-09 09:57:4082 'dbus/ibus/ibus_component.cc',
83 'dbus/ibus/ibus_component.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]64e199252012-04-06 01:54:3699 'dbus/image_burner_client.cc',
100 'dbus/image_burner_client.h',
101 'dbus/introspectable_client.cc',
102 'dbus/introspectable_client.h',
[email protected]85b95a2012012-08-07 18:57:27103 'dbus/media_transfer_protocol_daemon_client.cc',
104 'dbus/media_transfer_protocol_daemon_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]af4ac5de82012-04-05 00:50:27127 ],
[email protected]70b3e7d52012-06-02 22:12:25128 'link_settings': {
129 'libraries': [
130 '-lXext',
[email protected]c235233da2012-09-10 20:13:42131 '-lXrandr',
[email protected]70b3e7d52012-06-02 22:12:25132 ],
133 },
[email protected]af4ac5de82012-04-05 00:50:27134 },
[email protected]64e199252012-04-06 01:54:36135 {
136 # This target contains mocks that can be used to write unit tests.
137 'target_name': 'chromeos_test_support',
138 'type': 'static_library',
139 'dependencies': [
140 '../build/linux/system.gyp:dbus',
141 '../testing/gmock.gyp:gmock',
142 'chromeos',
[email protected]c6ccf422012-09-13 02:27:52143 'mtp_file_entry_proto',
[email protected]64e199252012-04-06 01:54:36144 ],
145 'sources': [
[email protected]6666e5bf2012-08-26 12:11:37146 'cryptohome/mock_async_method_caller.cc',
147 'cryptohome/mock_async_method_caller.h',
[email protected]64e199252012-04-06 01:54:36148 'dbus/mock_bluetooth_adapter_client.cc',
149 'dbus/mock_bluetooth_adapter_client.h',
150 'dbus/mock_bluetooth_device_client.cc',
151 'dbus/mock_bluetooth_device_client.h',
152 'dbus/mock_bluetooth_input_client.cc',
153 'dbus/mock_bluetooth_input_client.h',
154 'dbus/mock_bluetooth_manager_client.cc',
155 'dbus/mock_bluetooth_manager_client.h',
156 'dbus/mock_bluetooth_node_client.cc',
157 'dbus/mock_bluetooth_node_client.h',
[email protected]2b7c40d2012-06-15 03:50:45158 'dbus/mock_bluetooth_out_of_band_client.cc',
159 'dbus/mock_bluetooth_out_of_band_client.h',
[email protected]64e199252012-04-06 01:54:36160 'dbus/mock_cashew_client.cc',
161 'dbus/mock_cashew_client.h',
[email protected]85b95a2012012-08-07 18:57:27162 'dbus/mock_cros_disks_client.cc',
163 'dbus/mock_cros_disks_client.h',
[email protected]64e199252012-04-06 01:54:36164 'dbus/mock_cryptohome_client.cc',
165 'dbus/mock_cryptohome_client.h',
166 'dbus/mock_dbus_thread_manager.cc',
167 'dbus/mock_dbus_thread_manager.h',
168 'dbus/mock_debug_daemon_client.cc',
169 'dbus/mock_debug_daemon_client.h',
[email protected]07c674cd2012-09-07 20:53:56170 'dbus/mock_shill_device_client.cc',
171 'dbus/mock_shill_device_client.h',
172 'dbus/mock_shill_ipconfig_client.cc',
173 'dbus/mock_shill_ipconfig_client.h',
174 'dbus/mock_shill_manager_client.cc',
175 'dbus/mock_shill_manager_client.h',
176 'dbus/mock_shill_network_client.cc',
177 'dbus/mock_shill_network_client.h',
178 'dbus/mock_shill_profile_client.cc',
179 'dbus/mock_shill_profile_client.h',
180 'dbus/mock_shill_service_client.cc',
181 'dbus/mock_shill_service_client.h',
[email protected]3e87a6c2012-04-19 08:18:48182 'dbus/mock_gsm_sms_client.cc',
183 'dbus/mock_gsm_sms_client.h',
[email protected]64e199252012-04-06 01:54:36184 'dbus/mock_image_burner_client.cc',
185 'dbus/mock_image_burner_client.h',
186 'dbus/mock_introspectable_client.cc',
187 'dbus/mock_introspectable_client.h',
[email protected]85b95a2012012-08-07 18:57:27188 'dbus/mock_media_transfer_protocol_daemon_client.cc',
189 'dbus/mock_media_transfer_protocol_daemon_client.h',
[email protected]88d6fc252012-06-12 08:57:52190 'dbus/mock_modem_messaging_client.cc',
191 'dbus/mock_modem_messaging_client.h',
[email protected]3392da32012-09-07 04:26:53192 'dbus/mock_permission_broker_client.h',
193 'dbus/mock_permission_broker_client.cc',
[email protected]64e199252012-04-06 01:54:36194 'dbus/mock_power_manager_client.cc',
195 'dbus/mock_power_manager_client.h',
196 'dbus/mock_session_manager_client.cc',
197 'dbus/mock_session_manager_client.h',
[email protected]88d6fc252012-06-12 08:57:52198 'dbus/mock_sms_client.cc',
199 'dbus/mock_sms_client.h',
[email protected]64e199252012-04-06 01:54:36200 'dbus/mock_speech_synthesizer_client.cc',
201 'dbus/mock_speech_synthesizer_client.h',
202 'dbus/mock_update_engine_client.cc',
203 'dbus/mock_update_engine_client.h',
[email protected]4cbead42012-08-26 12:02:39204 'disks/mock_disk_mount_manager.cc',
205 'disks/mock_disk_mount_manager.h',
[email protected]64e199252012-04-06 01:54:36206 ],
207 'include_dirs': [
208 '..',
209 ],
210 },
211 {
[email protected]400d31532012-06-15 07:41:38212 'target_name': 'chromeos_test_support_without_gmock',
213 'type': 'static_library',
214 'dependencies': [
215 '../build/linux/system.gyp:dbus',
216 'chromeos',
217 ],
218 'sources': [
219 'dbus/mock_dbus_thread_manager_without_gmock.cc',
220 'dbus/mock_dbus_thread_manager_without_gmock.h',
221 'dbus/ibus/mock_ibus_client.cc',
222 'dbus/ibus/mock_ibus_client.h',
223 'dbus/ibus/mock_ibus_input_context_client.cc',
224 'dbus/ibus/mock_ibus_input_context_client.h',
[email protected]f2dca75a2012-07-18 04:11:48225 'dbus/ibus/mock_ibus_engine_factory_service.cc',
226 'dbus/ibus/mock_ibus_engine_factory_service.h',
[email protected]7f9876b2012-07-17 06:33:15227 'dbus/ibus/mock_ibus_engine_service.cc',
228 'dbus/ibus/mock_ibus_engine_service.h',
[email protected]400d31532012-06-15 07:41:38229 ],
230 'include_dirs': [
231 '..',
232 ],
233 },
234 {
[email protected]64e199252012-04-06 01:54:36235 'target_name': 'chromeos_unittests',
236 'type': 'executable',
237 'dependencies': [
238 '../base/base.gyp:run_all_unittests',
239 '../base/base.gyp:test_support_base',
240 '../build/linux/system.gyp:dbus',
241 '../dbus/dbus.gyp:dbus_test_support',
242 '../testing/gmock.gyp:gmock',
243 '../testing/gtest.gyp:gtest',
244 'chromeos_test_support',
245 ],
246 'sources': [
[email protected]6d980bc2012-09-10 19:28:45247 'display/output_configurator_unittest.cc',
[email protected]64e199252012-04-06 01:54:36248 'dbus/blocking_method_caller_unittest.cc',
[email protected]07c674cd2012-09-07 20:53:56249 'dbus/shill_client_unittest_base.cc',
250 'dbus/shill_client_unittest_base.h',
251 'dbus/shill_device_client_unittest.cc',
252 'dbus/shill_ipconfig_client_unittest.cc',
253 'dbus/shill_manager_client_unittest.cc',
254 'dbus/shill_network_client_unittest.cc',
255 'dbus/shill_profile_client_unittest.cc',
256 'dbus/shill_service_client_unittest.cc',
[email protected]3e87a6c2012-04-19 08:18:48257 'dbus/gsm_sms_client_unittest.cc',
[email protected]ce4f3532012-05-11 20:41:53258 'dbus/ibus/ibus_client_unittest.cc',
[email protected]f98713f2012-07-09 09:57:40259 'dbus/ibus/ibus_component_unittest.cc',
[email protected]f2dca75a2012-07-18 04:11:48260 'dbus/ibus/ibus_engine_factory_service_unittest.cc',
[email protected]2f2f005f2012-07-24 09:00:28261 'dbus/ibus/ibus_engine_service_unittest.cc',
262 'dbus/ibus/ibus_input_context_client_unittest.cc',
[email protected]e615bff2012-05-23 17:14:49263 'dbus/ibus/ibus_lookup_table_unittest.cc',
[email protected]cd301f3c2012-05-12 00:47:44264 'dbus/ibus/ibus_object_unittest.cc',
[email protected]b0b6ffa2012-06-22 06:16:37265 'dbus/ibus/ibus_property_unittest.cc',
[email protected]797510b2012-05-12 02:19:31266 'dbus/ibus/ibus_text_unittest.cc',
[email protected]b6ebf072012-05-30 10:44:34267 'dbus/introspectable_client_unittest.cc',
[email protected]88d6fc252012-06-12 08:57:52268 'dbus/modem_messaging_client_unittest.cc',
[email protected]9c0991fb2012-05-15 01:45:36269 'network/network_sms_handler_unittest.cc',
[email protected]64e199252012-04-06 01:54:36270 ],
271 'include_dirs': [
272 '..',
273 ],
[email protected]ba1c6ca02012-09-11 21:52:00274 'conditions': [
275 [ 'linux_use_tcmalloc==1', {
276 'dependencies': [
277 '../base/allocator/allocator.gyp:allocator',
278 ],
279 },
280 ],
281 ],
[email protected]64e199252012-04-06 01:54:36282 },
283 {
[email protected]c6ccf422012-09-13 02:27:52284 # Protobuf compiler / generator for the MtpFileEntry and MtpFileEntries
285 # protocol buffers.
286 'target_name': 'mtp_file_entry_proto',
287 'type': 'static_library',
288 'sources': [
289 '../third_party/cros_system_api/dbus/mtp_file_entry.proto',
290 ],
291 'variables': {
292 'proto_in_dir': '../third_party/cros_system_api/dbus',
293 'proto_out_dir': 'chromeos/dbus',
294 'cc_generator_options': 'dllexport_decl=CHROMEOS_EXPORT:',
295 'cc_include': 'chromeos/chromeos_export.h',
296 },
297 'includes': ['../build/protoc.gypi'],
298 },
299 {
300 # Protobuf compiler / generator for the MtpStorageInfo protocol buffers.
301 'target_name': 'mtp_storage_info_proto',
302 'type': 'static_library',
303 'sources': [
304 '../third_party/cros_system_api/dbus/mtp_storage_info.proto',
305 ],
306 'variables': {
307 'proto_in_dir': '../third_party/cros_system_api/dbus',
308 'proto_out_dir': 'chromeos/dbus',
309 'cc_generator_options': 'dllexport_decl=CHROMEOS_EXPORT:',
310 'cc_include': 'chromeos/chromeos_export.h',
311 },
312 'includes': ['../build/protoc.gypi'],
313 },
314 {
[email protected]64e199252012-04-06 01:54:36315 # Protobuf compiler / generator for the PowerSupplyProperties protocol
316 # buffer.
317 'target_name': 'power_state_control_proto',
318 'type': 'static_library',
319 'sources': [
320 '../third_party/cros_system_api/dbus/power_state_control.proto',
321 ],
322 'variables': {
[email protected]c6ccf422012-09-13 02:27:52323 'proto_in_dir': '../third_party/cros_system_api/dbus',
[email protected]64e199252012-04-06 01:54:36324 'proto_out_dir': 'chromeos/dbus',
325 },
326 'includes': ['../build/protoc.gypi'],
327 },
328 {
329 # Protobuf compiler / generator for the PowerSupplyProperties protocol
330 # buffer.
331 'target_name': 'power_supply_properties_proto',
332 'type': 'static_library',
333 'sources': [
334 '../third_party/cros_system_api/dbus/power_supply_properties.proto',
335 ],
336 'variables': {
[email protected]c6ccf422012-09-13 02:27:52337 'proto_in_dir': '../third_party/cros_system_api/dbus',
[email protected]64e199252012-04-06 01:54:36338 'proto_out_dir': 'chromeos/dbus',
339 },
340 'includes': ['../build/protoc.gypi'],
341 },
[email protected]960058f2012-09-11 13:23:31342 {
343 # Protobuf compiler / generator for the VideoActivityUpdate protocol
344 # buffer.
345 'target_name': 'video_activity_update_proto',
346 'type': 'static_library',
347 'sources': [
348 '../third_party/cros_system_api/dbus/video_activity_update.proto',
349 ],
350 'variables': {
351 'proto_in_dir': '../third_party/cros_system_api/dbus/',
352 'proto_out_dir': 'chromeos/dbus',
353 },
354 'includes': ['../build/protoc.gypi'],
355 },
[email protected]64e199252012-04-06 01:54:36356 ],
[email protected]af4ac5de82012-04-05 00:50:27357}