mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
ref_gl: add an option to disable ref_gl building
This commit is contained in:
parent
3c1c13850e
commit
968994bba5
@ -18,6 +18,9 @@ def options(opt):
|
|||||||
|
|
||||||
grp.add_option('--enable-gles2', action='store_true', dest='GLWES',
|
grp.add_option('--enable-gles2', action='store_true', dest='GLWES',
|
||||||
help = 'enable gles2 renderer by linking gl-wes-v2 statically(put source to ref_gl directory)')
|
help = 'enable gles2 renderer by linking gl-wes-v2 statically(put source to ref_gl directory)')
|
||||||
|
|
||||||
|
grp.add_option('--disable-gl', action='store_false', dest='GL', default=True,
|
||||||
|
help = 'disable building OpenGL renderer(default: False)')
|
||||||
|
|
||||||
# stub
|
# stub
|
||||||
return
|
return
|
||||||
@ -66,16 +69,17 @@ def build(bld):
|
|||||||
if glstatic: return ['XASH_GL_STATIC']
|
if glstatic: return ['XASH_GL_STATIC']
|
||||||
else: return []
|
else: return []
|
||||||
|
|
||||||
bld.shlib(
|
if bld.env.GL:
|
||||||
source = source,
|
bld.shlib(
|
||||||
target = 'ref_gl',
|
source = source,
|
||||||
features = 'c',
|
target = 'ref_gl',
|
||||||
includes = includes,
|
features = 'c',
|
||||||
use = libs + link_gl(bld.env.GL_STATIC),
|
includes = includes,
|
||||||
defines = static_gl(bld.env.GL_STATIC),
|
use = libs + link_gl(bld.env.GL_STATIC),
|
||||||
install_path = bld.env.LIBDIR,
|
defines = static_gl(bld.env.GL_STATIC),
|
||||||
subsystem = bld.env.MSVC_SUBSYSTEM
|
install_path = bld.env.LIBDIR,
|
||||||
)
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
||||||
|
)
|
||||||
|
|
||||||
if bld.env.NANOGL:
|
if bld.env.NANOGL:
|
||||||
bld.add_subproject('nanogl')
|
bld.add_subproject('nanogl')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user