summaryrefslogtreecommitdiff
path: root/xpcom
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 /xpcom
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 'xpcom')
-rw-r--r--xpcom/build/moz.build4
-rw-r--r--xpcom/build/nsXULAppAPI.h11
2 files changed, 14 insertions, 1 deletions
diff --git a/xpcom/build/moz.build b/xpcom/build/moz.build
index 93e89e537b..8a8649cd6c 100644
--- a/xpcom/build/moz.build
+++ b/xpcom/build/moz.build
@@ -9,10 +9,12 @@ EXPORTS += [
'nsXPCOMCIDInternal.h',
'nsXREAppData.h',
'nsXULAppAPI.h',
- 'XREChildData.h',
'xrecore.h',
]
+if CONFIG['MOZ_GMP']:
+ EXPORTS += ['XREChildData.h',]
+
EXPORTS.mozilla += [
'FileLocation.h',
'IOInterposer.h',
diff --git a/xpcom/build/nsXULAppAPI.h b/xpcom/build/nsXULAppAPI.h
index 56d2496b26..286d5c7729 100644
--- a/xpcom/build/nsXULAppAPI.h
+++ b/xpcom/build/nsXULAppAPI.h
@@ -18,7 +18,10 @@
#include "mozilla/Assertions.h"
#include "mozilla/Vector.h"
#include "mozilla/TimeStamp.h"
+
+#ifdef MOZ_GMP
#include "XREChildData.h"
+#endif
/**
* A directory service key which provides the platform-correct "application
@@ -424,16 +427,24 @@ XRE_API(const char*,
XRE_API(void,
XRE_SetProcessType, (const char* aProcessTypeString))
+#ifdef MOZ_GMP
namespace mozilla {
namespace gmp {
class GMPLoader;
} // namespace gmp
} // namespace mozilla
+#endif
+#ifdef MOZ_GMP
XRE_API(nsresult,
XRE_InitChildProcess, (int aArgc,
char* aArgv[],
const XREChildData* aChildData))
+#else
+XRE_API(nsresult,
+ XRE_InitChildProcess, (int aArgc,
+ char* aArgv[]))
+#endif
XRE_API(GeckoProcessType,
XRE_GetProcessType, ())