1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
From: Michael Froman <mfroman@mozilla.com>
Date: Tue, 1 Oct 2024 21:05:00 +0000
Subject: Bug 1921706 - use relative paths on deps in a few places to avoid
future issues. r=ng,webrtc-reviewers DONTBUILD
Note: this produces no changes in the generated moz.build files.
Differential Revision: https://phabricator.services.mozilla.com/D224070
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/bbec1b95ddb5e00967a0fb002f54f8f24336b904
---
modules/audio_coding/BUILD.gn | 2 +-
modules/portal/BUILD.gn | 8 ++++----
modules/video_capture/BUILD.gn | 2 +-
sdk/BUILD.gn | 14 ++++++++++++++
test/BUILD.gn | 6 ++++++
5 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/modules/audio_coding/BUILD.gn b/modules/audio_coding/BUILD.gn
index a3fc75e091..64534fa56c 100644
--- a/modules/audio_coding/BUILD.gn
+++ b/modules/audio_coding/BUILD.gn
@@ -357,7 +357,7 @@ rtc_library("webrtc_opus_wrapper") {
deps += [ rtc_opus_dir ]
public_configs = [ "//third_party/opus:opus_config" ]
} else if (build_with_mozilla) {
- public_configs = [ "//third_party/opus:opus_config" ]
+ public_configs = [ "../../third_party/opus:opus_config" ]
}
}
diff --git a/modules/portal/BUILD.gn b/modules/portal/BUILD.gn
index e8367393a3..a693604389 100644
--- a/modules/portal/BUILD.gn
+++ b/modules/portal/BUILD.gn
@@ -139,10 +139,10 @@ if (!build_with_mozilla) {
deps -= [ ":pipewire_stubs" ]
defines -= [ "WEBRTC_DLOPEN_PIPEWIRE" ]
public_deps = [
- "//third_party/pipewire",
- "//third_party/drm",
- "//third_party/gbm",
- "//third_party/libepoxy"
+ "../../third_party/pipewire",
+ "../../third_party/drm",
+ "../../third_party/gbm",
+ "../../third_party/libepoxy"
]
}
}
diff --git a/modules/video_capture/BUILD.gn b/modules/video_capture/BUILD.gn
index 80cfd15cfd..b7acd84839 100644
--- a/modules/video_capture/BUILD.gn
+++ b/modules/video_capture/BUILD.gn
@@ -111,7 +111,7 @@ if (!build_with_chromium || is_linux || is_chromeos) {
]
if (build_with_mozilla) {
configs -= [ "../portal:pipewire_base" ]
- public_deps = [ "//third_party/pipewire" ]
+ public_deps = [ "../../third_party/pipewire" ]
}
}
}
diff --git a/sdk/BUILD.gn b/sdk/BUILD.gn
index 627e59cfed..185af67fa6 100644
--- a/sdk/BUILD.gn
+++ b/sdk/BUILD.gn
@@ -600,6 +600,20 @@ if (is_ios || is_mac) {
"CoreGraphics.framework",
"CoreVideo.framework",
]
+ if (build_with_mozilla) {
+ deps -= [
+ "//api/video:video_frame",
+ "//api/video:video_rtp_headers",
+ "//common_video",
+ "//rtc_base:checks",
+ ]
+ deps += [
+ "../api/video:video_frame",
+ "../api/video:video_rtp_headers",
+ "../common_video",
+ "../rtc_base:checks",
+ ]
+ }
}
if (!build_with_mozilla) {
diff --git a/test/BUILD.gn b/test/BUILD.gn
index 325019d08e..649f762fb8 100644
--- a/test/BUILD.gn
+++ b/test/BUILD.gn
@@ -486,6 +486,12 @@ rtc_source_set("test_support") {
"//testing/gmock",
"//testing/gtest",
]
+ if (build_with_mozilla) {
+ all_dependent_configs -= [
+ "//third_party/googletest:gmock_config",
+ "//third_party/googletest:gtest_config",
+ ]
+ }
}
rtc_library("fixed_fps_video_frame_writer_adapter") {
|