OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 { | 9 { |
10 'includes': ['../build/common.gypi'], | 10 'includes': ['../build/common.gypi'], |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 'mediasession.cc', | 65 'mediasession.cc', |
66 'mediasession.h', | 66 'mediasession.h', |
67 'mediasink.h', | 67 'mediasink.h', |
68 'rtcpmuxfilter.cc', | 68 'rtcpmuxfilter.cc', |
69 'rtcpmuxfilter.h', | 69 'rtcpmuxfilter.h', |
70 'srtpfilter.cc', | 70 'srtpfilter.cc', |
71 'srtpfilter.h', | 71 'srtpfilter.h', |
72 'voicechannel.h', | 72 'voicechannel.h', |
73 ], | 73 ], |
74 }, # target rtc_pc | 74 }, # target rtc_pc |
75 ], # targets | 75 ], |
76 'conditions': [ | |
77 ['include_tests==1', { | |
78 'targets' : [ | |
79 { | |
80 'target_name': 'rtc_pc_unittests', | |
81 'type': 'executable', | |
82 'dependencies': [ | |
83 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection', | |
84 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | |
85 '<(webrtc_root)/media/media.gyp:rtc_unittest_main', | |
86 '<(webrtc_root)/pc/pc.gyp:rtc_pc', | |
87 ], | |
88 'include_dirs': [ | |
89 '<(DEPTH)/third_party/libsrtp/srtp', | |
90 ], | |
91 'sources': [ | |
92 'bundlefilter_unittest.cc', | |
93 'channel_unittest.cc', | |
94 'channelmanager_unittest.cc', | |
95 'currentspeakermonitor_unittest.cc', | |
96 'mediasession_unittest.cc', | |
97 'rtcpmuxfilter_unittest.cc', | |
98 'srtpfilter_unittest.cc', | |
99 ], | |
100 # TODO(kjellander): Make the code compile without disabling these flag
s. | |
101 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 | |
102 'cflags_cc!': [ | |
103 '-Wnon-virtual-dtor', | |
104 ], | |
105 'conditions': [ | |
106 ['clang==0', { | |
107 'cflags': [ | |
108 '-Wno-maybe-uninitialized', # Only exists for GCC. | |
109 ], | |
110 }], | |
111 ['build_libsrtp==1', { | |
112 'dependencies': [ | |
113 '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp', | |
114 ], | |
115 }], | |
116 ['OS=="win"', { | |
117 'msvs_settings': { | |
118 'VCLinkerTool': { | |
119 'AdditionalDependencies': [ | |
120 'strmiids.lib', | |
121 ], | |
122 }, | |
123 }, | |
124 }], | |
125 ], | |
126 }, # target rtc_pc_unittests | |
127 ], # targets | |
128 }], # include_tests==1 | |
129 ['test_isolation_mode != "noop"', { | |
130 'targets': [ | |
131 { | |
132 'target_name': 'rtc_pc_unittests_run', | |
133 'type': 'none', | |
134 'dependencies': [ | |
135 'rtc_pc_unittests', | |
136 ], | |
137 'includes': [ | |
138 '../build/isolate.gypi', | |
139 ], | |
140 'sources': [ | |
141 'rtc_pc_unittests.isolate', | |
142 ], | |
143 }, | |
144 ], | |
145 }], | |
146 ], # conditions | |
147 } | 76 } |
OLD | NEW |