sctp: Reorganize build targets
Bug: webrtc:12614
Change-Id: I2d276139746bb8cafdd5c50fe4595e60a6b1c7fc
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215234
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33745}
diff --git a/webrtc.gni b/webrtc.gni
index 6c80d72..574df1f 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -233,7 +233,6 @@
rtc_libvpx_build_vp9 = !build_with_mozilla
rtc_build_opus = !build_with_mozilla
rtc_build_ssl = !build_with_mozilla
- rtc_build_usrsctp = !build_with_mozilla
# Enable libevent task queues on platforms that support it.
if (is_win || is_mac || is_ios || is_nacl || is_fuchsia ||
@@ -290,6 +289,11 @@
rtc_exclude_transient_suppressor = false
}
+declare_args() {
+ # Enable the usrsctp backend for DataChannels and related unittests
+ rtc_build_usrsctp = !build_with_mozilla && rtc_enable_sctp
+}
+
# Make it possible to provide custom locations for some libraries (move these
# up into declare_args should we need to actually use them for the GN build).
rtc_libvpx_dir = "//third_party/libvpx"