blob: 2e3c91aaacc737be7f7afcbcbc13d8a128ed2475 [file] [log] [blame]
wjia@webrtc.org03cfde22014-01-14 17:48:34 +00001# 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
Patrik Höglund29dd6d72017-12-01 11:35:26 +01009# This is the root build file for GN. GN will start processing by loading this
10# file, and recursively load all dependencies until all dependencies are either
11# resolved or known not to exist (which will cause the build to fail). So if
12# you add a new build file, there must be some path of dependencies from this
13# file to your new one or GN won't know about it.
14
Mirko Bonadeibb547202017-09-15 06:15:48 +020015import("//build/config/linux/pkg_config.gni")
16import("//build/config/sanitizers/sanitizers.gni")
17import("webrtc.gni")
Dan Minor9c686132018-01-15 10:20:00 -050018if (!build_with_mozilla) {
19 import("//third_party/protobuf/proto_library.gni")
20}
Mirko Bonadeibb547202017-09-15 06:15:48 +020021if (is_android) {
22 import("//build/config/android/config.gni")
23 import("//build/config/android/rules.gni")
24}
ehmaldonado37d7a222016-11-08 06:34:20 -080025
Mirko Bonadeibb547202017-09-15 06:15:48 +020026if (!build_with_chromium) {
Patrik Höglund29dd6d72017-12-01 11:35:26 +010027 # This target should (transitively) cause everything to be built; if you run
28 # 'ninja default' and then 'ninja all', the second build should do no work.
Mirko Bonadeibb547202017-09-15 06:15:48 +020029 group("default") {
30 testonly = true
31 deps = [
32 ":webrtc",
Mirko Bonadeibb547202017-09-15 06:15:48 +020033 ]
Joachim Bauch93e91342017-12-07 01:25:53 +010034 if (rtc_build_examples) {
35 deps += [ "examples" ]
36 }
37 if (rtc_build_tools) {
38 deps += [ "rtc_tools" ]
39 }
Mirko Bonadeibb547202017-09-15 06:15:48 +020040 if (rtc_include_tests) {
Patrik Höglund29dd6d72017-12-01 11:35:26 +010041 deps += [
42 ":rtc_unittests",
43 ":video_engine_tests",
44 ":webrtc_nonparallel_tests",
45 ":webrtc_perf_tests",
46 "common_audio:common_audio_unittests",
47 "common_video:common_video_unittests",
48 "media:rtc_media_unittests",
49 "modules:modules_tests",
50 "modules:modules_unittests",
51 "modules/audio_coding:audio_coding_tests",
52 "modules/audio_processing:audio_processing_tests",
53 "modules/remote_bitrate_estimator:bwe_simulations_tests",
54 "modules/rtp_rtcp:test_packet_masks_metrics",
55 "modules/video_capture:video_capture_internal_impl",
56 "ortc:ortc_unittests",
57 "pc:peerconnection_unittests",
58 "pc:rtc_pc_unittests",
59 "rtc_base:rtc_base_tests_utils",
60 "stats:rtc_stats_unittests",
61 "system_wrappers:system_wrappers_unittests",
62 "test",
63 "video:screenshare_loopback",
Ilya Nikolaevskiy255d1cd2017-12-21 18:02:59 +010064 "video:sv_loopback",
Patrik Höglund29dd6d72017-12-01 11:35:26 +010065 "video:video_loopback",
Patrik Höglund29dd6d72017-12-01 11:35:26 +010066 ]
67 if (is_android) {
68 deps += [
69 ":android_junit_tests",
Sami Kalliomäkid54f5f52018-08-03 13:23:05 +020070 "sdk/android:android_instrumentation_test_apk",
Patrik Höglund29dd6d72017-12-01 11:35:26 +010071 ]
72 } else {
73 deps += [ "modules/video_capture:video_capture_tests" ]
74 }
75 if (rtc_enable_protobuf) {
76 deps += [
77 "audio:low_bandwidth_audio_test",
78 "logging:rtc_event_log2rtp_dump",
79 ]
80 }
Mirko Bonadeibb547202017-09-15 06:15:48 +020081 }
82 }
83}
84
85# Contains the defines and includes in common.gypi that are duplicated both as
86# target_defaults and direct_dependent_settings.
87config("common_inherited_config") {
88 defines = []
89 cflags = []
90 ldflags = []
91 if (build_with_mozilla) {
92 defines += [ "WEBRTC_MOZILLA_BUILD" ]
93 }
94
95 # Some tests need to declare their own trace event handlers. If this define is
96 # not set, the first time TRACE_EVENT_* is called it will store the return
97 # value for the current handler in an static variable, so that subsequent
98 # changes to the handler for that TRACE_EVENT_* will be ignored.
99 # So when tests are included, we set this define, making it possible to use
100 # different event handlers in different tests.
ehmaldonado37d7a222016-11-08 06:34:20 -0800101 if (rtc_include_tests) {
Mirko Bonadeibb547202017-09-15 06:15:48 +0200102 defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1" ]
103 } else {
104 defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0" ]
105 }
106 if (build_with_chromium) {
Mirko Bonadei8e5014a2018-08-02 13:36:10 +0200107 defines += [ "WEBRTC_CHROMIUM_BUILD" ]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200108 include_dirs = [
109 # The overrides must be included first as that is the mechanism for
110 # selecting the override headers in Chromium.
111 "../webrtc_overrides",
112
113 # Allow includes to be prefixed with webrtc/ in case it is not an
114 # immediate subdirectory of the top-level.
115 ".",
116 ]
117 }
Fabrice de Gans-Riberi09a6cd52018-03-30 10:38:06 -0700118 if (is_posix || is_fuchsia) {
Mirko Bonadeibb547202017-09-15 06:15:48 +0200119 defines += [ "WEBRTC_POSIX" ]
120 }
121 if (is_ios) {
122 defines += [
123 "WEBRTC_MAC",
124 "WEBRTC_IOS",
125 ]
126 }
127 if (is_linux) {
128 defines += [ "WEBRTC_LINUX" ]
129 }
130 if (is_mac) {
131 defines += [ "WEBRTC_MAC" ]
132 }
Sergey Ulanov6acefdb2017-12-11 17:38:13 -0800133 if (is_fuchsia) {
134 defines += [ "WEBRTC_FUCHSIA" ]
135 }
Mirko Bonadeibb547202017-09-15 06:15:48 +0200136 if (is_win) {
Mirko Bonadei89a87742018-04-24 09:12:13 +0200137 defines += [ "WEBRTC_WIN" ]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200138 }
139 if (is_android) {
140 defines += [
141 "WEBRTC_LINUX",
142 "WEBRTC_ANDROID",
143 ]
Dan Minor9c686132018-01-15 10:20:00 -0500144
145 if (build_with_mozilla) {
146 defines += [ "WEBRTC_ANDROID_OPENSLES" ]
147 }
Mirko Bonadeibb547202017-09-15 06:15:48 +0200148 }
149 if (is_chromeos) {
150 defines += [ "CHROMEOS" ]
151 }
152
153 if (rtc_sanitize_coverage != "") {
154 assert(is_clang, "sanitizer coverage requires clang")
155 cflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
156 ldflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
157 }
158
159 if (is_ubsan) {
160 cflags += [ "-fsanitize=float-cast-overflow" ]
161 }
Mirko Bonadeibb547202017-09-15 06:15:48 +0200162}
163
164config("common_config") {
165 cflags = []
Mirko Bonadeid7573562018-03-19 16:23:48 +0100166 cflags_c = []
Mirko Bonadeibb547202017-09-15 06:15:48 +0200167 cflags_cc = []
Mirko Bonadeid7573562018-03-19 16:23:48 +0100168 cflags_objc = []
Mirko Bonadeibb547202017-09-15 06:15:48 +0200169 defines = []
170
171 if (rtc_enable_protobuf) {
172 defines += [ "WEBRTC_ENABLE_PROTOBUF=1" ]
173 } else {
174 defines += [ "WEBRTC_ENABLE_PROTOBUF=0" ]
175 }
176
Mirko Bonadeibb547202017-09-15 06:15:48 +0200177 if (rtc_include_internal_audio_device) {
178 defines += [ "WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ]
179 }
180
181 if (!rtc_libvpx_build_vp9) {
182 defines += [ "RTC_DISABLE_VP9" ]
183 }
184
185 if (rtc_enable_sctp) {
186 defines += [ "HAVE_SCTP" ]
187 }
188
189 if (rtc_enable_external_auth) {
190 defines += [ "ENABLE_EXTERNAL_AUTH" ]
191 }
192
Anders Carlssondd8c1652018-01-30 10:32:13 +0100193 if (rtc_use_builtin_sw_codecs) {
194 defines += [ "USE_BUILTIN_SW_CODECS" ]
195 }
196
Mirko Bonadeibb547202017-09-15 06:15:48 +0200197 if (build_with_chromium) {
198 defines += [
199 # NOTICE: Since common_inherited_config is used in public_configs for our
200 # targets, there's no point including the defines in that config here.
201 # TODO(kjellander): Cleanup unused ones and move defines closer to the
202 # source when webrtc:4256 is completed.
203 "HAVE_WEBRTC_VIDEO",
204 "HAVE_WEBRTC_VOICE",
205 "LOGGING_INSIDE_WEBRTC",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200206 ]
207 } else {
Fabrice de Gans-Riberi09a6cd52018-03-30 10:38:06 -0700208 if (is_posix || is_fuchsia) {
Mirko Bonadeibb547202017-09-15 06:15:48 +0200209 # Enable more warnings: -Wextra is currently disabled in Chromium.
210 cflags = [
211 "-Wextra",
212
213 # Repeat some flags that get overridden by -Wextra.
214 "-Wno-unused-parameter",
215 "-Wno-missing-field-initializers",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200216 ]
Mirko Bonadeid7573562018-03-19 16:23:48 +0100217 cflags_c += [
218 # TODO(bugs.webrtc.org/9029): enable commented compiler flags.
219 # Some of these flags should also be added to cflags_objc.
220
221 # "-Wextra", (used when building C++ but not when building C)
222 # "-Wmissing-prototypes", (C/Obj-C only)
223 # "-Wmissing-declarations", (ensure this is always used C/C++, etc..)
224 "-Wstrict-prototypes",
225
226 # "-Wpointer-arith", (ensure this is always used C/C++, etc..)
227 # "-Wbad-function-cast", (C/Obj-C only)
228 # "-Wnested-externs", (C/Obj-C only)
229 ]
230 cflags_objc += [ "-Wstrict-prototypes" ]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200231 cflags_cc = [
232 "-Wnon-virtual-dtor",
233
234 # This is enabled for clang; enable for gcc as well.
235 "-Woverloaded-virtual",
236 ]
237 }
238
239 if (is_clang) {
240 cflags += [
241 "-Wc++11-narrowing",
242 "-Wimplicit-fallthrough",
243 "-Wthread-safety",
244 "-Winconsistent-missing-override",
245 "-Wundef",
246 ]
247
248 # use_xcode_clang only refers to the iOS toolchain, host binaries use
249 # chromium's clang always.
250 if (!is_nacl &&
251 (!use_xcode_clang || current_toolchain == host_toolchain)) {
252 # Flags NaCl (Clang 3.7) and Xcode 7.3 (Clang clang-703.0.31) do not
253 # recognize.
254 cflags += [ "-Wunused-lambda-capture" ]
255 }
256 }
Mirko Bonadeie7659df2018-05-16 11:50:40 +0200257
258 if (is_win && !is_clang) {
259 # MSVC warning suppressions (needed to use Abseil).
260 # TODO(bugs.webrtc.org/9274): Remove these warnings as soon as MSVC allows
261 # external headers warning suppression (or fix them upstream).
262 cflags += [ "/wd4702" ] # unreachable code
263 }
Mirko Bonadeibb547202017-09-15 06:15:48 +0200264 }
265
266 if (current_cpu == "arm64") {
267 defines += [ "WEBRTC_ARCH_ARM64" ]
268 defines += [ "WEBRTC_HAS_NEON" ]
269 }
270
271 if (current_cpu == "arm") {
272 defines += [ "WEBRTC_ARCH_ARM" ]
273 if (arm_version >= 7) {
274 defines += [ "WEBRTC_ARCH_ARM_V7" ]
275 if (arm_use_neon) {
276 defines += [ "WEBRTC_HAS_NEON" ]
277 }
278 }
279 }
280
281 if (current_cpu == "mipsel") {
282 defines += [ "MIPS32_LE" ]
283 if (mips_float_abi == "hard") {
284 defines += [ "MIPS_FPU_LE" ]
285 }
286 if (mips_arch_variant == "r2") {
287 defines += [ "MIPS32_R2_LE" ]
288 }
289 if (mips_dsp_rev == 1) {
290 defines += [ "MIPS_DSP_R1_LE" ]
291 } else if (mips_dsp_rev == 2) {
292 defines += [
293 "MIPS_DSP_R1_LE",
294 "MIPS_DSP_R2_LE",
295 ]
296 }
297 }
298
299 if (is_android && !is_clang) {
300 # The Android NDK doesn"t provide optimized versions of these
301 # functions. Ensure they are disabled for all compilers.
302 cflags += [
303 "-fno-builtin-cos",
304 "-fno-builtin-sin",
305 "-fno-builtin-cosf",
306 "-fno-builtin-sinf",
307 ]
308 }
309
Max Moroza61fa6e2018-05-28 19:26:58 -0700310 if (use_fuzzing_engine && optimize_for_fuzzing) {
Mirko Bonadeibb547202017-09-15 06:15:48 +0200311 # Used in Chromium's overrides to disable logging
312 defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ]
313 }
314}
315
316config("common_objc") {
317 libs = [ "Foundation.framework" ]
318}
319
320if (!build_with_chromium) {
321 # Target to build all the WebRTC production code.
322 rtc_static_library("webrtc") {
323 # Only the root target should depend on this.
324 visibility = [ "//:default" ]
325
326 sources = []
327 complete_static_lib = true
Oleh Prypind2f4e8b2018-08-01 12:18:05 +0200328 suppressed_configs += [ "//build/config/compiler:thin_archive" ]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200329 defines = []
330
331 deps = [
332 ":webrtc_common",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200333 "api:transport_api",
334 "audio",
335 "call",
336 "common_audio",
337 "common_video",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200338 "media",
339 "modules",
340 "modules/video_capture:video_capture_internal_impl",
341 "ortc",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200342 "rtc_base",
343 "sdk",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200344 "system_wrappers:system_wrappers_default",
345 "video",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200346 ]
347
Yves Gerey12912252018-07-18 22:06:42 +0200348 # Additional factory functions to be exposed.
349 # Rational: These factories are small enough (89 KiB / 32+ MiB)
350 # to be unconditionaly included for user convenience.
351 # That begin said:
352 # TODO(yvesg) Consider making all non-core APIs optional, so that users
353 # can build a customized library tailored to their needs.
354 deps += [
355 "api/audio_codecs:builtin_audio_decoder_factory",
356 "api/audio_codecs:builtin_audio_encoder_factory",
357 ]
358
Dan Minor9c686132018-01-15 10:20:00 -0500359 if (build_with_mozilla) {
360 deps += [
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200361 "api/video:video_frame",
Dan Minor9c686132018-01-15 10:20:00 -0500362 "system_wrappers:field_trial_default",
363 "system_wrappers:metrics_default",
364 ]
365 } else {
366 deps += [
367 "api",
368 "logging",
369 "p2p",
370 "pc",
371 "stats",
372 ]
373 }
374
Mirko Bonadeibb547202017-09-15 06:15:48 +0200375 if (rtc_enable_protobuf) {
376 defines += [ "ENABLE_RTC_EVENT_LOG" ]
377 deps += [ "logging:rtc_event_log_proto" ]
378 }
379 }
Mirko Bonadeibb547202017-09-15 06:15:48 +0200380}
381
Niels Möllera46bd4b2018-06-08 14:03:44 +0200382rtc_source_set("webrtc_common") {
Mirko Bonadeibb547202017-09-15 06:15:48 +0200383 sources = [
Mirko Bonadeibb547202017-09-15 06:15:48 +0200384 "common_types.h",
Patrik Höglund3e113432017-12-15 14:40:10 +0100385 ]
386 deps = [
Patrik Höglund3e113432017-12-15 14:40:10 +0100387 "api:array_view",
Niels Möllerc6ce9c52018-05-11 11:15:30 +0200388 "api/video:video_bitrate_allocation",
Patrik Höglund3e113432017-12-15 14:40:10 +0100389 "rtc_base:checks",
390 "rtc_base:deprecation",
391 "rtc_base:stringutils",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200392 ]
393
394 if (!build_with_chromium && is_clang) {
395 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
396 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
397 }
398}
399
400if (use_libfuzzer || use_drfuzz || use_afl) {
401 # This target is only here for gn to discover fuzzer build targets under
402 # webrtc/test/fuzzers/.
403 group("webrtc_fuzzers_dummy") {
404 testonly = true
405 deps = [
406 "test/fuzzers:webrtc_fuzzer_main",
407 ]
408 }
409}
410
411if (rtc_include_tests) {
Mirko Bonadeibb547202017-09-15 06:15:48 +0200412 rtc_test("rtc_unittests") {
413 testonly = true
414
415 deps = [
416 ":webrtc_common",
417 "api:rtc_api_unittests",
Fredrik Solenbergbbf21a32018-04-12 22:44:09 +0200418 "api/audio/test:audio_api_unittests",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200419 "api/audio_codecs/test:audio_codecs_api_unittests",
Stefan Holmerf7044682018-07-17 10:16:41 +0200420 "api/video/test:rtc_api_video_unittests",
Anders Carlssondd3e0ab2018-06-12 11:15:56 +0200421 "api/video_codecs/test:video_codecs_api_unittests",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200422 "p2p:libstunprober_unittests",
423 "p2p:rtc_p2p_unittests",
424 "rtc_base:rtc_base_approved_unittests",
425 "rtc_base:rtc_base_tests_main",
426 "rtc_base:rtc_base_tests_utils",
427 "rtc_base:rtc_base_unittests",
428 "rtc_base:rtc_numerics_unittests",
429 "rtc_base:rtc_task_queue_unittests",
430 "rtc_base:sequenced_task_checker_unittests",
Artem Titove41c4332018-07-25 15:04:28 +0200431 "rtc_base:sigslot_unittest",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200432 "rtc_base:weak_ptr_unittests",
Sebastian Jansson2808ae92018-04-09 11:13:04 +0200433 "rtc_base/experiments:experiments_unittests",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200434 "system_wrappers:metrics_default",
Ilya Nikolaevskiy2ffe3e82018-01-17 19:57:24 +0000435 "system_wrappers:runtime_enabled_features_default",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200436 ]
437
438 if (rtc_enable_protobuf) {
439 deps += [ "logging:rtc_event_log_tests" ]
440 }
441
442 if (is_android) {
Sami Kalliomäki78498cf2018-02-07 16:59:33 +0100443 # Do not use Chromium's launcher. native_unittests defines its own JNI_OnLoad.
444 use_default_launcher = false
445
446 deps += [
447 "sdk/android:native_unittests",
448 "sdk/android:native_unittests_java",
449 "//testing/android/native_test:native_test_support",
450 ]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200451 shard_timeout = 900
452 }
453
454 if (is_ios || is_mac) {
Kári Tristan Helgason90143242018-07-27 12:34:54 +0200455 deps += [ "sdk:rtc_unittests_objc" ]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200456 }
457 }
458
459 # TODO(pbos): Rename test suite, this is no longer "just" for video targets.
460 video_engine_tests_resources = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200461 "resources/foreman_cif_short.yuv",
462 "resources/voice_engine/audio_long16.pcm",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200463 ]
464
465 if (is_ios) {
466 bundle_data("video_engine_tests_bundle_data") {
467 testonly = true
468 sources = video_engine_tests_resources
469 outputs = [
470 "{{bundle_resources_dir}}/{{source_file_part}}",
471 ]
472 }
473 }
474
475 rtc_test("video_engine_tests") {
476 testonly = true
477 deps = [
478 "audio:audio_tests",
479
480 # TODO(eladalon): call_tests aren't actually video-specific, so we
481 # should move them to a more appropriate test suite.
482 "call:call_tests",
483 "modules/video_capture",
484 "rtc_base:rtc_base_tests_utils",
485 "test:test_common",
486 "test:test_main",
487 "test:video_test_common",
488 "video:video_tests",
489 ]
490 data = video_engine_tests_resources
491 if (!build_with_chromium && is_clang) {
492 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
493 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
494 }
495 if (is_android) {
496 deps += [ "//testing/android/native_test:native_test_native_code" ]
497 shard_timeout = 900
498 }
499 if (is_ios) {
500 deps += [ ":video_engine_tests_bundle_data" ]
501 }
502 }
503
504 webrtc_perf_tests_resources = [
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200505 "resources/audio_coding/speech_mono_16kHz.pcm",
506 "resources/audio_coding/speech_mono_32_48kHz.pcm",
507 "resources/audio_coding/testfile32kHz.pcm",
508 "resources/ConferenceMotion_1280_720_50.yuv",
509 "resources/difficult_photo_1850_1110.yuv",
510 "resources/foreman_cif.yuv",
511 "resources/google-wifi-3mbps.rx",
512 "resources/paris_qcif.yuv",
513 "resources/photo_1850_1110.yuv",
514 "resources/presentation_1850_1110.yuv",
515 "resources/verizon4g-downlink.rx",
516 "resources/voice_engine/audio_long16.pcm",
517 "resources/web_screenshot_1850_1110.yuv",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200518 ]
519
520 if (is_ios) {
521 bundle_data("webrtc_perf_tests_bundle_data") {
522 testonly = true
523 sources = webrtc_perf_tests_resources
524 outputs = [
525 "{{bundle_resources_dir}}/{{source_file_part}}",
526 ]
527 }
528 }
529
530 rtc_test("webrtc_perf_tests") {
531 testonly = true
Mirko Bonadeibb547202017-09-15 06:15:48 +0200532 deps = [
533 "audio:audio_perf_tests",
534 "call:call_perf_tests",
535 "modules/audio_coding:audio_coding_perf_tests",
536 "modules/audio_processing:audio_processing_perf_tests",
537 "modules/remote_bitrate_estimator:remote_bitrate_estimator_perf_tests",
Seth Hampsond1003d72018-06-22 15:40:16 -0700538 "pc:peerconnection_perf_tests",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200539 "test:test_main",
540 "video:video_full_stack_tests",
541 ]
542
543 data = webrtc_perf_tests_resources
544 if (is_android) {
Rasmus Brandt31027342017-09-29 13:48:12 +0000545 deps += [ "//testing/android/native_test:native_test_native_code" ]
Mirko Bonadeibb547202017-09-15 06:15:48 +0200546 shard_timeout = 2700
547 }
548 if (is_ios) {
549 deps += [ ":webrtc_perf_tests_bundle_data" ]
550 }
551 }
552
553 rtc_test("webrtc_nonparallel_tests") {
554 testonly = true
555 deps = [
556 "rtc_base:rtc_base_nonparallel_tests",
557 ]
558 if (is_android) {
559 deps += [ "//testing/android/native_test:native_test_support" ]
560 shard_timeout = 900
561 }
562 }
563
564 if (is_android) {
565 junit_binary("android_junit_tests") {
566 java_files = [
567 "examples/androidjunit/src/org/appspot/apprtc/BluetoothManagerTest.java",
568 "examples/androidjunit/src/org/appspot/apprtc/DirectRTCClientTest.java",
569 "examples/androidjunit/src/org/appspot/apprtc/TCPChannelClientTest.java",
570 "sdk/android/tests/src/org/webrtc/CameraEnumerationTest.java",
Sami Kalliomäkia3818712018-08-08 11:29:23 +0200571 "sdk/android/tests/src/org/webrtc/CodecTestHelper.java",
572 "sdk/android/tests/src/org/webrtc/FakeMediaCodecWrapper.java",
573 "sdk/android/tests/src/org/webrtc/GlGenericDrawerTest.java",
574 "sdk/android/tests/src/org/webrtc/HardwareVideoEncoderTest.java",
575 "sdk/android/tests/src/org/webrtc/HardwareVideoDecoderTest.java",
Sami Kalliomäki8619e8a2018-04-17 14:44:36 +0200576 "sdk/android/tests/src/org/webrtc/ScalingSettingsTest.java",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200577 ]
578
579 deps = [
580 "examples:AppRTCMobile_javalib",
581 "sdk/android:libjingle_peerconnection_java",
582 "//base:base_java_test_support",
Sami Kalliomäkia3818712018-08-08 11:29:23 +0200583 "//third_party/google-truth:google_truth_java",
Mirko Bonadeibb547202017-09-15 06:15:48 +0200584 ]
585 }
ehmaldonado37d7a222016-11-08 06:34:20 -0800586 }
wjia@webrtc.org03cfde22014-01-14 17:48:34 +0000587}
Karl Wibergbb23c832018-04-22 19:55:00 +0200588
589# ---- Poisons ----
590#
591# Here is one empty dummy target for each poison type (needed because
592# "being poisonous with poison type foo" is implemented as "depends on
593# //:poison_foo").
594#
595# The set of poison_* targets needs to be kept in sync with the
596# `all_poison_types` list in webrtc.gni.
597#
598group("poison_audio_codecs") {
599}
Anders Carlsson1f433e42018-04-24 16:39:05 +0200600
601group("poison_software_video_codecs") {
602}