Allow chromiumcontent to depend on webrtc_common
This commit is contained in:
Родитель
1deef0c1fa
Коммит
aaf2374580
|
@ -21,3 +21,16 @@ patches:
|
|||
owners: ajmacd
|
||||
file: fix_jitter_buffer_with_opus_dtx.patch
|
||||
description: "https://webrtc-review.googlesource.com/c/src/+/18181"
|
||||
-
|
||||
owners: alexeykuzmin
|
||||
file: allow_chromiumcontent_to_depend_on_webrtc_common.patch
|
||||
description: |
|
||||
ERROR at //chromiumcontent/BUILD.gn:152:3: Dependency not allowed.
|
||||
static_library("webrtc_common") {
|
||||
^--------------------------------
|
||||
The item //chromiumcontent:webrtc_common
|
||||
can not depend on //third_party/webrtc:webrtc_common
|
||||
because it is not in //third_party/webrtc:webrtc_common's visibility list: [
|
||||
//third_party/webrtc/*
|
||||
//third_party/webrtc_overrides/*
|
||||
]
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/webrtc.gni b/webrtc.gni
|
||||
index f32e490f7..6bc8d1205 100644
|
||||
--- a/webrtc.gni
|
||||
+++ b/webrtc.gni
|
||||
@@ -274,6 +274,10 @@ if (build_with_chromium) {
|
||||
webrtc_default_visibility += [ webrtc_root + "/../webrtc_overrides/*" ]
|
||||
}
|
||||
|
||||
+if (is_electron_build) {
|
||||
+ webrtc_default_visibility += [ "//libchromiumcontent/chromiumcontent:webrtc_common" ]
|
||||
+}
|
||||
+
|
||||
template("rtc_test") {
|
||||
test(target_name) {
|
||||
forward_variables_from(invoker,
|
Загрузка…
Ссылка в новой задаче