[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 1 | # 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] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 7 | 'chromium_code': 1, |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 8 | }, |
| 9 | 'targets': [ |
| 10 | { |
| 11 | 'target_name': 'device_bluetooth', |
[email protected] | 9567681 | 2012-10-30 14:38:06 | [diff] [blame] | 12 | 'type': 'static_library', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 13 | 'dependencies': [ |
[email protected] | 8a92bbd | 2013-02-22 01:07:29 | [diff] [blame] | 14 | '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] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 20 | ], |
| 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] | 47df495 | 2013-04-03 01:11:11 | [diff] [blame] | 26 | 'bluetooth/bluetooth_adapter_experimental_chromeos.cc', |
| 27 | 'bluetooth/bluetooth_adapter_experimental_chromeos.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 28 | 'bluetooth/bluetooth_adapter_factory.cc', |
| 29 | 'bluetooth/bluetooth_adapter_factory.h', |
[email protected] | 55378de | 2013-03-01 02:41:40 | [diff] [blame] | 30 | 'bluetooth/bluetooth_adapter_mac.h', |
| 31 | 'bluetooth/bluetooth_adapter_mac.mm', |
[email protected] | 0ae9759 | 2012-10-22 22:06:05 | [diff] [blame] | 32 | 'bluetooth/bluetooth_adapter_win.cc', |
| 33 | 'bluetooth/bluetooth_adapter_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 34 | 'bluetooth/bluetooth_device.cc', |
| 35 | 'bluetooth/bluetooth_device.h', |
| 36 | 'bluetooth/bluetooth_device_chromeos.cc', |
| 37 | 'bluetooth/bluetooth_device_chromeos.h', |
[email protected] | 896619e | 2013-04-18 04:41:42 | [diff] [blame] | 38 | 'bluetooth/bluetooth_device_experimental_chromeos.cc', |
| 39 | 'bluetooth/bluetooth_device_experimental_chromeos.h', |
[email protected] | c579317d | 2013-03-19 00:52:00 | [diff] [blame] | 40 | 'bluetooth/bluetooth_device_mac.h', |
| 41 | 'bluetooth/bluetooth_device_mac.mm', |
[email protected] | 0ae9759 | 2012-10-22 22:06:05 | [diff] [blame] | 42 | 'bluetooth/bluetooth_device_win.cc', |
| 43 | 'bluetooth/bluetooth_device_win.h', |
[email protected] | 063d943 | 2013-01-25 09:26:01 | [diff] [blame] | 44 | 'bluetooth/bluetooth_init_win.cc', |
| 45 | 'bluetooth/bluetooth_init_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 46 | 'bluetooth/bluetooth_out_of_band_pairing_data.h', |
[email protected] | 2862df46 | 2013-04-19 21:07:21 | [diff] [blame] | 47 | 'bluetooth/bluetooth_profile.cc', |
| 48 | 'bluetooth/bluetooth_profile.h', |
[email protected] | e882d2c | 2013-05-09 03:49:18 | [diff] [blame^] | 49 | 'bluetooth/bluetooth_profile_experimental_chromeos.cc', |
| 50 | 'bluetooth/bluetooth_profile_experimental_chromeos.h', |
[email protected] | 476f29d | 2013-04-24 09:06:51 | [diff] [blame] | 51 | 'bluetooth/bluetooth_profile_mac.h', |
| 52 | 'bluetooth/bluetooth_profile_mac.mm', |
[email protected] | e55a50f | 2013-05-05 03:37:09 | [diff] [blame] | 53 | 'bluetooth/bluetooth_profile_win.cc', |
| 54 | 'bluetooth/bluetooth_profile_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 55 | 'bluetooth/bluetooth_service_record.cc', |
| 56 | 'bluetooth/bluetooth_service_record.h', |
[email protected] | 658ce05d1 | 2013-01-16 03:38:38 | [diff] [blame] | 57 | 'bluetooth/bluetooth_service_record_chromeos.cc', |
| 58 | 'bluetooth/bluetooth_service_record_chromeos.h', |
[email protected] | 4aa8247 | 2013-03-13 05:02:51 | [diff] [blame] | 59 | 'bluetooth/bluetooth_service_record_mac.h', |
| 60 | 'bluetooth/bluetooth_service_record_mac.mm', |
[email protected] | 47c7264 | 2013-01-20 01:09:51 | [diff] [blame] | 61 | 'bluetooth/bluetooth_service_record_win.cc', |
| 62 | 'bluetooth/bluetooth_service_record_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 63 | 'bluetooth/bluetooth_socket.h', |
| 64 | 'bluetooth/bluetooth_socket_chromeos.cc', |
| 65 | 'bluetooth/bluetooth_socket_chromeos.h', |
[email protected] | e882d2c | 2013-05-09 03:49:18 | [diff] [blame^] | 66 | 'bluetooth/bluetooth_socket_experimental_chromeos.cc', |
| 67 | 'bluetooth/bluetooth_socket_experimental_chromeos.h', |
[email protected] | 6cc9b8d | 2013-03-18 21:07:03 | [diff] [blame] | 68 | 'bluetooth/bluetooth_socket_mac.h', |
| 69 | 'bluetooth/bluetooth_socket_mac.mm', |
[email protected] | 0ae9759 | 2012-10-22 22:06:05 | [diff] [blame] | 70 | 'bluetooth/bluetooth_socket_win.cc', |
| 71 | 'bluetooth/bluetooth_socket_win.h', |
[email protected] | 0216e79 | 2013-01-16 00:28:17 | [diff] [blame] | 72 | 'bluetooth/bluetooth_task_manager_win.cc', |
| 73 | 'bluetooth/bluetooth_task_manager_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 74 | 'bluetooth/bluetooth_utils.cc', |
| 75 | 'bluetooth/bluetooth_utils.h', |
| 76 | ], |
| 77 | 'conditions': [ |
[email protected] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 78 | ['chromeos==1', { |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 79 | 'dependencies': [ |
[email protected] | 5c063b0 | 2012-10-22 02:56:40 | [diff] [blame] | 80 | '../build/linux/system.gyp:dbus', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 81 | '../chromeos/chromeos.gyp:chromeos', |
| 82 | '../dbus/dbus.gyp:dbus', |
| 83 | ] |
| 84 | }], |
[email protected] | 5b5ca00 | 2012-12-05 23:27:59 | [diff] [blame] | 85 | ['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] | 55378de | 2013-03-01 02:41:40 | [diff] [blame] | 98 | ['OS=="mac"', { |
| 99 | 'link_settings': { |
| 100 | 'libraries': [ |
| 101 | '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', |
| 102 | ], |
| 103 | }, |
| 104 | }], |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 105 | ], |
| 106 | }, |
| 107 | { |
| 108 | 'target_name': 'device_bluetooth_mocks', |
[email protected] | 9567681 | 2012-10-30 14:38:06 | [diff] [blame] | 109 | 'type': 'static_library', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 110 | '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] | ec00099 | 2013-05-01 23:32:42 | [diff] [blame] | 119 | 'bluetooth/test/mock_bluetooth_profile.cc', |
| 120 | 'bluetooth/test/mock_bluetooth_profile.h', |
[email protected] | c52f63ac | 2012-11-13 21:56:45 | [diff] [blame] | 121 | 'bluetooth/test/mock_bluetooth_socket.cc', |
| 122 | 'bluetooth/test/mock_bluetooth_socket.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 123 | ], |
| 124 | 'include_dirs': [ |
| 125 | '..', |
| 126 | ], |
| 127 | }, |
| 128 | { |
[email protected] | 25d2b1394 | 2012-12-05 22:41:18 | [diff] [blame] | 129 | '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] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 163 | 'target_name': 'device_unittests', |
| 164 | 'type': '<(gtest_target_type)', |
| 165 | 'dependencies': [ |
| 166 | 'device_bluetooth', |
| 167 | 'device_bluetooth_mocks', |
[email protected] | 25d2b1394 | 2012-12-05 22:41:18 | [diff] [blame] | 168 | 'device_usb', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 169 | '../base/base.gyp:test_support_base', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 170 | '../testing/gmock.gyp:gmock', |
| 171 | '../testing/gtest.gyp:gtest', |
| 172 | ], |
| 173 | 'sources': [ |
| 174 | 'bluetooth/bluetooth_adapter_chromeos_unittest.cc', |
[email protected] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 175 | 'bluetooth/bluetooth_adapter_devices_chromeos_unittest.cc', |
[email protected] | 1073598a | 2013-03-04 19:27:43 | [diff] [blame] | 176 | 'bluetooth/bluetooth_adapter_mac_unittest.mm', |
[email protected] | cae636d | 2012-11-14 00:47:48 | [diff] [blame] | 177 | 'bluetooth/bluetooth_adapter_win_unittest.cc', |
[email protected] | edcaf14a | 2013-02-25 17:46:36 | [diff] [blame] | 178 | 'bluetooth/bluetooth_device_win_unittest.cc', |
[email protected] | 896619e | 2013-04-18 04:41:42 | [diff] [blame] | 179 | 'bluetooth/bluetooth_experimental_chromeos_unittest.cc', |
[email protected] | e882d2c | 2013-05-09 03:49:18 | [diff] [blame^] | 180 | 'bluetooth/bluetooth_profile_chromeos_unittest.cc', |
[email protected] | 658ce05d1 | 2013-01-16 03:38:38 | [diff] [blame] | 181 | 'bluetooth/bluetooth_service_record_chromeos_unittest.cc', |
[email protected] | 4aa8247 | 2013-03-13 05:02:51 | [diff] [blame] | 182 | 'bluetooth/bluetooth_service_record_mac_unittest.mm', |
[email protected] | 47c7264 | 2013-01-20 01:09:51 | [diff] [blame] | 183 | 'bluetooth/bluetooth_service_record_win_unittest.cc', |
[email protected] | 0216e79 | 2013-01-16 00:28:17 | [diff] [blame] | 184 | 'bluetooth/bluetooth_task_manager_win_unittest.cc', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 185 | 'bluetooth/bluetooth_utils_unittest.cc', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 186 | 'test/run_all_unittests.cc', |
[email protected] | 25d2b1394 | 2012-12-05 22:41:18 | [diff] [blame] | 187 | 'usb/usb_ids_unittest.cc', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 188 | ], |
| 189 | 'conditions': [ |
[email protected] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 190 | ['chromeos==1', { |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 191 | 'dependencies': [ |
[email protected] | 5c063b0 | 2012-10-22 02:56:40 | [diff] [blame] | 192 | '../build/linux/system.gyp:dbus', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 193 | '../chromeos/chromeos.gyp:chromeos_test_support', |
[email protected] | 896619e | 2013-04-18 04:41:42 | [diff] [blame] | 194 | '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 195 | '../dbus/dbus.gyp:dbus', |
| 196 | ] |
| 197 | }], |
[email protected] | 7d06ba37 | 2013-03-26 06:06:26 | [diff] [blame] | 198 | ['OS=="mac"', { |
| 199 | 'link_settings': { |
| 200 | 'libraries': [ |
| 201 | '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', |
| 202 | ], |
| 203 | }, |
| 204 | }], |
[email protected] | df94149 | 2013-01-25 01:38:27 | [diff] [blame] | 205 | ['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] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 214 | ], |
| 215 | }, |
| 216 | ], |
[email protected] | 4b6de89 | 2013-01-04 18:06:06 | [diff] [blame] | 217 | '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] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 266 | } |