| OLD | NEW |
| 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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. | 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. |
| 10 | 10 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ] | 236 defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ] |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 | 239 |
| 240 config("common_objc") { | 240 config("common_objc") { |
| 241 libs = [ "Foundation.framework" ] | 241 libs = [ "Foundation.framework" ] |
| 242 precompiled_header = "sdk/objc/WebRTC-Prefix.pch" | 242 precompiled_header = "sdk/objc/WebRTC-Prefix.pch" |
| 243 precompiled_source = "sdk/objc/WebRTC-Prefix.pch" | 243 precompiled_source = "sdk/objc/WebRTC-Prefix.pch" |
| 244 } | 244 } |
| 245 | 245 |
| 246 if (!is_ios || !build_with_chromium) { | 246 if (!build_with_chromium) { |
| 247 # Target to build all the WebRTC production code. |
| 247 rtc_static_library("webrtc") { | 248 rtc_static_library("webrtc") { |
| 249 # Only the root target should depend on this. |
| 250 visibility = [ "//:default" ] |
| 251 |
| 248 sources = [ | 252 sources = [ |
| 249 # TODO(kjellander): Remove this whenever possible. GN's static_library | 253 # TODO(kjellander): Remove this whenever possible. GN's static_library |
| 250 # target type requires at least one object to avoid errors linking. | 254 # target type requires at least one object to avoid errors linking. |
| 251 "build/no_op_function.cc", | 255 "build/no_op_function.cc", |
| 252 "call.h", | 256 "call.h", |
| 253 "config.h", | 257 "config.h", |
| 254 "transport.h", | 258 "transport.h", |
| 255 ] | 259 ] |
| 256 | 260 |
| 257 defines = [] | 261 defines = [] |
| 258 | 262 |
| 259 deps = [ | 263 deps = [ |
| 260 ":webrtc_common", | 264 ":webrtc_common", |
| 265 "api", |
| 261 "audio", | 266 "audio", |
| 262 "base:rtc_base", | 267 "base", |
| 263 "call", | 268 "call", |
| 264 "common_audio", | 269 "common_audio", |
| 265 "common_video", | 270 "common_video", |
| 271 "libjingle/xmllite", |
| 272 "libjingle/xmpp", |
| 273 "logging", |
| 274 "media", |
| 266 "modules", | 275 "modules", |
| 276 "modules/video_capture:video_capture_internal_impl", |
| 277 "p2p", |
| 278 "pc", |
| 279 "sdk", |
| 267 "stats", | 280 "stats", |
| 268 "system_wrappers", | 281 "system_wrappers", |
| 269 "tools", | |
| 270 "video", | 282 "video", |
| 271 "voice_engine", | 283 "voice_engine", |
| 272 ] | 284 ] |
| 273 | 285 |
| 274 if (build_with_chromium) { | |
| 275 deps += [ "modules/video_capture" ] | |
| 276 } else { | |
| 277 # TODO(kjellander): Enable for Chromium as well when bugs.webrtc.org/4256 | |
| 278 # is fixed. Right now it's not possible due to circular dependencies. | |
| 279 deps += [ | |
| 280 "api", | |
| 281 "media", | |
| 282 "p2p", | |
| 283 "pc", | |
| 284 ] | |
| 285 } | |
| 286 | |
| 287 if (rtc_enable_protobuf) { | 286 if (rtc_enable_protobuf) { |
| 288 defines += [ "ENABLE_RTC_EVENT_LOG" ] | 287 defines += [ "ENABLE_RTC_EVENT_LOG" ] |
| 289 deps += [ "logging:rtc_event_log_proto" ] | 288 deps += [ "logging:rtc_event_log_proto" ] |
| 290 } | 289 } |
| 291 } | 290 } |
| 291 |
| 292 if (rtc_include_tests) { |
| 293 # Target to build all the WebRTC tests (but not examples or tools). |
| 294 # Executable in order to get a target that links all WebRTC code. |
| 295 rtc_executable("webrtc_tests") { |
| 296 testonly = true |
| 297 |
| 298 # Only the root target should depend on this. |
| 299 visibility = [ "//:default" ] |
| 300 |
| 301 deps = [ |
| 302 ":rtc_unittests", |
| 303 ":video_engine_tests", |
| 304 ":webrtc_nonparallel_tests", |
| 305 ":webrtc_perf_tests", |
| 306 ":xmllite_xmpp_unittests", |
| 307 "api:peerconnection_unittests", |
| 308 "common_audio:common_audio_unittests", |
| 309 "common_video:common_video_unittests", |
| 310 "media:rtc_media_unittests", |
| 311 "modules:modules_tests", |
| 312 "modules:modules_unittests", |
| 313 "modules/audio_coding:audio_coding_tests", |
| 314 "modules/audio_processing:audio_processing_tests", |
| 315 "modules/rtp_rtcp:test_packet_masks_metrics", |
| 316 "modules/video_capture:video_capture_internal_impl", |
| 317 "pc:rtc_pc_unittests", |
| 318 "stats:rtc_stats_unittests", |
| 319 "system_wrappers:system_wrappers_unittests", |
| 320 "test", |
| 321 "video:screenshare_loopback", |
| 322 "video:video_loopback", |
| 323 "video:video_tests", |
| 324 "voice_engine:voe_cmd_test", |
| 325 "voice_engine:voice_engine_unittests", |
| 326 ] |
| 327 if (is_android) { |
| 328 deps += [ |
| 329 ":android_junit_tests", |
| 330 "api:libjingle_peerconnection_android_unittest", |
| 331 ] |
| 332 } else { |
| 333 deps += [ "modules/video_capture:video_capture_tests" ] |
| 334 } |
| 335 if (!is_ios) { |
| 336 deps += [ |
| 337 "modules/audio_device:audio_device_tests", |
| 338 "voice_engine:voe_auto_test", |
| 339 ] |
| 340 } |
| 341 } |
| 342 } |
| 292 } | 343 } |
| 293 | 344 |
| 294 rtc_static_library("webrtc_common") { | 345 rtc_static_library("webrtc_common") { |
| 295 sources = [ | 346 sources = [ |
| 296 "common_types.cc", | 347 "common_types.cc", |
| 297 "common_types.h", | 348 "common_types.h", |
| 298 "config.cc", | 349 "config.cc", |
| 299 "config.h", | 350 "config.h", |
| 300 "typedefs.h", | 351 "typedefs.h", |
| 301 "voice_engine_configurations.h", | 352 "voice_engine_configurations.h", |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 if (is_ios) { | 681 if (is_ios) { |
| 631 bundle_data("webrtc_perf_tests_bundle_data") { | 682 bundle_data("webrtc_perf_tests_bundle_data") { |
| 632 testonly = true | 683 testonly = true |
| 633 sources = webrtc_perf_tests_resources | 684 sources = webrtc_perf_tests_resources |
| 634 outputs = [ | 685 outputs = [ |
| 635 "{{bundle_resources_dir}}/{{source_file_part}}", | 686 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 636 ] | 687 ] |
| 637 } | 688 } |
| 638 } | 689 } |
| 639 | 690 |
| 640 rtc_executable("webrtc_tests") { | |
| 641 testonly = true | |
| 642 deps = [ | |
| 643 ":webrtc", | |
| 644 "modules/video_capture:video_capture_internal_impl", | |
| 645 "test", | |
| 646 ] | |
| 647 } | |
| 648 | |
| 649 rtc_test("webrtc_perf_tests") { | 691 rtc_test("webrtc_perf_tests") { |
| 650 testonly = true | 692 testonly = true |
| 651 configs += [ ":rtc_unittests_config" ] | 693 configs += [ ":rtc_unittests_config" ] |
| 652 | 694 |
| 653 sources = [ | 695 sources = [ |
| 654 "call/call_perf_tests.cc", | 696 "call/call_perf_tests.cc", |
| 655 "call/rampup_tests.cc", | 697 "call/rampup_tests.cc", |
| 656 "call/rampup_tests.h", | 698 "call/rampup_tests.h", |
| 657 "modules/audio_coding/neteq/test/neteq_performance_unittest.cc", | 699 "modules/audio_coding/neteq/test/neteq_performance_unittest.cc", |
| 658 "modules/audio_processing/audio_processing_performance_unittest.cc", | 700 "modules/audio_processing/audio_processing_performance_unittest.cc", |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 | 777 |
| 736 deps = [ | 778 deps = [ |
| 737 "//base:base_java_test_support", | 779 "//base:base_java_test_support", |
| 738 "//webrtc/api:libjingle_peerconnection_java", | 780 "//webrtc/api:libjingle_peerconnection_java", |
| 739 "//webrtc/api:libjingle_peerconnection_jni", | 781 "//webrtc/api:libjingle_peerconnection_jni", |
| 740 "//webrtc/examples:AppRTCMobile_javalib", | 782 "//webrtc/examples:AppRTCMobile_javalib", |
| 741 ] | 783 ] |
| 742 } | 784 } |
| 743 } | 785 } |
| 744 } | 786 } |
| OLD | NEW |