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

Commit 5a32728

Browse files
authored
Update GN files to support build OWT SDK as a shared lib. (#176)
1 parent c790a7c commit 5a32728

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

BUILD.gn

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,20 @@ if (!build_with_chromium) {
6868
"pc:rtc_pc_unittests",
6969
"pc:slow_peer_connection_unittests",
7070
"pc:svc_tests",
71-
"rtc_tools:rtp_generator",
72-
"rtc_tools:video_replay",
7371
"stats:rtc_stats_unittests",
7472
"system_wrappers:system_wrappers_unittests",
7573
"test",
7674
"video:screenshare_loopback",
7775
"video:sv_loopback",
7876
"video:video_loopback",
7977
]
78+
79+
if (!is_component_build) {
80+
deps += [
81+
"rtc_tools:rtp_generator",
82+
"rtc_tools:video_replay",
83+
]
84+
}
8085
if (!is_asan) {
8186
# Do not build :webrtc_lib_link_test because lld complains on some OS
8287
# (e.g. when target_os = "mac") when is_asan=true. For more details,
@@ -484,8 +489,8 @@ if (!build_with_chromium) {
484489
rtc_static_library("webrtc") {
485490
# Only the root target and the test should depend on this.
486491
visibility = [
487-
".:default",
488492
":webrtc_lib_link_test",
493+
".:default",
489494
]
490495

491496
if (build_with_owt) {

webrtc.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import("//build/config/sysroot.gni")
1414
import("//build_overrides/build.gni")
1515
import("//build_overrides/ssl/ssl.gni")
1616

17-
if (!build_with_chromium && is_component_build) {
17+
if (!build_with_chromium && !build_with_owt && is_component_build) {
1818
print("The Gn argument `is_component_build` is currently " +
1919
"ignored for WebRTC builds.")
2020
print("Component builds are supported by Chromium and the argument " +

0 commit comments

Comments
 (0)