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

Side by Side Diff: webrtc/api/api_tests.gyp

Issue 1610243002: Move talk/app/webrtc to webrtc/api (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed processing of api.gyp for Chromium builds Created 4 years, 10 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
« no previous file with comments | « webrtc/api/api.gyp ('k') | webrtc/api/audiotrack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2015 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', ],
11 'targets': [
12 {
13 'target_name': 'peerconnection_unittests',
14 'type': '<(gtest_target_type)',
15 'dependencies': [
16 '<(DEPTH)/testing/gmock.gyp:gmock',
17 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection',
18 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
19 '<(webrtc_root)/common.gyp:webrtc_common',
20 '<(webrtc_root)/webrtc.gyp:rtc_unittest_main',
21 '../../talk/libjingle.gyp:libjingle_p2p',
22 ],
23 'direct_dependent_settings': {
24 'include_dirs': [
25 '<(DEPTH)/testing/gmock/include',
26 ],
27 },
28 'defines': [
29 # Feature selection.
30 'HAVE_SCTP',
31 ],
32 'sources': [
33 'datachannel_unittest.cc',
34 'dtlsidentitystore_unittest.cc',
35 'dtmfsender_unittest.cc',
36 'fakemetricsobserver.cc',
37 'fakemetricsobserver.h',
38 'jsepsessiondescription_unittest.cc',
39 'localaudiosource_unittest.cc',
40 'mediastream_unittest.cc',
41 'peerconnection_unittest.cc',
42 'peerconnectionendtoend_unittest.cc',
43 'peerconnectionfactory_unittest.cc',
44 'peerconnectioninterface_unittest.cc',
45 # 'peerconnectionproxy_unittest.cc',
46 'remotevideocapturer_unittest.cc',
47 'rtpsenderreceiver_unittest.cc',
48 'statscollector_unittest.cc',
49 'test/fakeaudiocapturemodule.cc',
50 'test/fakeaudiocapturemodule.h',
51 'test/fakeaudiocapturemodule_unittest.cc',
52 'test/fakeconstraints.h',
53 'test/fakedatachannelprovider.h',
54 'test/fakedtlsidentitystore.h',
55 'test/fakeperiodicvideocapturer.h',
56 'test/fakevideotrackrenderer.h',
57 'test/mockpeerconnectionobservers.h',
58 'test/peerconnectiontestwrapper.h',
59 'test/peerconnectiontestwrapper.cc',
60 'test/testsdpstrings.h',
61 'videosource_unittest.cc',
62 'videotrack_unittest.cc',
63 'webrtcsdp_unittest.cc',
64 'webrtcsession_unittest.cc',
65 ],
66 # TODO(kjellander): Make the code compile without disabling these flags.
67 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
68 'cflags': [
69 '-Wno-sign-compare',
70 ],
71 'cflags!': [
72 '-Wextra',
73 ],
74 'cflags_cc!': [
75 '-Wnon-virtual-dtor',
76 '-Woverloaded-virtual',
77 ],
78 'msvs_disabled_warnings': [
79 4245, # conversion from 'int' to 'size_t', signed/unsigned mismatch.
80 4267, # conversion from 'size_t' to 'int', possible loss of data.
81 4389, # signed/unsigned mismatch.
82 ],
83 'conditions': [
84 ['clang==1', {
85 # TODO(kjellander): Make the code compile without disabling these flag s.
86 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
87 'cflags!': [
88 '-Wextra',
89 ],
90 'xcode_settings': {
91 'WARNING_CFLAGS!': ['-Wextra'],
92 },
93 }],
94 ['OS=="android"', {
95 'sources': [
96 'test/androidtestinitializer.cc',
97 'test/androidtestinitializer.h',
98 ],
99 'dependencies': [
100 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
101 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection_jni',
102 ],
103 }],
104 ['OS=="win" and clang==1', {
105 'msvs_settings': {
106 'VCCLCompilerTool': {
107 'AdditionalOptions': [
108 # Disable warnings failing when compiling with Clang on Windows.
109 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
110 '-Wno-sign-compare',
111 '-Wno-unused-function',
112 ],
113 },
114 },
115 }],
116 ], # conditions
117 }, # target peerconnection_unittests
118 ], # targets
11 'conditions': [ 119 'conditions': [
120 ['OS=="android"', {
121 'targets': [
122 {
123 'target_name': 'libjingle_peerconnection_android_unittest',
124 'type': 'none',
125 'dependencies': [
126 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection_java',
127 ],
128 'variables': {
129 'apk_name': 'libjingle_peerconnection_android_unittest',
130 'java_in_dir': 'androidtests',
131 'resource_dir': 'androidtests/res',
132 'native_lib_target': 'libjingle_peerconnection_so',
133 'is_test_apk': 1,
134 'never_lint': 1,
135 },
136 'includes': [ '../../build/java_apk.gypi' ],
137 },
138 ], # targets
139 }], # OS=="android"
12 ['OS=="ios"', { 140 ['OS=="ios"', {
13 'targets': [ 141 'targets': [
14 { 142 {
15 'target_name': 'rtc_api_objc_tests', 143 'target_name': 'rtc_api_objc_tests',
16 'type': 'executable', 144 'type': 'executable',
17 'dependencies': [ 145 'dependencies': [
18 '<(webrtc_root)/api/api.gyp:rtc_api_objc', 146 '<(webrtc_root)/api/api.gyp:rtc_api_objc',
19 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', 147 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils',
20 ], 148 ],
21 'sources': [ 149 'sources': [
22 'objctests/RTCConfigurationTest.mm', 150 'objctests/RTCConfigurationTest.mm',
23 'objctests/RTCDataChannelConfigurationTest.mm', 151 'objctests/RTCDataChannelConfigurationTest.mm',
24 'objctests/RTCIceCandidateTest.mm', 152 'objctests/RTCIceCandidateTest.mm',
25 'objctests/RTCIceServerTest.mm', 153 'objctests/RTCIceServerTest.mm',
26 'objctests/RTCMediaConstraintsTest.mm', 154 'objctests/RTCMediaConstraintsTest.mm',
27 'objctests/RTCSessionDescriptionTest.mm', 155 'objctests/RTCSessionDescriptionTest.mm',
28 ], 156 ],
29 'xcode_settings': { 157 'xcode_settings': {
30 'CLANG_ENABLE_OBJC_ARC': 'YES', 158 'CLANG_ENABLE_OBJC_ARC': 'YES',
31 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES', 159 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
32 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch', 160 'GCC_PREFIX_HEADER': 'objc/WebRTC-Prefix.pch',
33 # |-ObjC| flag needed to make sure category method implementations 161 # |-ObjC| flag needed to make sure category method implementations
34 # are included: 162 # are included:
35 # https://developer.apple.com/library/mac/qa/qa1490/_index.html 163 # https://developer.apple.com/library/mac/qa/qa1490/_index.html
36 'OTHER_LDFLAGS': ['-ObjC'], 164 'OTHER_LDFLAGS': ['-ObjC'],
37 }, 165 },
38 } 166 },
39 ], 167 ],
40 }], # OS=="ios" 168 }], # OS=="ios"
41 ], 169 ['OS=="android"', {
170 'targets': [
171 {
172 'target_name': 'peerconnection_unittests_apk_target',
173 'type': 'none',
174 'dependencies': [
175 '<(apk_tests_path):peerconnection_unittests_apk',
176 ],
177 },
178 ],
179 }], # OS=="android"
180 ['test_isolation_mode != "noop"', {
181 'targets': [
182 {
183 'target_name': 'peerconnection_unittests_run',
184 'type': 'none',
185 'dependencies': [
186 'peerconnection_unittests',
187 ],
188 'includes': [
189 '../build/isolate.gypi',
190 ],
191 'sources': [
192 'peerconnection_unittests.isolate',
193 ],
194 },
195 ], # targets
196 }], # test_isolation_mode != "noop"
197 ], # conditions
42 } 198 }
OLDNEW
« no previous file with comments | « webrtc/api/api.gyp ('k') | webrtc/api/audiotrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698