Set the javac target and source to 1.7
[chromium-blink-merge.git] / device / device_tests.gyp
blob5cb565a60d748d5d887ac74b1edeec236c697b88
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.
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         '../mojo/mojo_base.gyp:mojo_environment_chromium',
16         '../mojo/mojo_base.gyp:mojo_system_impl',
17         '../testing/gmock.gyp:gmock',
18         '../testing/gtest.gyp:gtest',
19         '../tools/usb_gadget/usb_gadget.gyp:usb_gadget',
20         'bluetooth/bluetooth.gyp:device_bluetooth',
21         'bluetooth/bluetooth.gyp:device_bluetooth_mocks',
22         'nfc/nfc.gyp:device_nfc',
23         'usb/usb.gyp:device_usb',
24         'hid/hid.gyp:device_hid',
25         'serial/serial.gyp:device_serial',
26         'serial/serial.gyp:device_serial_test_util',
27       ],
28       'sources': [
29         'bluetooth/bluetooth_adapter_mac_unittest.mm',
30         'bluetooth/bluetooth_adapter_unittest.cc',
31         'bluetooth/bluetooth_adapter_win_unittest.cc',
32         'bluetooth/bluetooth_device_unittest.cc',
33         'bluetooth/bluetooth_device_win_unittest.cc',
34         'bluetooth/bluetooth_chromeos_unittest.cc',
35         'bluetooth/bluetooth_gatt_chromeos_unittest.cc',
36         'bluetooth/bluetooth_low_energy_win_unittest.cc',
37         'bluetooth/bluetooth_service_record_win_unittest.cc',
38         'bluetooth/bluetooth_socket_chromeos_unittest.cc',
39         'bluetooth/bluetooth_task_manager_win_unittest.cc',
40         'bluetooth/bluetooth_uuid_unittest.cc',
41         'nfc/nfc_chromeos_unittest.cc',
42         'nfc/nfc_ndef_record_unittest.cc',
43         'usb/usb_context_unittest.cc',
44         'usb/usb_device_filter_unittest.cc',
45         'usb/usb_ids_unittest.cc',
46         'usb/usb_device_handle_unittest.cc',
47         'usb/usb_service_unittest.cc',
48         'hid/hid_connection_unittest.cc',
49         'hid/hid_device_filter_unittest.cc',
50         'hid/hid_report_descriptor_unittest.cc',
51         'hid/hid_service_unittest.cc',
52         'hid/input_service_linux_unittest.cc',
53         'serial/data_sink_unittest.cc',
54         'serial/data_source_unittest.cc',
55         'serial/serial_connection_unittest.cc',
56         'serial/serial_service_unittest.cc',
57         'test/run_all_unittests.cc',
58         'test/usb_test_gadget_impl.cc'
59       ],
60       'conditions': [
61         ['chromeos==1', {
62           'dependencies': [
63             '../build/linux/system.gyp:dbus',
64             '../chromeos/chromeos.gyp:chromeos_test_support',
65             '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
66             '../dbus/dbus.gyp:dbus',
67           ]
68         }],
69         ['OS=="mac"', {
70           'link_settings': {
71             'libraries': [
72               '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework',
73             ],
74           },
75         }],
76         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
77           'conditions': [
78             ['use_allocator!="none"', {
79               'dependencies': [
80                 '../base/allocator/allocator.gyp:allocator',
81               ],
82             }],
83           ],
84         }],
85         ['OS=="linux" and use_udev==0', {
86           # Udev is the only Linux implementation. If we're compiling without
87           # Udev, disable these unittests.
88           'dependencies!': [
89             'hid/hid.gyp:device_hid',
90             'serial/serial.gyp:device_serial',
91             'serial/serial.gyp:device_serial_test_util',
92           ],
93           'sources/': [
94             ['exclude', '^serial/'],
95             ['exclude', '^hid/'],
96           ],
97         }],
98       ],
99     },
100   ],