build: add options to configure libsrtp for boringssl or other libraries
Depends on
https://webrtc-review.googlesource.com/c/src/+/359928
BUG=webrtc:42234521,webrtc:42224104
Change-Id: I0d6335aa5fb3f090c781bed234ed34d6c98ec299
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/359928
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@meta.com>
Cr-Commit-Position: refs/heads/main@{#42857}
diff --git a/rtc_base/BUILD.gn b/rtc_base/BUILD.gn
index 4743a46..4e06cdd 100644
--- a/rtc_base/BUILD.gn
+++ b/rtc_base/BUILD.gn
@@ -13,18 +13,6 @@
import("//build/config/android/rules.gni")
}
-if (!rtc_build_ssl) {
- config("external_ssl_library") {
- if (rtc_ssl_root != "") {
- include_dirs = [ rtc_ssl_root ]
- }
- libs = [
- "crypto",
- "ssl",
- ]
- }
-}
-
rtc_source_set("protobuf_utils") {
sources = [ "protobuf_utils.h" ]
if (rtc_enable_protobuf) {
@@ -1504,7 +1492,7 @@
if (rtc_build_ssl) {
deps += [ "//third_party/boringssl" ]
} else {
- configs += [ ":external_ssl_library" ]
+ configs += [ "..:external_ssl_library" ]
}
}
@@ -1526,7 +1514,7 @@
if (rtc_build_ssl) {
deps += [ "//third_party/boringssl" ]
} else {
- configs += [ ":external_ssl_library" ]
+ configs += [ "..:external_ssl_library" ]
}
}
@@ -1591,7 +1579,7 @@
]
deps += [ ":crypto_random" ]
- configs += [ ":external_ssl_library" ]
+ configs += [ "..:external_ssl_library" ]
}
if (build_with_chromium) {
@@ -1653,7 +1641,7 @@
if (rtc_build_ssl) {
deps += [ "//third_party/boringssl" ]
} else {
- configs += [ ":external_ssl_library" ]
+ configs += [ "..:external_ssl_library" ]
}
}
@@ -2211,7 +2199,7 @@
if (rtc_build_ssl) {
deps += [ "//third_party/boringssl" ]
} else {
- configs += [ ":external_ssl_library" ]
+ configs += [ "..:external_ssl_library" ]
}
}
}