blob: eff49d62446000d55d67f1633a62fd6ffb0896fd [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]d85fe1e2013-09-05 18:20:3614 '../base/base.gyp:run_all_unittests',
[email protected]cab208eb02012-10-18 22:15:2315 '../base/base.gyp:test_support_base',
[email protected]cab208eb02012-10-18 22:15:2316 '../testing/gmock.gyp:gmock',
17 '../testing/gtest.gyp:gtest',
[email protected]e3a9ccfc2013-06-03 00:22:3018 'bluetooth/bluetooth.gyp:device_bluetooth',
19 'bluetooth/bluetooth.gyp:device_bluetooth_mocks',
[email protected]b763b842013-12-03 10:37:1520 'nfc/nfc.gyp:device_nfc',
[email protected]e3a9ccfc2013-06-03 00:22:3021 'usb/usb.gyp:device_usb',
[email protected]125724f2014-01-31 20:13:2322 'hid/hid.gyp:device_hid',
[email protected]cab208eb02012-10-18 22:15:2323 ],
24 'sources': [
[email protected]1073598a2013-03-04 19:27:4325 'bluetooth/bluetooth_adapter_mac_unittest.mm',
[email protected]e0e18d02014-02-27 04:33:4926 'bluetooth/bluetooth_adapter_unittest.cc',
[email protected]cae636d2012-11-14 00:47:4827 'bluetooth/bluetooth_adapter_win_unittest.cc',
[email protected]edcaf14a2013-02-25 17:46:3628 'bluetooth/bluetooth_device_win_unittest.cc',
[email protected]627f4f42013-06-12 14:47:3229 'bluetooth/bluetooth_chromeos_unittest.cc',
[email protected]e65bc222014-04-08 05:18:2830 'bluetooth/bluetooth_gatt_chromeos_unittest.cc',
[email protected]e882d2c2013-05-09 03:49:1831 'bluetooth/bluetooth_profile_chromeos_unittest.cc',
[email protected]4aa82472013-03-13 05:02:5132 'bluetooth/bluetooth_service_record_mac_unittest.mm',
[email protected]47c72642013-01-20 01:09:5133 'bluetooth/bluetooth_service_record_win_unittest.cc',
[email protected]0216e792013-01-16 00:28:1734 'bluetooth/bluetooth_task_manager_win_unittest.cc',
[email protected]8148ad42014-04-04 04:10:3835 'bluetooth/bluetooth_uuid_unittest.cc',
[email protected]42716042013-12-08 07:18:5436 'nfc/nfc_chromeos_unittest.cc',
[email protected]b763b842013-12-03 10:37:1537 'nfc/nfc_ndef_record_unittest.cc',
[email protected]25d2b13942012-12-05 22:41:1838 'usb/usb_ids_unittest.cc',
[email protected]125724f2014-01-31 20:13:2339 'hid/hid_connection_unittest.cc',
40 'hid/hid_service_unittest.cc',
[email protected]eedae132014-04-12 22:02:3741 'hid/input_service_linux_unittest.cc',
[email protected]cab208eb02012-10-18 22:15:2342 ],
43 'conditions': [
[email protected]06eaeb442012-10-24 18:01:0144 ['chromeos==1', {
[email protected]cab208eb02012-10-18 22:15:2345 'dependencies': [
[email protected]5c063b02012-10-22 02:56:4046 '../build/linux/system.gyp:dbus',
[email protected]cab208eb02012-10-18 22:15:2347 '../chromeos/chromeos.gyp:chromeos_test_support',
[email protected]896619e2013-04-18 04:41:4248 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
[email protected]cab208eb02012-10-18 22:15:2349 '../dbus/dbus.gyp:dbus',
50 ]
51 }],
[email protected]7d06ba372013-03-26 06:06:2652 ['OS=="mac"', {
53 'link_settings': {
54 'libraries': [
55 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
56 ],
57 },
58 }],
[email protected]df941492013-01-25 01:38:2759 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
60 'conditions': [
[email protected]5fcce3f72014-03-05 20:07:2661 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
62 ['(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
[email protected]df941492013-01-25 01:38:2763 'dependencies': [
64 '../base/allocator/allocator.gyp:allocator',
65 ],
66 }],
67 ],
68 }],
[email protected]cab208eb02012-10-18 22:15:2369 ],
70 },
71 ],
[email protected]cab208eb02012-10-18 22:15:2372}