build: set up useful env vars for meson devenv

Makes Taisei load resources from the source tree, making live reload
work; enables OpenGL debugging by default; works around ASan stack use
after return false positives.
This commit is contained in:
Andrei Alexeyev 2022-12-16 08:03:37 +01:00
parent 1ddc58b84a
commit 4c659ba195
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -577,6 +577,13 @@ foreach bindist_target : bindist_targets
)
endforeach
meson.add_devenv({
'TAISEI_RES_PATH': meson.current_source_dir() / 'resources',
'TAISEI_GL_DEBUG': '1',
# TODO: Add support for this in libkoishi
'ASAN_OPTIONS': 'detect_stack_use_after_return=false',
})
summary({
'System type' : systype,
'Build type' : get_option('buildtype'),