blob: c30e167ab4d49bedc8bd28e3dca271b685f413f7 [file] [log] [blame]
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
{
'targets': [
{
'target_name': 'udp_transport',
'type': '<(library)',
'dependencies': [
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
],
'include_dirs': [
'../interface',
'../../interface',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
'../../interface',
],
},
'sources': [
# PLATFORM INDEPENDENT SOURCE FILES
'../interface/udp_transport.h',
'udp_transport_impl.cc',
'udp_socket_wrapper.cc',
'udp_socket_manager_wrapper.cc',
'udp_transport_impl.h',
'udp_socket_wrapper.h',
'udp_socket_manager_wrapper.h',
# PLATFORM SPECIFIC SOURCE FILES - Will be filtered below
# Posix (Linux/Mac)
'udp_socket_posix.cc',
'udp_socket_posix.h',
'udp_socket_manager_posix.cc',
'udp_socket_manager_posix.h',
# Windows
'udp_socket_manager_windows.cc',
'udp_socket_manager_windows.h',
'udp_socket2_manager_windows.cc',
'udp_socket2_manager_windows.h',
'udp_socket_windows.cc',
'udp_socket_windows.h',
'udp_socket2_windows.cc',
'udp_socket2_windows.h',
'traffic_control_windows.cc',
'traffic_control_windows.h',
], # source
'conditions': [
# DEFINE PLATFORM SPECIFIC SOURCE FILES
['os_posix==0', {
'sources!': [
'udp_socket_posix.cc',
'udp_socket_posix.h',
'udp_socket_manager_posix.cc',
'udp_socket_manager_posix.h',
],
}],
['OS!="win"', {
'sources!': [
'udp_socket_manager_windows.cc',
'udp_socket_manager_windows.h',
'udp_socket2_manager_windows.cc',
'udp_socket2_manager_windows.h',
'udp_socket_windows.cc',
'udp_socket_windows.h',
'udp_socket2_windows.cc',
'udp_socket2_windows.h',
'traffic_control_windows.cc',
'traffic_control_windows.h',
],
}],
['OS=="linux"', {
'cflags': [
'-fno-strict-aliasing',
],
}],
['OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': '-fno-strict-aliasing',
},
}],
['OS=="win"', {
'defines': [
'USE_WINSOCK2',
],
}],
] # conditions
},
], # targets
'conditions': [
['build_with_chromium==0', {
'targets': [
{
'target_name': 'udp_transport_unittests',
'type': 'executable',
'dependencies': [
'udp_transport',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../test/test.gyp:test_support_main',
],
'sources': [
'udp_transport_unittest.cc',
],
}, # udp_transport_unittests
], # targets
}], # build_with_chromium
], # conditions
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: