mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: add stubs for WebGL
This commit is contained in:
9
wscript
9
wscript
@@ -123,7 +123,7 @@ REFDLLS = [
|
||||
RefDll('gles1', False, 'NANOGL'),
|
||||
RefDll('gles2', False, 'GLWES'),
|
||||
RefDll('gl4es', False),
|
||||
RefDll('gles3compat', False),
|
||||
RefDll('gles3compat', False, 'GLES3COMPAT'),
|
||||
RefDll('null', False),
|
||||
]
|
||||
|
||||
@@ -191,6 +191,9 @@ def options(opt):
|
||||
grp.add_option('--enable-fuzzer', action = 'store_true', dest = 'ENABLE_FUZZER', default = False,
|
||||
help = 'enable building libFuzzer runner [default: %(default)s]' )
|
||||
|
||||
grp.add_option('--enable-emscripten', action = 'store_true', dest = 'ENABLE_EMSCRIPTEN', default = False,
|
||||
help = 'enable emscripten support [default: %(default)s]' )
|
||||
|
||||
for i in SUBDIRS:
|
||||
if not i.is_exists(opt):
|
||||
continue
|
||||
@@ -252,6 +255,10 @@ def configure(conf):
|
||||
conf.options.GLES3COMPAT = True
|
||||
conf.options.GL = False
|
||||
|
||||
if conf.options.ENABLE_EMSCRIPTEN:
|
||||
conf.options.GLES3COMPAT = True
|
||||
conf.options.GL = False
|
||||
|
||||
# psvita needs -fPIC set manually and static builds are incompatible with -fPIC
|
||||
enforce_pic = conf.env.DEST_OS != 'psvita' and not conf.env.STATIC_LINKING
|
||||
conf.check_pic(enforce_pic)
|
||||
|
||||
Reference in New Issue
Block a user