blob: e5335f8126e4c6b530081b243538404925864ffb [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',
26 'bluetooth/bluetooth_adapter_factory.cc',
27 'bluetooth/bluetooth_adapter_factory.h',
[email protected]55378de2013-03-01 02:41:4028 'bluetooth/bluetooth_adapter_mac.h',
29 'bluetooth/bluetooth_adapter_mac.mm',
[email protected]0ae97592012-10-22 22:06:0530 'bluetooth/bluetooth_adapter_win.cc',
31 'bluetooth/bluetooth_adapter_win.h',
[email protected]cab208eb02012-10-18 22:15:2332 'bluetooth/bluetooth_device.cc',
33 'bluetooth/bluetooth_device.h',
34 'bluetooth/bluetooth_device_chromeos.cc',
35 'bluetooth/bluetooth_device_chromeos.h',
[email protected]0ae97592012-10-22 22:06:0536 'bluetooth/bluetooth_device_win.cc',
37 'bluetooth/bluetooth_device_win.h',
[email protected]063d9432013-01-25 09:26:0138 'bluetooth/bluetooth_init_win.cc',
39 'bluetooth/bluetooth_init_win.h',
[email protected]cab208eb02012-10-18 22:15:2340 'bluetooth/bluetooth_out_of_band_pairing_data.h',
41 'bluetooth/bluetooth_service_record.cc',
42 'bluetooth/bluetooth_service_record.h',
[email protected]658ce05d12013-01-16 03:38:3843 'bluetooth/bluetooth_service_record_chromeos.cc',
44 'bluetooth/bluetooth_service_record_chromeos.h',
[email protected]47c72642013-01-20 01:09:5145 'bluetooth/bluetooth_service_record_win.cc',
46 'bluetooth/bluetooth_service_record_win.h',
[email protected]cab208eb02012-10-18 22:15:2347 'bluetooth/bluetooth_socket.h',
48 'bluetooth/bluetooth_socket_chromeos.cc',
49 'bluetooth/bluetooth_socket_chromeos.h',
[email protected]0ae97592012-10-22 22:06:0550 'bluetooth/bluetooth_socket_win.cc',
51 'bluetooth/bluetooth_socket_win.h',
[email protected]0216e792013-01-16 00:28:1752 'bluetooth/bluetooth_task_manager_win.cc',
53 'bluetooth/bluetooth_task_manager_win.h',
[email protected]cab208eb02012-10-18 22:15:2354 'bluetooth/bluetooth_utils.cc',
55 'bluetooth/bluetooth_utils.h',
56 ],
57 'conditions': [
[email protected]06eaeb442012-10-24 18:01:0158 ['chromeos==1', {
[email protected]cab208eb02012-10-18 22:15:2359 'dependencies': [
[email protected]5c063b02012-10-22 02:56:4060 '../build/linux/system.gyp:dbus',
[email protected]cab208eb02012-10-18 22:15:2361 '../chromeos/chromeos.gyp:chromeos',
62 '../dbus/dbus.gyp:dbus',
63 ]
64 }],
[email protected]5b5ca002012-12-05 23:27:5965 ['OS=="win"', {
66 'all_dependent_settings': {
67 'msvs_settings': {
68 'VCLinkerTool': {
69 'DelayLoadDLLs': [
70 # Despite MSDN stating that Bthprops.dll contains the
71 # symbols declared by bthprops.lib, they actually reside here:
72 'Bthprops.cpl',
73 ],
74 },
75 },
76 },
77 }],
[email protected]55378de2013-03-01 02:41:4078 ['OS=="mac"', {
79 'link_settings': {
80 'libraries': [
81 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
82 ],
83 },
84 }],
[email protected]cab208eb02012-10-18 22:15:2385 ],
86 },
87 {
88 'target_name': 'device_bluetooth_mocks',
[email protected]95676812012-10-30 14:38:0689 'type': 'static_library',
[email protected]cab208eb02012-10-18 22:15:2390 'dependencies': [
91 'device_bluetooth',
92 '../testing/gmock.gyp:gmock',
93 ],
94 'sources': [
95 'bluetooth/test/mock_bluetooth_adapter.cc',
96 'bluetooth/test/mock_bluetooth_adapter.h',
97 'bluetooth/test/mock_bluetooth_device.cc',
98 'bluetooth/test/mock_bluetooth_device.h',
[email protected]c52f63ac2012-11-13 21:56:4599 'bluetooth/test/mock_bluetooth_socket.cc',
100 'bluetooth/test/mock_bluetooth_socket.h',
[email protected]cab208eb02012-10-18 22:15:23101 ],
102 'include_dirs': [
103 '..',
104 ],
105 },
106 {
[email protected]25d2b13942012-12-05 22:41:18107 'target_name': 'device_usb',
108 'type': 'static_library',
109 'sources': [
110 'usb/usb_ids.cc',
111 'usb/usb_ids.h',
112 ],
113 'include_dirs': [
114 '..',
115 ],
116 'actions': [
117 {
118 'action_name': 'generate_usb_ids',
119 'variables': {
120 'usb_ids_path%': '<(DEPTH)/third_party/usb_ids/usb.ids',
121 'usb_ids_py_path': '<(DEPTH)/tools/usb_ids/usb_ids.py',
122 },
123 'inputs': [
124 '<(usb_ids_path)',
125 '<(usb_ids_py_path)',
126 ],
127 'outputs': [
128 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc',
129 ],
130 'action': [
131 'python',
132 '<(usb_ids_py_path)',
133 '-i', '<(usb_ids_path)',
134 '-o', '<@(_outputs)',
135 ],
136 'process_outputs_as_sources': 1,
137 },
138 ],
139 },
140 {
[email protected]cab208eb02012-10-18 22:15:23141 'target_name': 'device_unittests',
142 'type': '<(gtest_target_type)',
143 'dependencies': [
144 'device_bluetooth',
145 'device_bluetooth_mocks',
[email protected]25d2b13942012-12-05 22:41:18146 'device_usb',
[email protected]cab208eb02012-10-18 22:15:23147 '../base/base.gyp:test_support_base',
[email protected]cab208eb02012-10-18 22:15:23148 '../testing/gmock.gyp:gmock',
149 '../testing/gtest.gyp:gtest',
150 ],
151 'sources': [
152 'bluetooth/bluetooth_adapter_chromeos_unittest.cc',
[email protected]06eaeb442012-10-24 18:01:01153 'bluetooth/bluetooth_adapter_devices_chromeos_unittest.cc',
[email protected]1073598a2013-03-04 19:27:43154 'bluetooth/bluetooth_adapter_mac_unittest.mm',
[email protected]cae636d2012-11-14 00:47:48155 'bluetooth/bluetooth_adapter_win_unittest.cc',
[email protected]edcaf14a2013-02-25 17:46:36156 'bluetooth/bluetooth_device_win_unittest.cc',
[email protected]658ce05d12013-01-16 03:38:38157 'bluetooth/bluetooth_service_record_chromeos_unittest.cc',
[email protected]47c72642013-01-20 01:09:51158 'bluetooth/bluetooth_service_record_win_unittest.cc',
[email protected]0216e792013-01-16 00:28:17159 'bluetooth/bluetooth_task_manager_win_unittest.cc',
[email protected]cab208eb02012-10-18 22:15:23160 'bluetooth/bluetooth_utils_unittest.cc',
[email protected]cab208eb02012-10-18 22:15:23161 'test/run_all_unittests.cc',
[email protected]25d2b13942012-12-05 22:41:18162 'usb/usb_ids_unittest.cc',
[email protected]cab208eb02012-10-18 22:15:23163 ],
164 'conditions': [
[email protected]06eaeb442012-10-24 18:01:01165 ['chromeos==1', {
[email protected]cab208eb02012-10-18 22:15:23166 'dependencies': [
[email protected]5c063b02012-10-22 02:56:40167 '../build/linux/system.gyp:dbus',
[email protected]cab208eb02012-10-18 22:15:23168 '../chromeos/chromeos.gyp:chromeos_test_support',
169 '../dbus/dbus.gyp:dbus',
170 ]
171 }],
[email protected]df941492013-01-25 01:38:27172 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
173 'conditions': [
174 ['linux_use_tcmalloc == 1', {
175 'dependencies': [
176 '../base/allocator/allocator.gyp:allocator',
177 ],
178 }],
179 ],
180 }],
[email protected]cab208eb02012-10-18 22:15:23181 ],
182 },
183 ],
[email protected]4b6de892013-01-04 18:06:06184 'conditions': [
185 ['OS=="linux"', {
186 'targets': [
187 {
188 # Protobuf compiler / generator for the MtpFileEntry and
189 # MtpFileEntries protocol buffers.
190 'target_name': 'mtp_file_entry_proto',
191 'type': 'static_library',
192 'sources': [
193 '../third_party/cros_system_api/dbus/mtp_file_entry.proto',
194 ],
195 'variables': {
196 'proto_in_dir': '../third_party/cros_system_api/dbus',
197 'proto_out_dir': 'device/media_transfer_protocol',
198 },
199 'includes': ['../build/protoc.gypi'],
200 },
201 {
202 # Protobuf compiler / generator for the MtpStorageInfo protocol
203 # buffer.
204 'target_name': 'mtp_storage_info_proto',
205 'type': 'static_library',
206 'sources': [
207 '../third_party/cros_system_api/dbus/mtp_storage_info.proto',
208 ],
209 'variables': {
210 'proto_in_dir': '../third_party/cros_system_api/dbus',
211 'proto_out_dir': 'device/media_transfer_protocol',
212 },
213 'includes': ['../build/protoc.gypi'],
214 },
215 {
216 'target_name': 'device_media_transfer_protocol',
217 'type': 'static_library',
218 'dependencies': [
219 '../build/linux/system.gyp:dbus',
220 'mtp_file_entry_proto',
221 'mtp_storage_info_proto',
222 ],
223 'sources': [
224 'media_transfer_protocol/media_transfer_protocol_daemon_client.cc',
225 'media_transfer_protocol/media_transfer_protocol_daemon_client.h',
226 'media_transfer_protocol/media_transfer_protocol_manager.cc',
227 'media_transfer_protocol/media_transfer_protocol_manager.h',
228 ],
229 },
230 ],
231 }],
232 ],
[email protected]cab208eb02012-10-18 22:15:23233}