ref: gl: add stubs for WebGL

This commit is contained in:
yohimik
2025-06-03 20:10:33 +04:00
committed by Alibek Omarov
parent 582fe9a2fc
commit 2234f91c38
2 changed files with 72 additions and 1 deletions

View File

@@ -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)