Allow chromiumcontent to depend on webrtc_common

This commit is contained in:
Aleksei Kuzmin 2018-03-27 19:55:17 +03:00
Родитель 1deef0c1fa
Коммит aaf2374580
2 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -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,