blob: 10808db5838f48aac6c8dfdff2d86128d360c976 [file] [log] [blame]
pwestin@webrtc.orgce2d1252013-03-21 16:38:05 +00001# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9{
10 'includes': [
11 '../build/common.gypi',
12 ],
13 'targets': [
14 {
15 'target_name': 'channel_transport',
16 'type': 'static_library',
17 'dependencies': [
18 '<(DEPTH)/testing/gtest.gyp:gtest',
19 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
20 ],
21 'sources': [
22 # PLATFORM INDEPENDENT SOURCE FILES
23 'channel_transport/channel_transport.cc',
24 'channel_transport/include/channel_transport.h',
25 'channel_transport/udp_transport.h',
26 'channel_transport/udp_transport_impl.cc',
27 'channel_transport/udp_socket_wrapper.cc',
28 'channel_transport/udp_socket_manager_wrapper.cc',
29 'channel_transport/udp_transport_impl.h',
30 'channel_transport/udp_socket_wrapper.h',
31 'channel_transport/udp_socket_manager_wrapper.h',
32 # PLATFORM SPECIFIC SOURCE FILES - Will be filtered below
33 # Posix (Linux/Mac)
34 'channel_transport/udp_socket_posix.cc',
35 'channel_transport/udp_socket_posix.h',
36 'channel_transport/udp_socket_manager_posix.cc',
37 'channel_transport/udp_socket_manager_posix.h',
38 # win
39 'channel_transport/udp_socket2_manager_win.cc',
40 'channel_transport/udp_socket2_manager_win.h',
41 'channel_transport/udp_socket2_win.cc',
42 'channel_transport/udp_socket2_win.h',
43 'channel_transport/traffic_control_win.cc',
44 'channel_transport/traffic_control_win.h',
45 ], # source
46 },
47 {
48 'target_name': 'channel_transport_unittests',
49 'type': 'executable',
50 'dependencies': [
51 'channel_transport',
52 '<(DEPTH)/testing/gtest.gyp:gtest',
53 '<(DEPTH)/testing/gmock.gyp:gmock',
54 '<(webrtc_root)/test/test.gyp:test_support_main',
55 ],
56 'sources': [
57 'channel_transport/udp_transport_unittest.cc',
58 'channel_transport/udp_socket_manager_unittest.cc',
59 'channel_transport/udp_socket_wrapper_unittest.cc',
60 ],
61 # Disable warnings to enable Win64 build, issue 1323.
62 'msvs_disabled_warnings': [
63 4267, # size_t to int truncation.
64 ],
65 }, # channel_transport_unittests
66 ], # targets
67}