Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2728)

Unified Diff: device/device.gyp

Issue 11075006: Moved bluetooth adapter files to device/bluetooth/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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': [
+ '..',
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698