2020-07-08 15:02:27 +02:00
|
|
|
diff --git a/BUILD.gn b/BUILD.gn
|
|
|
|
index a62632e2c3f..ea2a9325a9c 100644
|
|
|
|
--- a/BUILD.gn
|
|
|
|
+++ b/BUILD.gn
|
|
|
|
@@ -11,6 +11,9 @@ assert(!is_ios, "This is not used on iOS, don't drag it in unintentionally")
|
|
|
|
config("system_libjpeg_config") {
|
|
|
|
libs = [ "jpeg" ]
|
|
|
|
defines = [ "USE_SYSTEM_LIBJPEG" ]
|
|
|
|
+ if (system_libjpeg_root != "") {
|
|
|
|
+ include_dirs = [ system_libjpeg_root, system_libjpeg_root + "/src" ]
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
config("libjpeg_turbo_config") {
|
|
|
|
diff --git a/libjpeg.gni b/libjpeg.gni
|
|
|
|
index 049348b79bd..039385c9739 100644
|
|
|
|
--- a/libjpeg.gni
|
|
|
|
+++ b/libjpeg.gni
|
|
|
|
@@ -6,6 +6,9 @@ declare_args() {
|
|
|
|
# Uses system libjpeg. If true, overrides use_libjpeg_turbo.
|
|
|
|
use_system_libjpeg = false
|
|
|
|
|
|
|
|
+ # Used to specify an external libjpeg root path
|
|
|
|
+ system_libjpeg_root = ""
|
|
|
|
+
|
|
|
|
# Uses libjpeg_turbo as the jpeg implementation. Has no effect if
|
|
|
|
# use_system_libjpeg is set.
|
|
|
|
use_libjpeg_turbo = true
|
2020-05-13 16:00:13 +02:00
|
|
|
diff --git a/usrsctp/BUILD.gn b/usrsctp/BUILD.gn
|
2020-07-08 15:02:27 +02:00
|
|
|
index e8a5b1f9d41..1b52f28141c 100644
|
2020-05-13 16:00:13 +02:00
|
|
|
--- a/usrsctp/BUILD.gn
|
|
|
|
+++ b/usrsctp/BUILD.gn
|
|
|
|
@@ -3,6 +3,7 @@
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
import("//build/toolchain/toolchain.gni")
|
|
|
|
+import("//webrtc.gni")
|
|
|
|
|
|
|
|
config("usrsctp_config") {
|
|
|
|
include_dirs = [
|
2020-07-08 15:02:27 +02:00
|
|
|
@@ -145,5 +146,9 @@ static_library("usrsctp") {
|
2020-05-13 16:00:13 +02:00
|
|
|
if (is_fuchsia) {
|
|
|
|
defines += [ "__Userspace_os_Fuchsia" ]
|
|
|
|
}
|
|
|
|
- deps = [ "//third_party/boringssl" ]
|
|
|
|
+ if (rtc_build_ssl) {
|
|
|
|
+ deps += [ "//third_party/boringssl" ]
|
|
|
|
+ } else {
|
|
|
|
+ configs += [ "//rtc_base:external_ssl_library" ]
|
|
|
|
+ }
|
|
|
|
}
|