[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 | { |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 11 | 'target_name': 'device_unittests', |
| 12 | 'type': '<(gtest_target_type)', |
| 13 | 'dependencies': [ |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 14 | '../base/base.gyp:test_support_base', |
[email protected] | 7e77c0d | 2014-07-30 22:54:06 | [diff] [blame] | 15 | '../mojo/mojo_base.gyp:mojo_environment_chromium', |
| 16 | '../mojo/mojo_base.gyp:mojo_system_impl', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 17 | '../testing/gmock.gyp:gmock', |
| 18 | '../testing/gtest.gyp:gtest', |
reillyg | 4e27952 | 2014-09-06 18:37:15 | [diff] [blame^] | 19 | '../tools/usb_gadget/usb_gadget.gyp:usb_gadget', |
[email protected] | e3a9ccfc | 2013-06-03 00:22:30 | [diff] [blame] | 20 | 'bluetooth/bluetooth.gyp:device_bluetooth', |
| 21 | 'bluetooth/bluetooth.gyp:device_bluetooth_mocks', |
[email protected] | b763b84 | 2013-12-03 10:37:15 | [diff] [blame] | 22 | 'nfc/nfc.gyp:device_nfc', |
[email protected] | e3a9ccfc | 2013-06-03 00:22:30 | [diff] [blame] | 23 | 'usb/usb.gyp:device_usb', |
[email protected] | 125724f | 2014-01-31 20:13:23 | [diff] [blame] | 24 | 'hid/hid.gyp:device_hid', |
[email protected] | 9a1be23 | 2014-07-09 13:04:26 | [diff] [blame] | 25 | 'serial/serial.gyp:device_serial', |
[email protected] | b50715c | 2014-07-21 07:18:32 | [diff] [blame] | 26 | 'serial/serial.gyp:device_serial_test_util', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 27 | ], |
| 28 | 'sources': [ |
[email protected] | 1073598a | 2013-03-04 19:27:43 | [diff] [blame] | 29 | 'bluetooth/bluetooth_adapter_mac_unittest.mm', |
[email protected] | e0e18d0 | 2014-02-27 04:33:49 | [diff] [blame] | 30 | 'bluetooth/bluetooth_adapter_unittest.cc', |
[email protected] | cae636d | 2012-11-14 00:47:48 | [diff] [blame] | 31 | 'bluetooth/bluetooth_adapter_win_unittest.cc', |
[email protected] | db00ff8 | 2014-05-17 05:49:46 | [diff] [blame] | 32 | 'bluetooth/bluetooth_device_unittest.cc', |
[email protected] | edcaf14a | 2013-02-25 17:46:36 | [diff] [blame] | 33 | 'bluetooth/bluetooth_device_win_unittest.cc', |
[email protected] | 627f4f4 | 2013-06-12 14:47:32 | [diff] [blame] | 34 | 'bluetooth/bluetooth_chromeos_unittest.cc', |
[email protected] | e65bc22 | 2014-04-08 05:18:28 | [diff] [blame] | 35 | 'bluetooth/bluetooth_gatt_chromeos_unittest.cc', |
[email protected] | 2ede7a2 | 2014-06-28 00:51:49 | [diff] [blame] | 36 | 'bluetooth/bluetooth_low_energy_win_unittest.cc', |
[email protected] | 47c7264 | 2013-01-20 01:09:51 | [diff] [blame] | 37 | 'bluetooth/bluetooth_service_record_win_unittest.cc', |
[email protected] | 891c394 | 2014-05-13 23:33:40 | [diff] [blame] | 38 | 'bluetooth/bluetooth_socket_chromeos_unittest.cc', |
[email protected] | 0216e79 | 2013-01-16 00:28:17 | [diff] [blame] | 39 | 'bluetooth/bluetooth_task_manager_win_unittest.cc', |
[email protected] | 8148ad4 | 2014-04-04 04:10:38 | [diff] [blame] | 40 | 'bluetooth/bluetooth_uuid_unittest.cc', |
[email protected] | 4271604 | 2013-12-08 07:18:54 | [diff] [blame] | 41 | 'nfc/nfc_chromeos_unittest.cc', |
[email protected] | b763b84 | 2013-12-03 10:37:15 | [diff] [blame] | 42 | 'nfc/nfc_ndef_record_unittest.cc', |
reillyg | d77718d | 2014-09-04 00:57:56 | [diff] [blame] | 43 | 'usb/usb_context_unittest.cc', |
| 44 | 'usb/usb_device_filter_unittest.cc', |
[email protected] | 25d2b1394 | 2012-12-05 22:41:18 | [diff] [blame] | 45 | 'usb/usb_ids_unittest.cc', |
reillyg | ee658b7 | 2014-09-04 19:40:30 | [diff] [blame] | 46 | 'usb/usb_device_handle_unittest.cc', |
[email protected] | 2a0262f | 2014-08-01 18:39:17 | [diff] [blame] | 47 | 'usb/usb_service_unittest.cc', |
[email protected] | 125724f | 2014-01-31 20:13:23 | [diff] [blame] | 48 | 'hid/hid_connection_unittest.cc', |
reillyg | f4dc9d14 | 2014-08-29 05:52:48 | [diff] [blame] | 49 | 'hid/hid_device_filter_unittest.cc', |
[email protected] | fe7b300 | 2014-04-25 00:16:40 | [diff] [blame] | 50 | 'hid/hid_report_descriptor_unittest.cc', |
[email protected] | 125724f | 2014-01-31 20:13:23 | [diff] [blame] | 51 | 'hid/hid_service_unittest.cc', |
[email protected] | eedae13 | 2014-04-12 22:02:37 | [diff] [blame] | 52 | 'hid/input_service_linux_unittest.cc', |
[email protected] | 4e99a93 | 2014-08-19 06:14:02 | [diff] [blame] | 53 | 'serial/data_sink_unittest.cc', |
[email protected] | f5b0792 | 2014-08-11 12:18:51 | [diff] [blame] | 54 | 'serial/data_source_unittest.cc', |
[email protected] | b50715c | 2014-07-21 07:18:32 | [diff] [blame] | 55 | 'serial/serial_connection_unittest.cc', |
[email protected] | 9a1be23 | 2014-07-09 13:04:26 | [diff] [blame] | 56 | 'serial/serial_service_unittest.cc', |
| 57 | 'test/run_all_unittests.cc', |
[email protected] | 18d3f7bc | 2014-07-30 03:20:54 | [diff] [blame] | 58 | 'test/usb_test_gadget_impl.cc' |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 59 | ], |
| 60 | 'conditions': [ |
[email protected] | 06eaeb44 | 2012-10-24 18:01:01 | [diff] [blame] | 61 | ['chromeos==1', { |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 62 | 'dependencies': [ |
[email protected] | 5c063b0 | 2012-10-22 02:56:40 | [diff] [blame] | 63 | '../build/linux/system.gyp:dbus', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 64 | '../chromeos/chromeos.gyp:chromeos_test_support', |
[email protected] | 896619e | 2013-04-18 04:41:42 | [diff] [blame] | 65 | '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 66 | '../dbus/dbus.gyp:dbus', |
| 67 | ] |
| 68 | }], |
[email protected] | 7d06ba37 | 2013-03-26 06:06:26 | [diff] [blame] | 69 | ['OS=="mac"', { |
| 70 | 'link_settings': { |
| 71 | 'libraries': [ |
| 72 | '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', |
| 73 | ], |
| 74 | }, |
| 75 | }], |
[email protected] | df94149 | 2013-01-25 01:38:27 | [diff] [blame] | 76 | ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
| 77 | 'conditions': [ |
[email protected] | 2fa89ef | 2014-05-07 18:45:59 | [diff] [blame] | 78 | ['use_allocator!="none"', { |
[email protected] | df94149 | 2013-01-25 01:38:27 | [diff] [blame] | 79 | 'dependencies': [ |
| 80 | '../base/allocator/allocator.gyp:allocator', |
| 81 | ], |
| 82 | }], |
| 83 | ], |
| 84 | }], |
[email protected] | 7bcb65a6 | 2014-06-05 16:46:40 | [diff] [blame] | 85 | ['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] | 10d8d02 | 2014-06-05 19:37:01 | [diff] [blame] | 88 | 'dependencies!': [ |
| 89 | 'hid/hid.gyp:device_hid', |
[email protected] | 1d655fe9 | 2014-08-18 22:14:13 | [diff] [blame] | 90 | 'serial/serial.gyp:device_serial', |
| 91 | 'serial/serial.gyp:device_serial_test_util', |
[email protected] | 10d8d02 | 2014-06-05 19:37:01 | [diff] [blame] | 92 | ], |
| 93 | 'sources/': [ |
[email protected] | 1d655fe9 | 2014-08-18 22:14:13 | [diff] [blame] | 94 | ['exclude', '^serial/'], |
[email protected] | 10d8d02 | 2014-06-05 19:37:01 | [diff] [blame] | 95 | ['exclude', '^hid/'], |
[email protected] | 7bcb65a6 | 2014-06-05 16:46:40 | [diff] [blame] | 96 | ], |
| 97 | }], |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 98 | ], |
| 99 | }, |
| 100 | ], |
[email protected] | cab208eb0 | 2012-10-18 22:15:23 | [diff] [blame] | 101 | } |