Index: device/device.gyp |
diff --git a/device/device.gyp b/device/device.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..71cdd1aa8e73c1b0f0137232a8268c4d8b00c47a |
--- /dev/null |
+++ b/device/device.gyp |
@@ -0,0 +1,121 @@ |
+# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'variables': { |
+ }, |
+ 'targets': [ |
+ { |
+ 'target_name': 'bluetooth', |
+ 'type': '<(library)', |
+ 'dependencies': [ |
+ '../chrome/chrome_resources.gyp:chrome_strings', |
+ '../third_party/libxml/libxml.gyp:libxml', |
+ '../ui/ui.gyp:ui' |
+ ], |
+ 'sources': [ |
+ 'bluetooth/bluetooth_adapter.cc', |
+ 'bluetooth/bluetooth_adapter.h', |
+ 'bluetooth/bluetooth_adapter_chromeos.cc', |
+ 'bluetooth/bluetooth_adapter_chromeos.h', |
+ 'bluetooth/bluetooth_adapter_factory.cc', |
+ 'bluetooth/bluetooth_adapter_factory.h', |
+ 'bluetooth/bluetooth_device.cc', |
+ 'bluetooth/bluetooth_device.h', |
+ 'bluetooth/bluetooth_device_chromeos.cc', |
+ 'bluetooth/bluetooth_device_chromeos.h', |
+ 'bluetooth/bluetooth_service_record.cc', |
+ 'bluetooth/bluetooth_service_record.h', |
+ 'bluetooth/bluetooth_socket.h', |
+ 'bluetooth/bluetooth_socket_chromeos.cc', |
+ 'bluetooth/bluetooth_socket_chromeos.h', |
+ 'bluetooth/bluetooth_utils.cc', |
+ 'bluetooth/bluetooth_utils.h', |
+ ], |
+ 'conditions': [ |
+ ['chromeos!=1', { |
+ 'sources!': [ |
+ # ChromeOs-only; exclude on other platforms. |
+ 'bluetooth/bluetooth_adapter_chromeos.cc', |
+ 'bluetooth/bluetooth_adapter_chromeos.h', |
+ 'bluetooth/bluetooth_device_chromeos.cc', |
+ 'bluetooth/bluetooth_device_chromeos.h', |
+ 'bluetooth/bluetooth_socket_chromeos.cc', |
+ 'bluetooth/bluetooth_socket_chromeos.h', |
+ ] |
+ }], |
+ ['chromeos==1', { |
+ 'dependencies': [ |
+ 'bluetooth_out_of_band_pairing_data', |
+ '../build/linux/system.gyp:dbus-glib', |
+ '../chromeos/chromeos.gyp:chromeos', |
+ '../dbus/dbus.gyp:dbus', |
+ ] |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'bluetooth_out_of_band_pairing_data', |
+ 'type': 'static_library', |
+ 'sources': [ |
+ 'bluetooth/bluetooth_out_of_band_pairing_data.h', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'bluetooth_unit_tests', |
+ 'type': '<(gtest_target_type)', |
+ 'dependencies': [ |
+ 'bluetooth', |
+ 'mock_bluetooth', |
+ '../base/base.gyp:test_support_base', |
+ '../chrome/common_constants.gyp:common_constants', |
+ '../chrome/chrome.gyp:test_support_common', |
+ '../content/content.gyp:test_support_content', |
+ '../testing/gmock.gyp:gmock', |
+ '../testing/gtest.gyp:gtest', |
+ ], |
+ 'sources': [ |
+ 'bluetooth/bluetooth_adapter_chromeos_unittest.cc', |
+ 'bluetooth/bluetooth_adapter_chromeos_devices_unittest.cc', |
+ 'bluetooth/bluetooth_service_record_unittest.cc', |
+ 'bluetooth/bluetooth_utils_unittest.cc', |
+ 'run_all_unittests.cc', |
+ ], |
+ 'conditions': [ |
+ ['chromeos!=1', { |
+ 'sources!': [ |
+ # ChromeOs-only; exclude on other platforms. |
+ 'bluetooth/bluetooth_adapter_chromeos_unittest.cc', |
+ 'bluetooth/bluetooth_adapter_chromeos_devices_unittest.cc', |
+ ] |
+ }], |
+ ['chromeos==1', { |
+ 'dependencies': [ |
+ '../build/linux/system.gyp:dbus-glib', |
+ '../chromeos/chromeos.gyp:chromeos_test_support', |
+ '../dbus/dbus.gyp:dbus', |
+ ] |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'mock_bluetooth', |
bryeung
2012/10/10 15:03:53
I'd prefer bluetooth_mocks
youngki
2012/10/10 18:34:57
Done.
|
+ 'type': '<(library)', |
+ 'dependencies': [ |
+ 'bluetooth', |
+ 'bluetooth_out_of_band_pairing_data', |
+ '../testing/gmock.gyp:gmock', |
+ ], |
+ 'sources': [ |
+ 'bluetooth/test/mock_bluetooth_adapter.cc', |
+ 'bluetooth/test/mock_bluetooth_adapter.h', |
+ 'bluetooth/test/mock_bluetooth_device.cc', |
+ 'bluetooth/test/mock_bluetooth_device.h', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ ], |
+ }, |
+ ], |
+} |