blob: 5cb565a60d748d5d887ac74b1edeec236c697b88 [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 {
[email protected]cab208eb02012-10-18 22:15:2311 'target_name': 'device_unittests',
12 'type': '<(gtest_target_type)',
13 'dependencies': [
[email protected]cab208eb02012-10-18 22:15:2314 '../base/base.gyp:test_support_base',
[email protected]7e77c0d2014-07-30 22:54:0615 '../mojo/mojo_base.gyp:mojo_environment_chromium',
16 '../mojo/mojo_base.gyp:mojo_system_impl',
[email protected]cab208eb02012-10-18 22:15:2317 '../testing/gmock.gyp:gmock',
18 '../testing/gtest.gyp:gtest',
reillyg4e279522014-09-06 18:37:1519 '../tools/usb_gadget/usb_gadget.gyp:usb_gadget',
[email protected]e3a9ccfc2013-06-03 00:22:3020 'bluetooth/bluetooth.gyp:device_bluetooth',
21 'bluetooth/bluetooth.gyp:device_bluetooth_mocks',
[email protected]b763b842013-12-03 10:37:1522 'nfc/nfc.gyp:device_nfc',
[email protected]e3a9ccfc2013-06-03 00:22:3023 'usb/usb.gyp:device_usb',
[email protected]125724f2014-01-31 20:13:2324 'hid/hid.gyp:device_hid',
[email protected]9a1be232014-07-09 13:04:2625 'serial/serial.gyp:device_serial',
[email protected]b50715c2014-07-21 07:18:3226 'serial/serial.gyp:device_serial_test_util',
[email protected]cab208eb02012-10-18 22:15:2327 ],
28 'sources': [
[email protected]1073598a2013-03-04 19:27:4329 'bluetooth/bluetooth_adapter_mac_unittest.mm',
[email protected]e0e18d02014-02-27 04:33:4930 'bluetooth/bluetooth_adapter_unittest.cc',
[email protected]cae636d2012-11-14 00:47:4831 'bluetooth/bluetooth_adapter_win_unittest.cc',
[email protected]db00ff82014-05-17 05:49:4632 'bluetooth/bluetooth_device_unittest.cc',
[email protected]edcaf14a2013-02-25 17:46:3633 'bluetooth/bluetooth_device_win_unittest.cc',
[email protected]627f4f42013-06-12 14:47:3234 'bluetooth/bluetooth_chromeos_unittest.cc',
[email protected]e65bc222014-04-08 05:18:2835 'bluetooth/bluetooth_gatt_chromeos_unittest.cc',
[email protected]2ede7a22014-06-28 00:51:4936 'bluetooth/bluetooth_low_energy_win_unittest.cc',
[email protected]47c72642013-01-20 01:09:5137 'bluetooth/bluetooth_service_record_win_unittest.cc',
[email protected]891c3942014-05-13 23:33:4038 'bluetooth/bluetooth_socket_chromeos_unittest.cc',
[email protected]0216e792013-01-16 00:28:1739 'bluetooth/bluetooth_task_manager_win_unittest.cc',
[email protected]8148ad42014-04-04 04:10:3840 'bluetooth/bluetooth_uuid_unittest.cc',
[email protected]42716042013-12-08 07:18:5441 'nfc/nfc_chromeos_unittest.cc',
[email protected]b763b842013-12-03 10:37:1542 'nfc/nfc_ndef_record_unittest.cc',
reillygd77718d2014-09-04 00:57:5643 'usb/usb_context_unittest.cc',
44 'usb/usb_device_filter_unittest.cc',
[email protected]25d2b13942012-12-05 22:41:1845 'usb/usb_ids_unittest.cc',
reillygee658b72014-09-04 19:40:3046 'usb/usb_device_handle_unittest.cc',
[email protected]2a0262f2014-08-01 18:39:1747 'usb/usb_service_unittest.cc',
[email protected]125724f2014-01-31 20:13:2348 'hid/hid_connection_unittest.cc',
reillygf4dc9d142014-08-29 05:52:4849 'hid/hid_device_filter_unittest.cc',
[email protected]fe7b3002014-04-25 00:16:4050 'hid/hid_report_descriptor_unittest.cc',
[email protected]125724f2014-01-31 20:13:2351 'hid/hid_service_unittest.cc',
[email protected]eedae132014-04-12 22:02:3752 'hid/input_service_linux_unittest.cc',
[email protected]4e99a932014-08-19 06:14:0253 'serial/data_sink_unittest.cc',
[email protected]f5b07922014-08-11 12:18:5154 'serial/data_source_unittest.cc',
[email protected]b50715c2014-07-21 07:18:3255 'serial/serial_connection_unittest.cc',
[email protected]9a1be232014-07-09 13:04:2656 'serial/serial_service_unittest.cc',
57 'test/run_all_unittests.cc',
[email protected]18d3f7bc2014-07-30 03:20:5458 'test/usb_test_gadget_impl.cc'
[email protected]cab208eb02012-10-18 22:15:2359 ],
60 'conditions': [
[email protected]06eaeb442012-10-24 18:01:0161 ['chromeos==1', {
[email protected]cab208eb02012-10-18 22:15:2362 'dependencies': [
[email protected]5c063b02012-10-22 02:56:4063 '../build/linux/system.gyp:dbus',
[email protected]cab208eb02012-10-18 22:15:2364 '../chromeos/chromeos.gyp:chromeos_test_support',
[email protected]896619e2013-04-18 04:41:4265 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
[email protected]cab208eb02012-10-18 22:15:2366 '../dbus/dbus.gyp:dbus',
67 ]
68 }],
[email protected]7d06ba372013-03-26 06:06:2669 ['OS=="mac"', {
70 'link_settings': {
71 'libraries': [
72 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
73 ],
74 },
75 }],
[email protected]df941492013-01-25 01:38:2776 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
77 'conditions': [
[email protected]2fa89ef2014-05-07 18:45:5978 ['use_allocator!="none"', {
[email protected]df941492013-01-25 01:38:2779 'dependencies': [
80 '../base/allocator/allocator.gyp:allocator',
81 ],
82 }],
83 ],
84 }],
[email protected]7bcb65a62014-06-05 16:46:4085 ['OS=="linux" and use_udev==0', {
86 # Udev is the only Linux implementation. If we're compiling without
87 # Udev, disable these unittests.
[email protected]10d8d022014-06-05 19:37:0188 'dependencies!': [
89 'hid/hid.gyp:device_hid',
[email protected]1d655fe92014-08-18 22:14:1390 'serial/serial.gyp:device_serial',
91 'serial/serial.gyp:device_serial_test_util',
[email protected]10d8d022014-06-05 19:37:0192 ],
93 'sources/': [
[email protected]1d655fe92014-08-18 22:14:1394 ['exclude', '^serial/'],
[email protected]10d8d022014-06-05 19:37:0195 ['exclude', '^hid/'],
[email protected]7bcb65a62014-06-05 16:46:4096 ],
97 }],
[email protected]cab208eb02012-10-18 22:15:2398 ],
99 },
100 ],
[email protected]cab208eb02012-10-18 22:15:23101}