From c128277f5600970e9d23bb2697a65551193e32e2 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Wed, 24 Nov 2021 08:18:31 +0100 Subject: [PATCH] add dcsctp build target to the toplevel build. This allows building dcsctp as a standalone library with a minimal set of dependencies. BUG=None Change-Id: I423c16cacf276068369980f0906abec76c65be5a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/236760 Reviewed-by: Victor Boivie Reviewed-by: Mirko Bonadei Reviewed-by: Florent Castelli Commit-Queue: Florent Castelli Cr-Commit-Position: refs/heads/main@{#36422} --- BUILD.gn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 3c592744a4..26301d6d48 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -720,6 +720,24 @@ if (rtc_include_tests && !build_with_chromium) { } } +# Build target for standalone dcsctp +rtc_static_library("dcsctp") { + # Only the root target should depend on this. + visibility = [ "//:default" ] + sources = [] + complete_static_lib = true + suppressed_configs += [ "//build/config/compiler:thin_archive" ] + defines = [] + deps = [ + "net/dcsctp/public:factory", + "net/dcsctp/public:socket", + "net/dcsctp/public:types", + "net/dcsctp/socket:dcsctp_socket", + "net/dcsctp/timer:task_queue_timeout", + "rtc_base", + ] +} + # ---- Poisons ---- # # Here is one empty dummy target for each poison type (needed because