summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMatheus Marinho <matheus4551@hotmail.com>2023-08-31 12:07:34 -0300
committerMatheus Marinho <matheus4551@hotmail.com>2023-08-31 17:04:44 -0300
commitc94c303447e0a183685c0aea8a54f1e90efeb68b (patch)
treec3126d2de533755bf93cc8fc4816379b33dcbebf /python
parent7a4b8501505e9ed433db0b5a675bc38398b74bb8 (diff)
downloaduxp-c94c303447e0a183685c0aea8a54f1e90efeb68b.tar.gz
Make Gecko Media Plugins optional when not building EME or WebRTC
Co-authored-by: Moonchild <moonchild@palemoon.org>
Diffstat (limited to 'python')
-rw-r--r--python/mozbuild/mozbuild/mach_commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
index a423692c75..3a81b03be2 100644
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -946,6 +946,7 @@ class GTestCommands(MachCommandBase):
# https://code.google.com/p/googletest/wiki/AdvancedGuide#Running_Test_Programs:_Advanced_Options
gtest_env = {b'GTEST_FILTER': gtest_filter}
+#ifdef MOZ_GMP
# Note: we must normalize the path here so that gtest on Windows sees
# a MOZ_GMP_PATH which has only Windows dir seperators, because
# nsILocalFile cannot open the paths with non-Windows dir seperators.
@@ -955,6 +956,7 @@ class GTestCommands(MachCommandBase):
os.path.join(xre_path, p, "1.0")
for p in ('gmp-fake', 'gmp-fakeopenh264')
)
+#endif
gtest_env[b"MOZ_RUN_GTEST"] = b"True"