[OpenGL] Check if X11 is enabled

This commit is contained in:
jackun 2020-04-01 11:46:08 +03:00
parent 0373383581
commit e750173b51
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

View File

@ -56,7 +56,6 @@ vklayer_files = files(
opengl_files = files( opengl_files = files(
'gl/imgui_hud.cpp', 'gl/imgui_hud.cpp',
'gl/inject_glx.cpp',
'gl/real_dlsym.cpp', 'gl/real_dlsym.cpp',
'gl/imgui_impl_opengl3.cpp', 'gl/imgui_impl_opengl3.cpp',
'loaders/loader_gl.cpp', 'loaders/loader_gl.cpp',
@ -71,6 +70,14 @@ if get_option('with_xnvctrl').enabled()
) )
endif endif
if get_option('with_x11').enabled()
pre_args += '-DHAVE_X11'
opengl_files += files(
'gl/inject_glx.cpp',
# 'loaders/loader_glx.cpp',
)
endif
pre_args += '-DHOOK_DLSYM' pre_args += '-DHOOK_DLSYM'
inc_opengl = include_directories('gl/gl3w') inc_opengl = include_directories('gl/gl3w')