OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'device_unittests', | 11 'target_name': 'device_unittests', |
12 'type': '<(gtest_target_type)', | 12 'type': '<(gtest_target_type)', |
13 'dependencies': [ | 13 'dependencies': [ |
14 '../base/base.gyp:test_support_base', | 14 '../base/base.gyp:test_support_base', |
| 15 '../mojo/mojo_base.gyp:mojo_cpp_bindings', |
15 '../mojo/mojo_base.gyp:mojo_environment_chromium', | 16 '../mojo/mojo_base.gyp:mojo_environment_chromium', |
16 '../mojo/mojo_base.gyp:mojo_system_impl', | 17 '../mojo/mojo_base.gyp:mojo_system_impl', |
17 '../testing/gmock.gyp:gmock', | 18 '../testing/gmock.gyp:gmock', |
18 '../testing/gtest.gyp:gtest', | 19 '../testing/gtest.gyp:gtest', |
19 '../tools/usb_gadget/usb_gadget.gyp:usb_gadget', | 20 '../tools/usb_gadget/usb_gadget.gyp:usb_gadget', |
| 21 'battery/battery.gyp:device_battery', |
| 22 'battery/battery.gyp:device_battery_mojo_bindings', |
20 'bluetooth/bluetooth.gyp:device_bluetooth', | 23 'bluetooth/bluetooth.gyp:device_bluetooth', |
21 'bluetooth/bluetooth.gyp:device_bluetooth_mocks', | 24 'bluetooth/bluetooth.gyp:device_bluetooth_mocks', |
22 'nfc/nfc.gyp:device_nfc', | 25 'nfc/nfc.gyp:device_nfc', |
23 'usb/usb.gyp:device_usb', | 26 'usb/usb.gyp:device_usb', |
24 'hid/hid.gyp:device_hid', | 27 'hid/hid.gyp:device_hid', |
25 'serial/serial.gyp:device_serial', | 28 'serial/serial.gyp:device_serial', |
26 'serial/serial.gyp:device_serial_test_util', | 29 'serial/serial.gyp:device_serial_test_util', |
27 ], | 30 ], |
28 'sources': [ | 31 'sources': [ |
| 32 'battery/battery_status_manager_linux_unittest.cc', |
| 33 'battery/battery_status_manager_win_unittest.cc', |
| 34 'battery/battery_status_service_unittest.cc', |
29 'bluetooth/bluetooth_adapter_mac_unittest.mm', | 35 'bluetooth/bluetooth_adapter_mac_unittest.mm', |
30 'bluetooth/bluetooth_adapter_unittest.cc', | 36 'bluetooth/bluetooth_adapter_unittest.cc', |
31 'bluetooth/bluetooth_adapter_win_unittest.cc', | 37 'bluetooth/bluetooth_adapter_win_unittest.cc', |
32 'bluetooth/bluetooth_device_unittest.cc', | 38 'bluetooth/bluetooth_device_unittest.cc', |
33 'bluetooth/bluetooth_device_win_unittest.cc', | 39 'bluetooth/bluetooth_device_win_unittest.cc', |
34 'bluetooth/bluetooth_chromeos_unittest.cc', | 40 'bluetooth/bluetooth_chromeos_unittest.cc', |
35 'bluetooth/bluetooth_gatt_chromeos_unittest.cc', | 41 'bluetooth/bluetooth_gatt_chromeos_unittest.cc', |
36 'bluetooth/bluetooth_low_energy_win_unittest.cc', | 42 'bluetooth/bluetooth_low_energy_win_unittest.cc', |
37 'bluetooth/bluetooth_service_record_win_unittest.cc', | 43 'bluetooth/bluetooth_service_record_win_unittest.cc', |
38 'bluetooth/bluetooth_socket_chromeos_unittest.cc', | 44 'bluetooth/bluetooth_socket_chromeos_unittest.cc', |
(...skipping 18 matching lines...) Expand all Loading... |
57 'test/run_all_unittests.cc', | 63 'test/run_all_unittests.cc', |
58 'test/usb_test_gadget_impl.cc' | 64 'test/usb_test_gadget_impl.cc' |
59 ], | 65 ], |
60 'conditions': [ | 66 'conditions': [ |
61 ['chromeos==1', { | 67 ['chromeos==1', { |
62 'dependencies': [ | 68 'dependencies': [ |
63 '../build/linux/system.gyp:dbus', | 69 '../build/linux/system.gyp:dbus', |
64 '../chromeos/chromeos.gyp:chromeos_test_support', | 70 '../chromeos/chromeos.gyp:chromeos_test_support', |
65 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', | 71 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', |
66 '../dbus/dbus.gyp:dbus', | 72 '../dbus/dbus.gyp:dbus', |
67 ] | 73 ], |
| 74 'sources!': [ |
| 75 'battery/battery_status_manager_linux_unittest.cc', |
| 76 ], |
68 }], | 77 }], |
69 ['OS=="mac"', { | 78 ['OS=="mac"', { |
70 'link_settings': { | 79 'link_settings': { |
71 'libraries': [ | 80 'libraries': [ |
72 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', | 81 '$(SDKROOT)/System/Library/Frameworks/IOBluetooth.framework', |
73 ], | 82 ], |
74 }, | 83 }, |
75 }], | 84 }], |
76 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { | 85 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
77 'conditions': [ | 86 'conditions': [ |
(...skipping 10 matching lines...) Expand all Loading... |
88 'dependencies!': [ | 97 'dependencies!': [ |
89 'hid/hid.gyp:device_hid', | 98 'hid/hid.gyp:device_hid', |
90 'serial/serial.gyp:device_serial', | 99 'serial/serial.gyp:device_serial', |
91 'serial/serial.gyp:device_serial_test_util', | 100 'serial/serial.gyp:device_serial_test_util', |
92 ], | 101 ], |
93 'sources/': [ | 102 'sources/': [ |
94 ['exclude', '^serial/'], | 103 ['exclude', '^serial/'], |
95 ['exclude', '^hid/'], | 104 ['exclude', '^hid/'], |
96 ], | 105 ], |
97 }], | 106 }], |
| 107 ['use_dbus==0', { |
| 108 'sources!': [ |
| 109 'battery/battery_status_manager_linux_unittest.cc', |
| 110 ], |
| 111 }], |
98 ], | 112 ], |
99 }, | 113 }, |
100 ], | 114 ], |
101 } | 115 } |
OLD | NEW |