-cleaned Meson build files and added some comments
This commit is contained in:
parent
ef12bce88b
commit
3e0ab40977
3 changed files with 11 additions and 1 deletions
|
|
@ -52,10 +52,13 @@ endif
|
|||
add_global_arguments(args, language : 'd')
|
||||
add_global_link_arguments(link_args, language : 'd')
|
||||
|
||||
versions = []
|
||||
|
||||
if host_machine.cpu_family() == 'wasm32'
|
||||
add_global_arguments('--output-bc', language : 'd') # Adding it in cross files breaks linker detection
|
||||
emcc = find_program('emcc')
|
||||
args_wasm = ['-O3', '-s', 'FORCE_FILESYSTEM=1', '-s', 'USE_SDL=2', '-s', 'USE_SDL_IMAGE=2', '-s', 'SDL2_IMAGE_FORMATS=["png"]', '-s', 'ERROR_ON_UNDEFINED_SYMBOLS=0', '-s', 'ALLOW_MEMORY_GROWTH=1', '-s', 'WASM_MEM_MAX=1024MB', '-s', 'MALLOC=dlmalloc', '-s', 'WASM=1', '--shell-file', '../demos/emscripten_multi_shell.html', '-s', 'DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1']
|
||||
versions = ['ECSEmscripten']
|
||||
endif
|
||||
|
||||
|
||||
|
|
@ -64,6 +67,7 @@ threads_dep = dependency('threads')
|
|||
|
||||
ecs_lib = library('decs', src,
|
||||
include_directories : [inc],
|
||||
d_module_versions : versions
|
||||
)
|
||||
|
||||
decs_dep = declare_dependency(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue