OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 # GN version: //device/bluetooth | 11 # GN version: //device/bluetooth |
12 'target_name': 'device_bluetooth', | 12 'target_name': 'device_bluetooth', |
13 'type': 'static_library', | 13 'type': '<(component)', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '../../base/base.gyp:base', | 15 '../../base/base.gyp:base', |
16 '../../net/net.gyp:net', | 16 '../../net/net.gyp:net', |
17 '../../ui/base/ui_base.gyp:ui_base', | 17 '../../ui/base/ui_base.gyp:ui_base', |
18 'bluetooth_strings.gyp:device_bluetooth_strings', | 18 'bluetooth_strings.gyp:device_bluetooth_strings', |
19 ], | 19 ], |
| 20 'defines': [ |
| 21 'DEVICE_BLUETOOTH_IMPLEMENTATION', |
| 22 ], |
20 'sources': [ | 23 'sources': [ |
21 # Note: file list duplicated in GN build. | 24 # Note: file list duplicated in GN build. |
22 'bluetooth_adapter.cc', | 25 'bluetooth_adapter.cc', |
23 'bluetooth_adapter.h', | 26 'bluetooth_adapter.h', |
24 'bluetooth_adapter_chromeos.cc', | 27 'bluetooth_adapter_chromeos.cc', |
25 'bluetooth_adapter_chromeos.h', | 28 'bluetooth_adapter_chromeos.h', |
26 'bluetooth_adapter_factory.cc', | 29 'bluetooth_adapter_factory.cc', |
27 'bluetooth_adapter_factory.h', | 30 'bluetooth_adapter_factory.h', |
28 'bluetooth_adapter_mac.h', | 31 'bluetooth_adapter_mac.h', |
29 'bluetooth_adapter_mac.mm', | 32 'bluetooth_adapter_mac.mm', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 'dependencies': [ | 102 'dependencies': [ |
100 '../../build/linux/system.gyp:dbus', | 103 '../../build/linux/system.gyp:dbus', |
101 '../../chromeos/chromeos.gyp:chromeos', | 104 '../../chromeos/chromeos.gyp:chromeos', |
102 '../../dbus/dbus.gyp:dbus', | 105 '../../dbus/dbus.gyp:dbus', |
103 ], | 106 ], |
104 'export_dependent_settings': [ | 107 'export_dependent_settings': [ |
105 '../../build/linux/system.gyp:dbus' | 108 '../../build/linux/system.gyp:dbus' |
106 ] | 109 ] |
107 }], | 110 }], |
108 ['OS=="win"', { | 111 ['OS=="win"', { |
109 'all_dependent_settings': { | 112 # The following two blocks are duplicated. They apply to static lib |
| 113 # and shared lib configurations respectively. |
| 114 'all_dependent_settings': { # For static lib, apply to dependents. |
110 'msvs_settings': { | 115 'msvs_settings': { |
111 'VCLinkerTool': { | 116 'VCLinkerTool': { |
112 'DelayLoadDLLs': [ | 117 'DelayLoadDLLs': [ |
113 'BluetoothApis.dll', | 118 'BluetoothApis.dll', |
114 # Despite MSDN stating that Bthprops.dll contains the | 119 # Despite MSDN stating that Bthprops.dll contains the |
115 # symbols declared by bthprops.lib, they actually reside here: | 120 # symbols declared by bthprops.lib, they actually reside here: |
116 'Bthprops.cpl', | 121 'Bthprops.cpl', |
117 'setupapi.dll', | 122 'setupapi.dll', |
118 ], | 123 ], |
119 }, | 124 }, |
120 }, | 125 }, |
121 }, | 126 }, |
| 127 'msvs_settings': { # For shared lib, apply to self. |
| 128 'VCLinkerTool': { |
| 129 'DelayLoadDLLs': [ |
| 130 'BluetoothApis.dll', |
| 131 # Despite MSDN stating that Bthprops.dll contains the |
| 132 # symbols declared by bthprops.lib, they actually reside here: |
| 133 'Bthprops.cpl', |
| 134 'setupapi.dll', |
| 135 ], |
| 136 }, |
| 137 }, |
122 }], | 138 }], |
123 ['OS=="mac"', { | 139 ['OS=="mac"', { |
124 'link_settings': { | 140 'link_settings': { |
125 'libraries': [ | 141 'libraries': [ |
126 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', | 142 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', |
127 ], | 143 ], |
128 }, | 144 }, |
129 }], | 145 }], |
130 ], | 146 ], |
131 }, | 147 }, |
(...skipping 25 matching lines...) Expand all Loading... |
157 'test/mock_bluetooth_gatt_notify_session.cc', | 173 'test/mock_bluetooth_gatt_notify_session.cc', |
158 'test/mock_bluetooth_gatt_notify_session.h', | 174 'test/mock_bluetooth_gatt_notify_session.h', |
159 'test/mock_bluetooth_gatt_service.cc', | 175 'test/mock_bluetooth_gatt_service.cc', |
160 'test/mock_bluetooth_gatt_service.h', | 176 'test/mock_bluetooth_gatt_service.h', |
161 'test/mock_bluetooth_socket.cc', | 177 'test/mock_bluetooth_socket.cc', |
162 'test/mock_bluetooth_socket.h', | 178 'test/mock_bluetooth_socket.h', |
163 ], | 179 ], |
164 }, | 180 }, |
165 ], | 181 ], |
166 } | 182 } |
OLD | NEW |