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:run_all_unittests', 15 '../base/base.gyp:test_support_base', 16 '../testing/gmock.gyp:gmock', 17 '../testing/gtest.gyp:gtest', 18 'bluetooth/bluetooth.gyp:device_bluetooth', 19 'bluetooth/bluetooth.gyp:device_bluetooth_mocks', 20 'nfc/nfc.gyp:device_nfc', 21 'usb/usb.gyp:device_usb', 22 'hid/hid.gyp:device_hid', 23 ], 24 'sources': [ 25 'bluetooth/bluetooth_adapter_mac_unittest.mm', 26 'bluetooth/bluetooth_adapter_unittest.cc', 27 'bluetooth/bluetooth_adapter_win_unittest.cc', 28 'bluetooth/bluetooth_device_unittest.cc', 29 'bluetooth/bluetooth_device_win_unittest.cc', 30 'bluetooth/bluetooth_chromeos_unittest.cc', 31 'bluetooth/bluetooth_gatt_chromeos_unittest.cc', 32 'bluetooth/bluetooth_service_record_win_unittest.cc', 33 'bluetooth/bluetooth_socket_chromeos_unittest.cc', 34 'bluetooth/bluetooth_task_manager_win_unittest.cc', 35 'bluetooth/bluetooth_uuid_unittest.cc', 36 'nfc/nfc_chromeos_unittest.cc', 37 'nfc/nfc_ndef_record_unittest.cc', 38 'usb/usb_ids_unittest.cc', 39 'hid/hid_connection_unittest.cc', 40 'hid/hid_report_descriptor_unittest.cc', 41 'hid/hid_service_unittest.cc', 42 'hid/input_service_linux_unittest.cc', 43 ], 44 'conditions': [ 45 ['chromeos==1', { 46 'dependencies': [ 47 '../build/linux/system.gyp:dbus', 48 '../chromeos/chromeos.gyp:chromeos_test_support', 49 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', 50 '../dbus/dbus.gyp:dbus', 51 ] 52 }], 53 ['OS=="mac"', { 54 'link_settings': { 55 'libraries': [ 56 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', 57 ], 58 }, 59 }], 60 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { 61 'conditions': [ 62 ['use_allocator!="none"', { 63 'dependencies': [ 64 '../base/allocator/allocator.gyp:allocator', 65 ], 66 }], 67 ], 68 }], 69 ['OS=="linux" and use_udev==0', { 70 # Udev is the only Linux implementation. If we're compiling without 71 # Udev, disable these unittests. 72 'dependencies!': [ 73 'hid/hid.gyp:device_hid', 74 ], 75 'sources/': [ 76 ['exclude', '^hid/'], 77 ], 78 }], 79 ], 80 }, 81 ], 82 } 83