[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', |
| 26 | 'bluetooth/bluetooth_adapter_factory.cc', |
| 27 | 'bluetooth/bluetooth_adapter_factory.h', |
[email protected] | 55378de | 2013-03-01 02:41:40 | [diff] [blame] | 28 | 'bluetooth/bluetooth_adapter_mac.h', |
| 29 | 'bluetooth/bluetooth_adapter_mac.mm', |
[email protected] | 0ae9759 | 2012-10-22 22:06:05 | [diff] [blame] | 30 | 'bluetooth/bluetooth_adapter_win.cc', |
| 31 | 'bluetooth/bluetooth_adapter_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 32 | 'bluetooth/bluetooth_device.cc', |
| 33 | 'bluetooth/bluetooth_device.h', |
| 34 | 'bluetooth/bluetooth_device_chromeos.cc', |
| 35 | 'bluetooth/bluetooth_device_chromeos.h', |
[email protected] | 0ae9759 | 2012-10-22 22:06:05 | [diff] [blame] | 36 | 'bluetooth/bluetooth_device_win.cc', |
| 37 | 'bluetooth/bluetooth_device_win.h', |
[email protected] | 063d943 | 2013-01-25 09:26:01 | [diff] [blame] | 38 | 'bluetooth/bluetooth_init_win.cc', |
| 39 | 'bluetooth/bluetooth_init_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 40 | 'bluetooth/bluetooth_out_of_band_pairing_data.h', |
| 41 | 'bluetooth/bluetooth_service_record.cc', |
| 42 | 'bluetooth/bluetooth_service_record.h', |
[email protected] | 658ce05d1 | 2013-01-16 03:38:38 | [diff] [blame] | 43 | 'bluetooth/bluetooth_service_record_chromeos.cc', |
| 44 | 'bluetooth/bluetooth_service_record_chromeos.h', |
[email protected] | 47c7264 | 2013-01-20 01:09:51 | [diff] [blame] | 45 | 'bluetooth/bluetooth_service_record_win.cc', |
| 46 | 'bluetooth/bluetooth_service_record_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 47 | 'bluetooth/bluetooth_socket.h', |
| 48 | 'bluetooth/bluetooth_socket_chromeos.cc', |
| 49 | 'bluetooth/bluetooth_socket_chromeos.h', |
[email protected] | 0ae9759 | 2012-10-22 22:06:05 | [diff] [blame] | 50 | 'bluetooth/bluetooth_socket_win.cc', |
| 51 | 'bluetooth/bluetooth_socket_win.h', |
[email protected] | 0216e79 | 2013-01-16 00:28:17 | [diff] [blame] | 52 | 'bluetooth/bluetooth_task_manager_win.cc', |
| 53 | 'bluetooth/bluetooth_task_manager_win.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 54 | 'bluetooth/bluetooth_utils.cc', |
| 55 | 'bluetooth/bluetooth_utils.h', |
| 56 | ], |
| 57 | 'conditions': [ |
[email protected] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 58 | ['chromeos==1', { |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 59 | 'dependencies': [ |
[email protected] | 5c063b0 | 2012-10-22 02:56:40 | [diff] [blame] | 60 | '../build/linux/system.gyp:dbus', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 61 | '../chromeos/chromeos.gyp:chromeos', |
| 62 | '../dbus/dbus.gyp:dbus', |
| 63 | ] |
| 64 | }], |
[email protected] | 5b5ca00 | 2012-12-05 23:27:59 | [diff] [blame] | 65 | ['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] | 55378de | 2013-03-01 02:41:40 | [diff] [blame] | 78 | ['OS=="mac"', { |
| 79 | 'link_settings': { |
| 80 | 'libraries': [ |
| 81 | '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', |
| 82 | ], |
| 83 | }, |
| 84 | }], |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 85 | ], |
| 86 | }, |
| 87 | { |
| 88 | 'target_name': 'device_bluetooth_mocks', |
[email protected] | 9567681 | 2012-10-30 14:38:06 | [diff] [blame] | 89 | 'type': 'static_library', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 90 | '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] | c52f63ac | 2012-11-13 21:56:45 | [diff] [blame] | 99 | 'bluetooth/test/mock_bluetooth_socket.cc', |
| 100 | 'bluetooth/test/mock_bluetooth_socket.h', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 101 | ], |
| 102 | 'include_dirs': [ |
| 103 | '..', |
| 104 | ], |
| 105 | }, |
| 106 | { |
[email protected] | 25d2b1394 | 2012-12-05 22:41:18 | [diff] [blame] | 107 | '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] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 141 | 'target_name': 'device_unittests', |
| 142 | 'type': '<(gtest_target_type)', |
| 143 | 'dependencies': [ |
| 144 | 'device_bluetooth', |
| 145 | 'device_bluetooth_mocks', |
[email protected] | 25d2b1394 | 2012-12-05 22:41:18 | [diff] [blame] | 146 | 'device_usb', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 147 | '../base/base.gyp:test_support_base', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 148 | '../testing/gmock.gyp:gmock', |
| 149 | '../testing/gtest.gyp:gtest', |
| 150 | ], |
| 151 | 'sources': [ |
| 152 | 'bluetooth/bluetooth_adapter_chromeos_unittest.cc', |
[email protected] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 153 | 'bluetooth/bluetooth_adapter_devices_chromeos_unittest.cc', |
[email protected] | 1073598a | 2013-03-04 19:27:43 | [diff] [blame^] | 154 | 'bluetooth/bluetooth_adapter_mac_unittest.mm', |
[email protected] | cae636d | 2012-11-14 00:47:48 | [diff] [blame] | 155 | 'bluetooth/bluetooth_adapter_win_unittest.cc', |
[email protected] | edcaf14a | 2013-02-25 17:46:36 | [diff] [blame] | 156 | 'bluetooth/bluetooth_device_win_unittest.cc', |
[email protected] | 658ce05d1 | 2013-01-16 03:38:38 | [diff] [blame] | 157 | 'bluetooth/bluetooth_service_record_chromeos_unittest.cc', |
[email protected] | 47c7264 | 2013-01-20 01:09:51 | [diff] [blame] | 158 | 'bluetooth/bluetooth_service_record_win_unittest.cc', |
[email protected] | 0216e79 | 2013-01-16 00:28:17 | [diff] [blame] | 159 | 'bluetooth/bluetooth_task_manager_win_unittest.cc', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 160 | 'bluetooth/bluetooth_utils_unittest.cc', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 161 | 'test/run_all_unittests.cc', |
[email protected] | 25d2b1394 | 2012-12-05 22:41:18 | [diff] [blame] | 162 | 'usb/usb_ids_unittest.cc', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 163 | ], |
| 164 | 'conditions': [ |
[email protected] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 165 | ['chromeos==1', { |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 166 | 'dependencies': [ |
[email protected] | 5c063b0 | 2012-10-22 02:56:40 | [diff] [blame] | 167 | '../build/linux/system.gyp:dbus', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 168 | '../chromeos/chromeos.gyp:chromeos_test_support', |
| 169 | '../dbus/dbus.gyp:dbus', |
| 170 | ] |
| 171 | }], |
[email protected] | df94149 | 2013-01-25 01:38:27 | [diff] [blame] | 172 | ['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] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 181 | ], |
| 182 | }, |
| 183 | ], |
[email protected] | 4b6de89 | 2013-01-04 18:06:06 | [diff] [blame] | 184 | '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] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 233 | } |