mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: Issue #3079 - only build the X11-specific GL code on X11 systems (1cd178a9)
This commit is contained in:
+12
-6
@@ -35,7 +35,6 @@ EXPORTS += [
|
||||
'GLContextEGL.h',
|
||||
'GLContextProvider.h',
|
||||
'GLContextProviderImpl.h',
|
||||
'GLContextProviderX11.h',
|
||||
'GLContextSymbols.h',
|
||||
'GLContextTypes.h',
|
||||
'GLDefs.h',
|
||||
@@ -58,8 +57,19 @@ EXPORTS += [
|
||||
if CONFIG['MOZ_X11']:
|
||||
EXPORTS += [
|
||||
'GLContextGLX.h',
|
||||
'GLContextProviderX11.h',
|
||||
'GLXLibrary.h',
|
||||
]
|
||||
# GLContextProviderX11.cpp falls back to GLX, so keep the GLX provider
|
||||
# available on all X11 builds even when EGL is the preferred provider.
|
||||
# GLContextProviderGLX.cpp must stay out of UNIFIED_SOURCES because it
|
||||
# includes X11 headers that cause conflicts there.
|
||||
SOURCES += [
|
||||
'GLContextProviderGLX.cpp',
|
||||
]
|
||||
UNIFIED_SOURCES += [
|
||||
'GLContextProviderX11.cpp',
|
||||
]
|
||||
|
||||
# Win32 is a special snowflake, for ANGLE
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||
@@ -108,11 +118,8 @@ elif gl_provider == 'EAGL':
|
||||
'GLContextEAGL.h',
|
||||
]
|
||||
|
||||
elif gl_provider == 'GLX':
|
||||
# GLContextProviderGLX.cpp needs to be kept out of UNIFIED_SOURCES
|
||||
# as it includes X11 headers which cause conflicts.
|
||||
if CONFIG['MOZ_X11'] and gl_provider == 'GLX':
|
||||
SOURCES += [
|
||||
'GLContextProviderGLX.cpp',
|
||||
'SharedSurfaceGLX.cpp'
|
||||
]
|
||||
EXPORTS += [
|
||||
@@ -128,7 +135,6 @@ UNIFIED_SOURCES += [
|
||||
'GLContext.cpp',
|
||||
'GLContextFeatures.cpp',
|
||||
'GLContextProviderEGL.cpp',
|
||||
'GLContextProviderX11.cpp',
|
||||
'GLContextTypes.cpp',
|
||||
'GLDebugUtils.cpp',
|
||||
'GLLibraryEGL.cpp',
|
||||
|
||||
Reference in New Issue
Block a user