Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Side by Side Diff: device/device_tests.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/core/core.gyp ('k') | device/gamepad/gamepad.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 'target_name': 'device_unittests',
12 'type': '<(gtest_target_type)',
13 'dependencies': [
14 '../base/base.gyp:test_support_base',
15 '../mojo/mojo_edk.gyp:mojo_system_impl',
16 '../mojo/mojo_public.gyp:mojo_cpp_bindings',
17 '../testing/gmock.gyp:gmock',
18 '../testing/gtest.gyp:gtest',
19 '../tools/usb_gadget/usb_gadget.gyp:usb_gadget',
20 'battery/battery.gyp:device_battery',
21 'battery/battery.gyp:device_battery_mojo_bindings',
22 'bluetooth/bluetooth.gyp:device_bluetooth',
23 'bluetooth/bluetooth.gyp:device_bluetooth_mocks',
24 'core/core.gyp:device_core',
25 'core/core.gyp:device_core_mocks',
26 'gamepad/gamepad.gyp:device_gamepad',
27 'gamepad/gamepad.gyp:device_gamepad_test_helpers',
28 'nfc/nfc.gyp:device_nfc',
29 'usb/usb.gyp:device_usb',
30 'usb/usb.gyp:device_usb_mocks',
31 'usb/usb.gyp:device_usb_mojo_bindings',
32 'hid/hid.gyp:device_hid',
33 'hid/hid.gyp:device_hid_mocks',
34 'serial/serial.gyp:device_serial',
35 'serial/serial.gyp:device_serial_test_util',
36 ],
37 'sources': [
38 'battery/battery_status_manager_linux_unittest.cc',
39 'battery/battery_status_manager_win_unittest.cc',
40 'battery/battery_status_service_unittest.cc',
41 'bluetooth/bluetooth_adapter_mac_unittest.mm',
42 'bluetooth/bluetooth_adapter_unittest.cc',
43 'bluetooth/bluetooth_adapter_win_unittest.cc',
44 'bluetooth/bluetooth_advertisement_unittest.cc',
45 'bluetooth/bluetooth_device_unittest.cc',
46 'bluetooth/bluetooth_device_win_unittest.cc',
47 'bluetooth/bluetooth_discovery_filter_unittest.cc',
48 'bluetooth/bluetooth_local_gatt_characteristic_unittest.cc',
49 'bluetooth/bluetooth_local_gatt_descriptor_unittest.cc',
50 'bluetooth/bluetooth_local_gatt_service_unittest.cc',
51 'bluetooth/bluetooth_low_energy_win_unittest.cc',
52 'bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc',
53 'bluetooth/bluetooth_remote_gatt_descriptor_unittest.cc',
54 'bluetooth/bluetooth_remote_gatt_service_unittest.cc',
55 'bluetooth/bluetooth_service_record_win_unittest.cc',
56 'bluetooth/bluetooth_task_manager_win_unittest.cc',
57 'bluetooth/bluetooth_uuid_unittest.cc',
58 'bluetooth/test/bluetooth_gatt_server_test.cc',
59 'bluetooth/test/bluetooth_gatt_server_test.h',
60 'bluetooth/test/bluetooth_test.cc',
61 'bluetooth/test/bluetooth_test.h',
62 'bluetooth/test/bluetooth_test_android.cc',
63 'bluetooth/test/bluetooth_test_android.h',
64 'bluetooth/test/bluetooth_test_mac.h',
65 'bluetooth/test/bluetooth_test_mac.mm',
66 'bluetooth/test/bluetooth_test_win.h',
67 'bluetooth/test/bluetooth_test_win.cc',
68 'bluetooth/test/mock_bluetooth_cbcharacteristic_mac.mm',
69 'bluetooth/test/mock_bluetooth_cbcharacteristic_mac.h',
70 'bluetooth/test/mock_bluetooth_cbperipheral_mac.mm',
71 'bluetooth/test/mock_bluetooth_cbperipheral_mac.h',
72 'bluetooth/test/mock_bluetooth_cbservice_mac.mm',
73 'bluetooth/test/mock_bluetooth_cbservice_mac.h',
74 'bluetooth/test/mock_bluetooth_central_manager_mac.mm',
75 'bluetooth/test/mock_bluetooth_central_manager_mac.h',
76 'bluetooth/test/test_bluetooth_adapter_observer.cc',
77 'bluetooth/test/test_bluetooth_adapter_observer.h',
78 'bluetooth/test/test_bluetooth_local_gatt_service_delegate.cc',
79 'bluetooth/test/test_bluetooth_local_gatt_service_delegate.h',
80 'gamepad/gamepad_provider_unittest.cc',
81 'hid/hid_connection_unittest.cc',
82 'hid/hid_device_filter_unittest.cc',
83 'hid/hid_report_descriptor_unittest.cc',
84 'hid/input_service_linux_unittest.cc',
85 'hid/test_report_descriptors.cc',
86 'hid/test_report_descriptors.h',
87 'nfc/nfc_chromeos_unittest.cc',
88 'nfc/nfc_ndef_record_unittest.cc',
89 'serial/data_sink_unittest.cc',
90 'serial/data_source_unittest.cc',
91 'serial/serial_connection_unittest.cc',
92 "serial/serial_io_handler_posix_unittest.cc",
93 'serial/serial_service_unittest.cc',
94 'test/run_all_unittests.cc',
95 'test/test_device_client.cc',
96 'test/test_device_client.h',
97 'test/usb_test_gadget_impl.cc',
98 'usb/mojo/device_impl_unittest.cc',
99 'usb/mojo/device_manager_impl_unittest.cc',
100 'usb/mojo/mock_permission_provider.cc',
101 'usb/mojo/mock_permission_provider.h',
102 'usb/usb_descriptors_unittest.cc',
103 'usb/usb_device_filter_unittest.cc',
104 'usb/usb_device_handle_unittest.cc',
105 'usb/usb_ids_unittest.cc',
106 'usb/usb_service_unittest.cc',
107 'usb/webusb_descriptors_unittest.cc',
108 ],
109 'conditions': [
110 ['chromeos==1', {
111 'dependencies': [
112 '../chromeos/chromeos.gyp:chromeos_test_support',
113 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
114 ],
115 'sources!': [
116 'battery/battery_status_manager_linux_unittest.cc',
117 ],
118 }],
119 ['(chromeos==1 or OS=="linux") and use_dbus==1', {
120 'dependencies': [
121 '../build/linux/system.gyp:dbus',
122 '../dbus/dbus.gyp:dbus',
123 ],
124 'sources': [
125 'bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc',
126 'bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc',
127 'bluetooth/bluez/bluetooth_audio_sink_bluez_unittest.cc',
128 'bluetooth/bluez/bluetooth_bluez_unittest.cc',
129 'bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc',
130 'bluetooth/bluez/bluetooth_service_attribute_value_bluez_unittest.cc ',
131 'bluetooth/bluez/bluetooth_service_record_bluez_unittest.cc',
132 'bluetooth/bluez/bluetooth_socket_bluez_unittest.cc',
133 'bluetooth/dbus/bluetooth_gatt_application_service_provider_unittest .cc',
134 'bluetooth/test/bluetooth_test_bluez.cc',
135 'bluetooth/test/bluetooth_test_bluez.h',
136 ],
137 }],
138 ['OS=="android"', {
139 'dependencies!': [
140 'battery/battery.gyp:device_battery',
141 'serial/serial.gyp:device_serial',
142 'serial/serial.gyp:device_serial_test_util',
143 'hid/hid.gyp:device_hid',
144 ],
145 'dependencies': [
146 '../testing/android/native_test.gyp:native_test_native_code',
147 'device_bluetooth_test_java',
148 'device_bluetooth_test_jni_headers',
149 ],
150 'sources/': [
151 ['exclude', '(^|/)hid'],
152 ['exclude', '(^|/)serial'],
153 ],
154 'sources!': [
155 'battery/battery_status_service_unittest.cc',
156 'usb/usb_context_unittest.cc',
157 ],
158 }],
159 ['OS=="mac"', {
160 'dependencies': [
161 '../third_party/ocmock/ocmock.gyp:ocmock',
162 ],
163 'link_settings': {
164 'libraries': [
165 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
166 ],
167 },
168 'xcode_settings' : {
169 'OTHER_LDFLAGS' : [
170 '-ObjC',
171 ],
172 },
173 }],
174 ['use_udev==1', {
175 'dependencies': [
176 'udev_linux/udev.gyp:udev_linux',
177 ],
178 'sources': [
179 'udev_linux/udev_unittest.cc',
180 ],
181 }],
182 ['OS=="linux" and use_udev==0', {
183 # Udev is the only Linux implementation. If we're compiling without
184 # Udev, disable these unittests.
185 'dependencies!': [
186 'hid/hid.gyp:device_hid',
187 'serial/serial.gyp:device_serial',
188 'serial/serial.gyp:device_serial_test_util',
189 ],
190 'sources/': [
191 ['exclude', '^serial/'],
192 ['exclude', '^hid/'],
193 ],
194 }],
195 ['OS=="linux" and use_dbus==1', {
196 'dependencies': [
197 '../dbus/dbus.gyp:dbus_test_support',
198 ],
199 }, { # OS != "linux" or use_dbus==0
200 'sources!': [
201 'battery/battery_status_manager_linux_unittest.cc',
202 ],
203 }],
204 ['OS=="win"', {
205 'sources': [
206 'bluetooth/bluetooth_classic_win_fake.cc',
207 'bluetooth/bluetooth_classic_win_fake.h',
208 'bluetooth/bluetooth_low_energy_win_fake.h',
209 'bluetooth/bluetooth_low_energy_win_fake.cc',
210 ],
211 }],
212 ],
213 },
214 ],
215 'conditions': [
216 ['OS=="android"', {
217 'targets': [
218 {
219 'target_name': 'device_unittests_apk',
220 'type': 'none',
221 'dependencies': [
222 'device_unittests',
223 ],
224 'variables': {
225 'test_suite_name': 'device_unittests',
226 },
227 'includes': [ '../build/apk_test.gypi' ],
228 },
229 {
230 'target_name': 'device_bluetooth_test_jni_headers',
231 'type': 'none',
232 'sources': [
233 'bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes .java',
234 ],
235 'variables': {
236 'jni_gen_package': 'device_bluetooth',
237 },
238 'includes': [ '../build/jni_generator.gypi' ],
239 },
240 {
241 'target_name': 'device_bluetooth_test_java',
242 'type': 'none',
243 'dependencies': [
244 'bluetooth/bluetooth.gyp:device_bluetooth_java',
245 ],
246 'variables': {
247 'java_in_dir': 'bluetooth/test/android/java',
248 },
249 'includes': [ '../build/java.gypi' ],
250 },
251 ],
252 'conditions': [
253 ['test_isolation_mode != "noop"', {
254 'targets': [
255 {
256 'target_name': 'device_unittests_apk_run',
257 'type': 'none',
258 'dependencies': [
259 'device_unittests_apk',
260 ],
261 'includes': [
262 '../build/isolate.gypi',
263 ],
264 'sources': [
265 'device_unittests_apk.isolate',
266 ],
267 },
268 ],
269 }],
270 ],
271 }],
272 ['test_isolation_mode != "noop"', {
273 'targets': [
274 {
275 'target_name': 'device_unittests_run',
276 'type': 'none',
277 'dependencies': [
278 'device_unittests',
279 ],
280 'includes': [
281 '../build/isolate.gypi',
282 ],
283 'sources': [
284 'device_unittests.isolate',
285 ]
286 }
287 ]
288 }]
289 ],
290 }
OLDNEW
« no previous file with comments | « device/core/core.gyp ('k') | device/gamepad/gamepad.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698