blob: 68cb89d6a5833a62eb89667a711b264f24d8698d [file] [log] [blame]
[email protected]cab208eb02012-10-18 22:15:231# 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': {
[email protected]06eaeb442012-10-24 18:01:017 'chromium_code': 1,
[email protected]cab208eb02012-10-18 22:15:238 },
9 'targets': [
10 {
11 'target_name': 'device_bluetooth',
[email protected]95676812012-10-30 14:38:0612 'type': 'static_library',
[email protected]cab208eb02012-10-18 22:15:2313 'dependencies': [
[email protected]8a92bbd2013-02-22 01:07:2914 'device_bluetooth_strings.gyp:device_bluetooth_strings',
15 '../base/base.gyp:base',
16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17 '../net/net.gyp:net',
18 '../third_party/libxml/libxml.gyp:libxml',
19 '../ui/ui.gyp:ui'
[email protected]cab208eb02012-10-18 22:15:2320 ],
21 'sources': [
22 'bluetooth/bluetooth_adapter.cc',
23 'bluetooth/bluetooth_adapter.h',
24 'bluetooth/bluetooth_adapter_chromeos.cc',
25 'bluetooth/bluetooth_adapter_chromeos.h',
[email protected]47df4952013-04-03 01:11:1126 'bluetooth/bluetooth_adapter_experimental_chromeos.cc',
27 'bluetooth/bluetooth_adapter_experimental_chromeos.h',
[email protected]cab208eb02012-10-18 22:15:2328 'bluetooth/bluetooth_adapter_factory.cc',
29 'bluetooth/bluetooth_adapter_factory.h',
[email protected]55378de2013-03-01 02:41:4030 'bluetooth/bluetooth_adapter_mac.h',
31 'bluetooth/bluetooth_adapter_mac.mm',
[email protected]0ae97592012-10-22 22:06:0532 'bluetooth/bluetooth_adapter_win.cc',
33 'bluetooth/bluetooth_adapter_win.h',
[email protected]cab208eb02012-10-18 22:15:2334 'bluetooth/bluetooth_device.cc',
35 'bluetooth/bluetooth_device.h',
36 'bluetooth/bluetooth_device_chromeos.cc',
37 'bluetooth/bluetooth_device_chromeos.h',
[email protected]896619e2013-04-18 04:41:4238 'bluetooth/bluetooth_device_experimental_chromeos.cc',
39 'bluetooth/bluetooth_device_experimental_chromeos.h',
[email protected]c579317d2013-03-19 00:52:0040 'bluetooth/bluetooth_device_mac.h',
41 'bluetooth/bluetooth_device_mac.mm',
[email protected]0ae97592012-10-22 22:06:0542 'bluetooth/bluetooth_device_win.cc',
43 'bluetooth/bluetooth_device_win.h',
[email protected]063d9432013-01-25 09:26:0144 'bluetooth/bluetooth_init_win.cc',
45 'bluetooth/bluetooth_init_win.h',
[email protected]cab208eb02012-10-18 22:15:2346 'bluetooth/bluetooth_out_of_band_pairing_data.h',
[email protected]2862df462013-04-19 21:07:2147 'bluetooth/bluetooth_profile.cc',
48 'bluetooth/bluetooth_profile.h',
[email protected]e882d2c2013-05-09 03:49:1849 'bluetooth/bluetooth_profile_experimental_chromeos.cc',
50 'bluetooth/bluetooth_profile_experimental_chromeos.h',
[email protected]476f29d2013-04-24 09:06:5151 'bluetooth/bluetooth_profile_mac.h',
52 'bluetooth/bluetooth_profile_mac.mm',
[email protected]e55a50f2013-05-05 03:37:0953 'bluetooth/bluetooth_profile_win.cc',
54 'bluetooth/bluetooth_profile_win.h',
[email protected]cab208eb02012-10-18 22:15:2355 'bluetooth/bluetooth_service_record.cc',
56 'bluetooth/bluetooth_service_record.h',
[email protected]658ce05d12013-01-16 03:38:3857 'bluetooth/bluetooth_service_record_chromeos.cc',
58 'bluetooth/bluetooth_service_record_chromeos.h',
[email protected]4aa82472013-03-13 05:02:5159 'bluetooth/bluetooth_service_record_mac.h',
60 'bluetooth/bluetooth_service_record_mac.mm',
[email protected]47c72642013-01-20 01:09:5161 'bluetooth/bluetooth_service_record_win.cc',
62 'bluetooth/bluetooth_service_record_win.h',
[email protected]cab208eb02012-10-18 22:15:2363 'bluetooth/bluetooth_socket.h',
64 'bluetooth/bluetooth_socket_chromeos.cc',
65 'bluetooth/bluetooth_socket_chromeos.h',
[email protected]e882d2c2013-05-09 03:49:1866 'bluetooth/bluetooth_socket_experimental_chromeos.cc',
67 'bluetooth/bluetooth_socket_experimental_chromeos.h',
[email protected]6cc9b8d2013-03-18 21:07:0368 'bluetooth/bluetooth_socket_mac.h',
69 'bluetooth/bluetooth_socket_mac.mm',
[email protected]0ae97592012-10-22 22:06:0570 'bluetooth/bluetooth_socket_win.cc',
71 'bluetooth/bluetooth_socket_win.h',
[email protected]0216e792013-01-16 00:28:1772 'bluetooth/bluetooth_task_manager_win.cc',
73 'bluetooth/bluetooth_task_manager_win.h',
[email protected]cab208eb02012-10-18 22:15:2374 'bluetooth/bluetooth_utils.cc',
75 'bluetooth/bluetooth_utils.h',
76 ],
77 'conditions': [
[email protected]06eaeb442012-10-24 18:01:0178 ['chromeos==1', {
[email protected]cab208eb02012-10-18 22:15:2379 'dependencies': [
[email protected]5c063b02012-10-22 02:56:4080 '../build/linux/system.gyp:dbus',
[email protected]cab208eb02012-10-18 22:15:2381 '../chromeos/chromeos.gyp:chromeos',
82 '../dbus/dbus.gyp:dbus',
83 ]
84 }],
[email protected]5b5ca002012-12-05 23:27:5985 ['OS=="win"', {
86 'all_dependent_settings': {
87 'msvs_settings': {
88 'VCLinkerTool': {
89 'DelayLoadDLLs': [
90 # Despite MSDN stating that Bthprops.dll contains the
91 # symbols declared by bthprops.lib, they actually reside here:
92 'Bthprops.cpl',
93 ],
94 },
95 },
96 },
97 }],
[email protected]55378de2013-03-01 02:41:4098 ['OS=="mac"', {
99 'link_settings': {
100 'libraries': [
101 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
102 ],
103 },
104 }],
[email protected]cab208eb02012-10-18 22:15:23105 ],
106 },
107 {
108 'target_name': 'device_bluetooth_mocks',
[email protected]95676812012-10-30 14:38:06109 'type': 'static_library',
[email protected]cab208eb02012-10-18 22:15:23110 'dependencies': [
111 'device_bluetooth',
112 '../testing/gmock.gyp:gmock',
113 ],
114 'sources': [
115 'bluetooth/test/mock_bluetooth_adapter.cc',
116 'bluetooth/test/mock_bluetooth_adapter.h',
117 'bluetooth/test/mock_bluetooth_device.cc',
118 'bluetooth/test/mock_bluetooth_device.h',
[email protected]ec000992013-05-01 23:32:42119 'bluetooth/test/mock_bluetooth_profile.cc',
120 'bluetooth/test/mock_bluetooth_profile.h',
[email protected]c52f63ac2012-11-13 21:56:45121 'bluetooth/test/mock_bluetooth_socket.cc',
122 'bluetooth/test/mock_bluetooth_socket.h',
[email protected]cab208eb02012-10-18 22:15:23123 ],
124 'include_dirs': [
125 '..',
126 ],
127 },
128 {
[email protected]25d2b13942012-12-05 22:41:18129 'target_name': 'device_usb',
130 'type': 'static_library',
131 'sources': [
132 'usb/usb_ids.cc',
133 'usb/usb_ids.h',
134 ],
135 'include_dirs': [
136 '..',
137 ],
138 'actions': [
139 {
140 'action_name': 'generate_usb_ids',
141 'variables': {
142 'usb_ids_path%': '<(DEPTH)/third_party/usb_ids/usb.ids',
143 'usb_ids_py_path': '<(DEPTH)/tools/usb_ids/usb_ids.py',
144 },
145 'inputs': [
146 '<(usb_ids_path)',
147 '<(usb_ids_py_path)',
148 ],
149 'outputs': [
150 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
151 ],
152 'action': [
153 'python',
154 '<(usb_ids_py_path)',
155 '-i', '<(usb_ids_path)',
156 '-o', '<@(_outputs)',
157 ],
158 'process_outputs_as_sources': 1,
159 },
160 ],
161 },
162 {
[email protected]cab208eb02012-10-18 22:15:23163 'target_name': 'device_unittests',
164 'type': '<(gtest_target_type)',
165 'dependencies': [
166 'device_bluetooth',
167 'device_bluetooth_mocks',
[email protected]25d2b13942012-12-05 22:41:18168 'device_usb',
[email protected]cab208eb02012-10-18 22:15:23169 '../base/base.gyp:test_support_base',
[email protected]cab208eb02012-10-18 22:15:23170 '../testing/gmock.gyp:gmock',
171 '../testing/gtest.gyp:gtest',
172 ],
173 'sources': [
174 'bluetooth/bluetooth_adapter_chromeos_unittest.cc',
[email protected]06eaeb442012-10-24 18:01:01175 'bluetooth/bluetooth_adapter_devices_chromeos_unittest.cc',
[email protected]1073598a2013-03-04 19:27:43176 'bluetooth/bluetooth_adapter_mac_unittest.mm',
[email protected]cae636d2012-11-14 00:47:48177 'bluetooth/bluetooth_adapter_win_unittest.cc',
[email protected]edcaf14a2013-02-25 17:46:36178 'bluetooth/bluetooth_device_win_unittest.cc',
[email protected]896619e2013-04-18 04:41:42179 'bluetooth/bluetooth_experimental_chromeos_unittest.cc',
[email protected]e882d2c2013-05-09 03:49:18180 'bluetooth/bluetooth_profile_chromeos_unittest.cc',
[email protected]658ce05d12013-01-16 03:38:38181 'bluetooth/bluetooth_service_record_chromeos_unittest.cc',
[email protected]4aa82472013-03-13 05:02:51182 'bluetooth/bluetooth_service_record_mac_unittest.mm',
[email protected]47c72642013-01-20 01:09:51183 'bluetooth/bluetooth_service_record_win_unittest.cc',
[email protected]0216e792013-01-16 00:28:17184 'bluetooth/bluetooth_task_manager_win_unittest.cc',
[email protected]cab208eb02012-10-18 22:15:23185 'bluetooth/bluetooth_utils_unittest.cc',
[email protected]cab208eb02012-10-18 22:15:23186 'test/run_all_unittests.cc',
[email protected]25d2b13942012-12-05 22:41:18187 'usb/usb_ids_unittest.cc',
[email protected]cab208eb02012-10-18 22:15:23188 ],
189 'conditions': [
[email protected]06eaeb442012-10-24 18:01:01190 ['chromeos==1', {
[email protected]cab208eb02012-10-18 22:15:23191 'dependencies': [
[email protected]5c063b02012-10-22 02:56:40192 '../build/linux/system.gyp:dbus',
[email protected]cab208eb02012-10-18 22:15:23193 '../chromeos/chromeos.gyp:chromeos_test_support',
[email protected]896619e2013-04-18 04:41:42194 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
[email protected]cab208eb02012-10-18 22:15:23195 '../dbus/dbus.gyp:dbus',
196 ]
197 }],
[email protected]7d06ba372013-03-26 06:06:26198 ['OS=="mac"', {
199 'link_settings': {
200 'libraries': [
201 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
202 ],
203 },
204 }],
[email protected]df941492013-01-25 01:38:27205 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
206 'conditions': [
207 ['linux_use_tcmalloc == 1', {
208 'dependencies': [
209 '../base/allocator/allocator.gyp:allocator',
210 ],
211 }],
212 ],
213 }],
[email protected]cab208eb02012-10-18 22:15:23214 ],
215 },
216 ],
[email protected]4b6de892013-01-04 18:06:06217 'conditions': [
218 ['OS=="linux"', {
219 'targets': [
220 {
221 # Protobuf compiler / generator for the MtpFileEntry and
222 # MtpFileEntries protocol buffers.
223 'target_name': 'mtp_file_entry_proto',
224 'type': 'static_library',
225 'sources': [
226 '../third_party/cros_system_api/dbus/mtp_file_entry.proto',
227 ],
228 'variables': {
229 'proto_in_dir': '../third_party/cros_system_api/dbus',
230 'proto_out_dir': 'device/media_transfer_protocol',
231 },
232 'includes': ['../build/protoc.gypi'],
233 },
234 {
235 # Protobuf compiler / generator for the MtpStorageInfo protocol
236 # buffer.
237 'target_name': 'mtp_storage_info_proto',
238 'type': 'static_library',
239 'sources': [
240 '../third_party/cros_system_api/dbus/mtp_storage_info.proto',
241 ],
242 'variables': {
243 'proto_in_dir': '../third_party/cros_system_api/dbus',
244 'proto_out_dir': 'device/media_transfer_protocol',
245 },
246 'includes': ['../build/protoc.gypi'],
247 },
248 {
249 'target_name': 'device_media_transfer_protocol',
250 'type': 'static_library',
251 'dependencies': [
252 '../build/linux/system.gyp:dbus',
253 'mtp_file_entry_proto',
254 'mtp_storage_info_proto',
255 ],
256 'sources': [
257 'media_transfer_protocol/media_transfer_protocol_daemon_client.cc',
258 'media_transfer_protocol/media_transfer_protocol_daemon_client.h',
259 'media_transfer_protocol/media_transfer_protocol_manager.cc',
260 'media_transfer_protocol/media_transfer_protocol_manager.h',
261 ],
262 },
263 ],
264 }],
265 ],
[email protected]cab208eb02012-10-18 22:15:23266}