X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fwscript;h=323a19a2b4afb2c297e19fc84e60dedc87e4fa56;hb=c1d3751723c5413eea4b4602ec5ecff5c961038d;hp=8430b58441708ceae68dbc4c249dfb5d7901ad5c;hpb=f9db80a8e61cedd001d10b555d0798798a773668;p=dcpomatic.git diff --git a/src/wx/wscript b/src/wx/wscript index 8430b5844..323a19a2b 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -180,6 +180,9 @@ def configure(conf): uselib_store='WXWIDGETS', mandatory=True) + if conf.env.TARGET_LINUX: + conf.env.append_value('CXXFLAGS', ['-DGLX_GLXEXT_PROTOTYPES']) + if conf.options.static_wxwidgets: # wx-config returns its static libraries as full paths, without -l prefixes, which confuses # check_cfg(). It puts the static libraries into LINKFLAGS_WXWIDGETS, so fish them out. @@ -254,6 +257,22 @@ def configure(conf): conf.env.STLIB_GL = 'gl' conf.env.STLIB_GLU = 'glu' + if conf.env.TARGET_LINUX: + conf.check_cxx(fragment=""" + #include + #include + #include + #include + int main() { + glXSwapIntervalEXT (0, 0, 1); + return 0; + } + """, + msg='Checking for glXSwapIntervalEXT', + okmsg='yes', + uselib='GL WXWIDGETS', + define_name='DCPOMATIC_HAVE_GLX_SWAP_INTERVAL_EXT', + mandatory=False) def build(bld):