Add run-target serve-locally to emscripten builds

Invoke with:

	ninja serve-locally

Also fix emscripten builds on some systems where emscripten suddenly needs USE_PTHREADS (?????). Also fix JS-unsafe app_exe values breaking builds.
This commit is contained in:
Tamás Bálint Misius
2025-05-10 15:17:48 +02:00
parent ad9a63128b
commit 0096d27d25
3 changed files with 147 additions and 4 deletions

View File

@@ -115,6 +115,16 @@ elif host_platform == 'linux'
output: 'appdata.xml',
configuration: conf_data,
)
elif host_platform == 'emscripten'
servewasm_conf_data = configuration_data()
servewasm_conf_data.set('SERVER', server)
servewasm_conf_data.set('APP_EXE', app_exe)
servewasm_conf_data.set('APP_EXE_JSSAFE', app_exe_jssafe)
serve_wasm_py = configure_file(
input: 'serve-wasm.template.py',
output: 'serve-wasm.py',
configuration: servewasm_conf_data,
)
endif
embedded_files += [