| Index: device/device.gyp
|
| diff --git a/device/device.gyp b/device/device.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..152d90bf61881864f63259a7dabe8f5c95a4bea5
|
| --- /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',
|
| + '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!=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': 'bluetooth_mocks',
|
| + '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': [
|
| + '..',
|
| + ],
|
| + },
|
| + ],
|
| +}
|
|
|