blob: bcf73d5d4438f99782f7d94290bcc8e036c7e626 [file] [log] [blame]
# 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': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'device_bluetooth',
'type': 'static_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_adapter_win.cc',
'bluetooth/bluetooth_adapter_win.h',
'bluetooth/bluetooth_device.cc',
'bluetooth/bluetooth_device.h',
'bluetooth/bluetooth_device_chromeos.cc',
'bluetooth/bluetooth_device_chromeos.h',
'bluetooth/bluetooth_device_win.cc',
'bluetooth/bluetooth_device_win.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_socket_win.cc',
'bluetooth/bluetooth_socket_win.h',
'bluetooth/bluetooth_utils.cc',
'bluetooth/bluetooth_utils.h',
],
'conditions': [
['chromeos==1', {
'dependencies': [
'../build/linux/system.gyp:dbus',
'../chromeos/chromeos.gyp:chromeos',
'../dbus/dbus.gyp:dbus',
]
}],
],
},
{
'target_name': 'device_bluetooth_mocks',
'type': 'static_library',
'dependencies': [
'device_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': 'device_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
'device_bluetooth',
'device_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_devices_chromeos_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', {
'dependencies': [
'../build/linux/system.gyp:dbus',
'../chromeos/chromeos.gyp:chromeos_test_support',
'../dbus/dbus.gyp:dbus',
]
}],
],
},
],
}