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

Side by Side Diff: webrtc/tools/BUILD.gn

Issue 2038493002: GN: Exclude tools and tests in Chromium builds. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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/system_wrappers/BUILD.gn ('k') | no next file » | 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) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 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 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("../build/webrtc.gni") 10 import("../build/webrtc.gni")
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 testonly = true 156 testonly = true
157 sources = [ 157 sources = [
158 "agc/test_utils.cc", 158 "agc/test_utils.cc",
159 "agc/test_utils.h", 159 "agc/test_utils.h",
160 ] 160 ]
161 161
162 configs += [ "..:common_config" ] 162 configs += [ "..:common_config" ]
163 public_configs = [ "..:common_inherited_config" ] 163 public_configs = [ "..:common_inherited_config" ]
164 } 164 }
165 165
166 executable("agc_harness") { 166 # Exclude tools depending on gflags since that's not available in Chromium.
167 testonly = true 167 # There's no point processing WebRTC standalone tests in a Chromium build.
168 sources = [ 168 if (!build_with_chromium) {
169 "agc/agc_harness.cc", 169 executable("agc_harness") {
170 ] 170 testonly = true
171 sources = [
172 "agc/agc_harness.cc",
173 ]
171 174
172 configs += [ "..:common_config" ] 175 configs += [ "..:common_config" ]
173 public_configs = [ "..:common_inherited_config" ] 176 public_configs = [ "..:common_inherited_config" ]
174 177
175 if (is_clang) { 178 if (is_clang) {
176 # Suppress warnings from the Chromium Clang plugin. 179 # Suppress warnings from the Chromium Clang plugin.
177 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 180 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
178 configs -= [ "//build/config/clang:find_bad_constructs" ] 181 configs -= [ "//build/config/clang:find_bad_constructs" ]
182 }
183
184 deps = [
185 "../system_wrappers:system_wrappers_default",
186 "../test:channel_transport",
187 "../test:test_support",
188 "../voice_engine",
189 "//build/win:default_exe_manifest",
190 "//testing/gtest",
191 "//third_party/gflags",
192 ]
179 } 193 }
180 194
181 deps = [ 195 executable("activity_metric") {
182 "../system_wrappers:system_wrappers_default", 196 testonly = true
183 "../test:channel_transport", 197 sources = [
184 "../test:test_support", 198 "agc/activity_metric.cc",
185 "../voice_engine", 199 ]
186 "//build/win:default_exe_manifest",
187 "//testing/gtest",
188 "//third_party/gflags",
189 ]
190 }
191 200
192 executable("activity_metric") { 201 configs += [ "..:common_config" ]
193 testonly = true 202 public_configs = [ "..:common_inherited_config" ]
194 sources = [
195 "agc/activity_metric.cc",
196 ]
197 203
198 configs += [ "..:common_config" ] 204 if (is_clang) {
199 public_configs = [ "..:common_inherited_config" ] 205 # Suppress warnings from the Chromium Clang plugin.
206 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
207 configs -= [ "//build/config/clang:find_bad_constructs" ]
208 }
200 209
201 if (is_clang) { 210 deps = [
202 # Suppress warnings from the Chromium Clang plugin. 211 "../modules/audio_processing",
203 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 212 "../system_wrappers:metrics_default",
204 configs -= [ "//build/config/clang:find_bad_constructs" ] 213 "//build/win:default_exe_manifest",
214 "//testing/gtest",
215 "//third_party/gflags",
216 ]
205 } 217 }
206 218
207 deps = [ 219 executable("audio_e2e_harness") {
208 "../modules/audio_processing", 220 testonly = true
209 "../system_wrappers:metrics_default", 221 sources = [
210 "//build/win:default_exe_manifest", 222 "e2e_quality/audio/audio_e2e_harness.cc",
211 "//testing/gtest", 223 ]
212 "//third_party/gflags",
213 ]
214 }
215 224
216 executable("audio_e2e_harness") { 225 configs += [ "..:common_config" ]
217 testonly = true 226 public_configs = [ "..:common_inherited_config" ]
218 sources = [
219 "e2e_quality/audio/audio_e2e_harness.cc",
220 ]
221 227
222 configs += [ "..:common_config" ] 228 if (is_clang) {
223 public_configs = [ "..:common_inherited_config" ] 229 # Suppress warnings from the Chromium Clang plugin.
230 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
231 configs -= [ "//build/config/clang:find_bad_constructs" ]
232 }
224 233
225 if (is_clang) { 234 deps = [
226 # Suppress warnings from the Chromium Clang plugin. 235 "../system_wrappers:system_wrappers_default",
227 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 236 "../test:channel_transport",
228 configs -= [ "//build/config/clang:find_bad_constructs" ] 237 "../voice_engine",
238 "//build/win:default_exe_manifest",
239 "//testing/gtest",
240 "//third_party/gflags",
241 ]
229 } 242 }
230 243
231 deps = [ 244 test("tools_unittests") {
232 "../system_wrappers:system_wrappers_default", 245 testonly = true
233 "../test:channel_transport",
234 "../voice_engine",
235 "//build/win:default_exe_manifest",
236 "//testing/gtest",
237 "//third_party/gflags",
238 ]
239 }
240 246
241 test("tools_unittests") { 247 sources = [
242 testonly = true 248 "frame_analyzer/video_quality_analysis_unittest.cc",
249 "frame_editing/frame_editing_unittest.cc",
250 "simple_command_line_parser_unittest.cc",
251 ]
243 252
244 sources = [ 253 configs += [ "..:common_config" ]
245 "frame_analyzer/video_quality_analysis_unittest.cc", 254 public_configs = [ "..:common_inherited_config" ]
246 "frame_editing/frame_editing_unittest.cc",
247 "simple_command_line_parser_unittest.cc",
248 ]
249 255
250 configs += [ "..:common_config" ] 256 # TODO(jschuh): Bug 1348: fix this warning.
251 public_configs = [ "..:common_inherited_config" ] 257 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
252 258
253 # TODO(jschuh): Bug 1348: fix this warning. 259 if (is_clang) {
254 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 260 # Suppress warnings from the Chromium Clang plugin.
261 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
262 configs -= [ "//build/config/clang:find_bad_constructs" ]
263 }
255 264
256 if (is_clang) { 265 deps = [
257 # Suppress warnings from the Chromium Clang plugin. 266 ":command_line_parser",
258 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 267 ":frame_editing_lib",
259 configs -= [ "//build/config/clang:find_bad_constructs" ] 268 ":video_quality_analysis",
260 } 269 "../test:test_support_main",
270 "//testing/gtest",
271 ]
261 272
262 deps = [ 273 if (is_android) {
263 ":command_line_parser", 274 deps += [ "//testing/android/native_test:native_test_support" ]
264 ":frame_editing_lib", 275 }
265 ":video_quality_analysis",
266 "../test:test_support_main",
267 "//testing/gtest",
268 ]
269
270 if (is_android) {
271 deps += [ "//testing/android/native_test:native_test_support" ]
272 } 276 }
273 } 277 }
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698