blob: c3d35b18f3bb578dded7d64b5bccd2324c159f16 [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]18d3f7bc2014-07-30 03:20:5415 '../components/components.gyp:usb_service',
[email protected]7e77c0d2014-07-30 22:54:0616 '../mojo/mojo_base.gyp:mojo_environment_chromium',
17 '../mojo/mojo_base.gyp:mojo_system_impl',
[email protected]cab208eb02012-10-18 22:15:2318 '../testing/gmock.gyp:gmock',
19 '../testing/gtest.gyp:gtest',
[email protected]18d3f7bc2014-07-30 03:20:5420 '../tools/usb_gadget.gyp:usb_gadget',
[email protected]e3a9ccfc2013-06-03 00:22:3021 'bluetooth/bluetooth.gyp:device_bluetooth',
22 'bluetooth/bluetooth.gyp:device_bluetooth_mocks',
[email protected]b763b842013-12-03 10:37:1523 'nfc/nfc.gyp:device_nfc',
[email protected]e3a9ccfc2013-06-03 00:22:3024 'usb/usb.gyp:device_usb',
[email protected]125724f2014-01-31 20:13:2325 'hid/hid.gyp:device_hid',
[email protected]9a1be232014-07-09 13:04:2626 'serial/serial.gyp:device_serial',
[email protected]b50715c2014-07-21 07:18:3227 'serial/serial.gyp:device_serial_test_util',
[email protected]cab208eb02012-10-18 22:15:2328 ],
29 'sources': [
[email protected]1073598a2013-03-04 19:27:4330 'bluetooth/bluetooth_adapter_mac_unittest.mm',
[email protected]e0e18d02014-02-27 04:33:4931 'bluetooth/bluetooth_adapter_unittest.cc',
[email protected]cae636d2012-11-14 00:47:4832 'bluetooth/bluetooth_adapter_win_unittest.cc',
[email protected]db00ff82014-05-17 05:49:4633 'bluetooth/bluetooth_device_unittest.cc',
[email protected]edcaf14a2013-02-25 17:46:3634 'bluetooth/bluetooth_device_win_unittest.cc',
[email protected]627f4f42013-06-12 14:47:3235 'bluetooth/bluetooth_chromeos_unittest.cc',
[email protected]e65bc222014-04-08 05:18:2836 'bluetooth/bluetooth_gatt_chromeos_unittest.cc',
[email protected]2ede7a22014-06-28 00:51:4937 'bluetooth/bluetooth_low_energy_win_unittest.cc',
[email protected]47c72642013-01-20 01:09:5138 'bluetooth/bluetooth_service_record_win_unittest.cc',
[email protected]891c3942014-05-13 23:33:4039 'bluetooth/bluetooth_socket_chromeos_unittest.cc',
[email protected]0216e792013-01-16 00:28:1740 'bluetooth/bluetooth_task_manager_win_unittest.cc',
[email protected]8148ad42014-04-04 04:10:3841 'bluetooth/bluetooth_uuid_unittest.cc',
[email protected]42716042013-12-08 07:18:5442 'nfc/nfc_chromeos_unittest.cc',
[email protected]b763b842013-12-03 10:37:1543 'nfc/nfc_ndef_record_unittest.cc',
[email protected]25d2b13942012-12-05 22:41:1844 'usb/usb_ids_unittest.cc',
[email protected]125724f2014-01-31 20:13:2345 'hid/hid_connection_unittest.cc',
[email protected]fe7b3002014-04-25 00:16:4046 'hid/hid_report_descriptor_unittest.cc',
[email protected]125724f2014-01-31 20:13:2347 'hid/hid_service_unittest.cc',
[email protected]eedae132014-04-12 22:02:3748 'hid/input_service_linux_unittest.cc',
[email protected]b50715c2014-07-21 07:18:3249 'serial/serial_connection_unittest.cc',
[email protected]9a1be232014-07-09 13:04:2650 'serial/serial_service_unittest.cc',
51 'test/run_all_unittests.cc',
[email protected]18d3f7bc2014-07-30 03:20:5452 'test/usb_test_gadget_impl.cc'
[email protected]cab208eb02012-10-18 22:15:2353 ],
54 'conditions': [
[email protected]06eaeb442012-10-24 18:01:0155 ['chromeos==1', {
[email protected]cab208eb02012-10-18 22:15:2356 'dependencies': [
[email protected]5c063b02012-10-22 02:56:4057 '../build/linux/system.gyp:dbus',
[email protected]cab208eb02012-10-18 22:15:2358 '../chromeos/chromeos.gyp:chromeos_test_support',
[email protected]896619e2013-04-18 04:41:4259 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
[email protected]cab208eb02012-10-18 22:15:2360 '../dbus/dbus.gyp:dbus',
61 ]
62 }],
[email protected]7d06ba372013-03-26 06:06:2663 ['OS=="mac"', {
64 'link_settings': {
65 'libraries': [
66 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
67 ],
68 },
69 }],
[email protected]df941492013-01-25 01:38:2770 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
71 'conditions': [
[email protected]2fa89ef2014-05-07 18:45:5972 ['use_allocator!="none"', {
[email protected]df941492013-01-25 01:38:2773 'dependencies': [
74 '../base/allocator/allocator.gyp:allocator',
75 ],
76 }],
77 ],
78 }],
[email protected]7bcb65a62014-06-05 16:46:4079 ['OS=="linux" and use_udev==0', {
80 # Udev is the only Linux implementation. If we're compiling without
81 # Udev, disable these unittests.
[email protected]10d8d022014-06-05 19:37:0182 'dependencies!': [
83 'hid/hid.gyp:device_hid',
84 ],
85 'sources/': [
86 ['exclude', '^hid/'],
[email protected]7bcb65a62014-06-05 16:46:4087 ],
88 }],
[email protected]cab208eb02012-10-18 22:15:2389 ],
90 },
91 ],
[email protected]cab208eb02012-10-18 22:15:2392}