Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit f310fe6

Browse files
taste1981jianjunz
authored andcommitted
Link to static gpra library only on Windows. (#127)
1 parent fc354ab commit f310fe6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

modules/congestion_controller/BUILD.gn

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ rtc_library("congestion_controller") {
3131
if (owt_use_gpra) {
3232
# use Intel Goodput Rate Adapatation BWE
3333
include_dirs = [ owt_gpra_header_root ]
34-
libs = [ "gpra_lib.lib" ]
35-
lib_dirs = [ owt_gpra_lib_root ]
34+
if (is_win && owt_gpra_lib_root != "") {
35+
libs = [ "gpra_lib.lib" ]
36+
lib_dirs = [ owt_gpra_lib_root ]
37+
}
3638
defines += [ "INTEL_GPRA" ]
3739
}
3840

modules/congestion_controller/goog_cc/BUILD.gn

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ rtc_library("goog_cc") {
2828
if (owt_use_gpra) {
2929
# use Intel Goodput Rate Adapatation BWE
3030
include_dirs = [ owt_gpra_header_root ]
31-
libs = [ "gpra_lib.lib" ]
32-
lib_dirs = [ owt_gpra_lib_root ]
31+
if (is_win && owt_gpra_lib_root != "") {
32+
libs = [ "gpra_lib.lib" ]
33+
lib_dirs = [ owt_gpra_lib_root ]
34+
}
3335
defines += [ "INTEL_GPRA" ]
3436
}
3537

0 commit comments

Comments
 (0)