Issue #2301 - Make Gecko Media Plugins optional when not building EME or WebRTC

Co-authored-by: Moonchild <moonchild@palemoon.org>
This commit is contained in:
Matheus Marinho 2023-08-31 12:07:34 -03:00 • committed by roytam1
commit 9e7d1492e6
54 changed files with 314 additions and 30 deletions

View file

@ -2061,6 +2061,7 @@ MOZ_VORBIS=
MOZ_TREMOR=
MOZ_SAMPLE_TYPE_FLOAT32=
MOZ_SAMPLE_TYPE_S16=
MOZ_GMP=
MOZ_WEBRTC=
MOZ_PEERCONNECTION=
MOZ_SRTP=
@ -2796,6 +2797,24 @@ else
AC_SUBST(MOZ_SAMPLE_TYPE_FLOAT32)
fi
dnl ========================================================
dnl = Enable Gecko Media Plugins
dnl ========================================================
if test -n "$MOZ_EME"; then
MOZ_GMP=1
fi
if test -n "$MOZ_WEBRTC"; then
MOZ_GMP=1
fi
if test -n "$MOZ_GMP"; then
AC_DEFINE(MOZ_GMP)
fi
AC_SUBST(MOZ_GMP)
dnl ========================================================
dnl = Enable Raw Codecs
dnl ========================================================