Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: webrtc/media/media_tests.gypi

Issue 1587193006: Move talk/media to webrtc/media (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Disable sign-compare warning on Win Clang Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2014 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': [ '../build/common.gypi', ],
11 'targets': [
12 {
13 'target_name': 'rtc_unittest_main',
Taylor Brandstetter 2016/01/27 02:39:43 The name "rtc_unittest_main" makes me confuse this
kjellander_webrtc 2016/02/04 21:52:10 I'm not sure what to name it, it's depended upon b
14 'type': 'static_library',
15 'dependencies': [
16 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
17 ],
18 'direct_dependent_settings': {
19 'include_dirs': [
20 '<(libyuv_dir)/include',
21 '<(DEPTH)/testing/gtest/include',
22 '<(DEPTH)/testing/gtest',
23 ],
24 },
25 'conditions': [
26 ['build_libyuv==1', {
27 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
28 }],
29 ['OS=="ios"', {
30 # TODO(kjellander): Make the code compile without disabling these.
31 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
32 'cflags': [
33 '-Wno-unused-variable',
34 ],
35 'xcode_settings': {
36 'WARNING_CFLAGS': [
37 '-Wno-unused-variable',
38 ],
39 },
40 }],
41 ],
42 'include_dirs': [
43 '<(DEPTH)/testing/gtest/include',
44 '<(DEPTH)/testing/gtest',
45 ],
46 'sources': [
47 'base/fakecapturemanager.h',
48 'base/fakemediaengine.h',
49 'base/fakenetworkinterface.h',
50 'base/fakertp.h',
51 'base/fakevideocapturer.h',
52 'base/fakevideorenderer.h',
53 'base/testutils.cc',
54 'base/testutils.h',
55 'devices/fakedevicemanager.h',
56 'webrtc/fakewebrtccall.cc',
57 'webrtc/fakewebrtccall.h',
58 'webrtc/fakewebrtccommon.h',
59 'webrtc/fakewebrtcdeviceinfo.h',
60 'webrtc/fakewebrtcvcmfactory.h',
61 'webrtc/fakewebrtcvideocapturemodule.h',
62 'webrtc/fakewebrtcvideoengine.h',
63 'webrtc/fakewebrtcvoiceengine.h',
64 ],
65 # TODO(kjellander): Make the code compile without disabling these flags.
66 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
67 'cflags_cc!': [
68 '-Wnon-virtual-dtor',
69 ],
70 }, # target rtc_unittest_main
71 {
72 'target_name': 'libjingle_media_unittest',
Taylor Brandstetter 2016/01/27 02:39:42 Should this be rtc_media_unittests, to match the c
kjellander_webrtc 2016/02/04 21:52:10 Yes, but in order to have passing trybots for this
73 'type': 'executable',
74 'dependencies': [
75 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
76 '<(webrtc_root)/media/media.gyp:rtc_media',
77 'rtc_unittest_main',
78 ],
79 'sources': [
80 'base/capturemanager_unittest.cc',
81 'base/codec_unittest.cc',
82 'base/rtpdataengine_unittest.cc',
83 'base/rtpdump_unittest.cc',
84 'base/rtputils_unittest.cc',
85 'base/streamparams_unittest.cc',
86 'base/turnutils_unittest.cc',
87 'base/videoadapter_unittest.cc',
88 'base/videocapturer_unittest.cc',
89 'base/videocommon_unittest.cc',
90 'base/videoengine_unittest.h',
91 'base/videoframe_unittest.h',
92 'devices/dummydevicemanager_unittest.cc',
93 'devices/filevideocapturer_unittest.cc',
94 'sctp/sctpdataengine_unittest.cc',
95 'webrtc/simulcast_unittest.cc',
96 'webrtc/webrtcmediaengine_unittest.cc',
97 'webrtc/webrtcvideocapturer_unittest.cc',
98 'webrtc/webrtcvideoframe_unittest.cc',
99 'webrtc/webrtcvideoframefactory_unittest.cc',
100 # Disabled because some tests fail.
101 # TODO(ronghuawu): Reenable these tests.
102 # 'devices/devicemanager_unittest.cc',
103 'webrtc/webrtcvideoengine2_unittest.cc',
104 'webrtc/webrtcvoiceengine_unittest.cc',
105 ],
106 # TODO(kjellander): Make the code compile without disabling these flags.
107 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
108 'cflags': [
109 '-Wno-sign-compare',
110 ],
111 'cflags_cc!': [
112 '-Wnon-virtual-dtor',
113 '-Woverloaded-virtual',
114 ],
115 'msvs_disabled_warnings': [
116 4245, # conversion from 'int' to 'uint32_t', signed/unsigned mismatch.
117 4389, # signed/unsigned mismatch.
118 ],
119 'conditions': [
120 ['OS=="win"', {
121 'conditions': [
122 ['use_openssl==0', {
123 'dependencies': [
124 '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
125 '<(DEPTH)/third_party/nss/nss.gyp:nspr',
126 '<(DEPTH)/third_party/nss/nss.gyp:nss',
127 ],
128 }],
129 ],
130 'msvs_settings': {
131 'VCLinkerTool': {
132 'AdditionalDependencies': [
133 # TODO(ronghuawu): Since we've included strmiids in
134 # libjingle_media target, we shouldn't need this here.
135 # Find out why it doesn't work without this.
136 'strmiids.lib',
137 ],
138 },
139 },
140 }],
141 ['OS=="win" and clang==1', {
142 'msvs_settings': {
143 'VCCLCompilerTool': {
144 'AdditionalOptions': [
145 # Disable warnings failing when compiling with Clang on Windows.
146 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
147 '-Wno-sign-compare',
148 '-Wno-unused-function',
149 ],
150 },
151 },
152 },],
153 ['clang==1', {
154 # TODO(kjellander): Make the code compile without disabling these.
155 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
156 'cflags!': [
157 '-Wextra',
158 ],
159 'xcode_settings': {
160 'WARNING_CFLAGS!': ['-Wextra'],
161 },
162 }],
163 ['OS=="ios"', {
164 'sources!': [
165 'sctp/sctpdataengine_unittest.cc',
166 ],
167 }],
168 ],
169 }, # target rtc_media_unittests
170 ],
171 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698