mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
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:
@@ -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 += [
|
||||
|
Reference in New Issue
Block a user