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 '../testing/gmock.gyp:gmock', 16 '../testing/gtest.gyp:gtest', 17 'bluetooth/bluetooth.gyp:device_bluetooth', 18 'bluetooth/bluetooth.gyp:device_bluetooth_mocks', 19 'usb/usb.gyp:device_usb', 20 ], 21 'sources': [ 22 'bluetooth/bluetooth_adapter_mac_unittest.mm', 23 'bluetooth/bluetooth_adapter_win_unittest.cc', 24 'bluetooth/bluetooth_device_win_unittest.cc', 25 'bluetooth/bluetooth_chromeos_unittest.cc', 26 'bluetooth/bluetooth_profile_chromeos_unittest.cc', 27 'bluetooth/bluetooth_service_record_mac_unittest.mm', 28 'bluetooth/bluetooth_service_record_win_unittest.cc', 29 'bluetooth/bluetooth_task_manager_win_unittest.cc', 30 'bluetooth/bluetooth_utils_unittest.cc', 31 'test/run_all_unittests.cc', 32 'usb/usb_ids_unittest.cc', 33 ], 34 'conditions': [ 35 ['chromeos==1', { 36 'dependencies': [ 37 '../build/linux/system.gyp:dbus', 38 '../chromeos/chromeos.gyp:chromeos_test_support', 39 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', 40 '../dbus/dbus.gyp:dbus', 41 ] 42 }], 43 ['OS=="mac"', { 44 'link_settings': { 45 'libraries': [ 46 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', 47 ], 48 }, 49 }], 50 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { 51 'conditions': [ 52 ['linux_use_tcmalloc == 1', { 53 'dependencies': [ 54 '../base/allocator/allocator.gyp:allocator', 55 ], 56 }], 57 ], 58 }], 59 ], 60 }, 61 ], 62 } 63