Index: device/device.gyp |
diff --git a/device/device.gyp b/device/device.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8244d7675027c4c3579ebafdf902c4d055463c2e |
--- /dev/null |
+++ b/device/device.gyp |
@@ -0,0 +1,111 @@ |
+# 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', |
darin (slow to review)
2012/10/18 06:55:58
it feels like we should create just a single 'devi
bryeung
2012/10/18 11:05:49
Can you explain the motivation a bit more?
Person
youngki
2012/10/18 14:04:35
Darin, let me know what you think about Bryan's co
|
+ '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_out_of_band_pairing_data.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==0', { |
+ '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': [ |
+ '../build/linux/system.gyp:dbus-glib', |
+ '../chromeos/chromeos.gyp:chromeos', |
+ '../dbus/dbus.gyp:dbus', |
+ ] |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'bluetooth_mocks', |
+ 'type': '<(library)', |
+ 'dependencies': [ |
+ 'bluetooth', |
+ '../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': [ |
+ '..', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'bluetooth_unit_tests', |
+ 'type': '<(gtest_target_type)', |
+ 'dependencies': [ |
+ 'bluetooth', |
+ 'bluetooth_mocks', |
+ '../base/base.gyp:test_support_base', |
+ '../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', |
+ 'test/device_test_suite.cc', |
+ 'test/device_test_suite.h', |
+ 'test/run_all_unittests.cc', |
+ ], |
+ 'conditions': [ |
+ ['chromeos==0', { |
+ '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', |
+ ] |
+ }], |
+ ], |
+ }, |
+ ], |
+} |