Building for web using meson

This commit is contained in:
mmcomando 2021-02-25 21:59:20 +01:00
parent 66b5807368
commit 73c3e48c56
6 changed files with 74 additions and 11 deletions

View file

@ -50,11 +50,15 @@ endif
add_global_arguments(args, language : 'd')
add_global_link_arguments(link_args, language : 'd')
if host_machine.cpu_family() == 'wasm32'
add_global_arguments('--output-bc', language : 'd') # Adding it in cross files breaks linker detection
endif
# Dependencies
threads_dep = dependency('threads')
ecs_lib = library('decs',
src,
ecs_lib = library('decs', src,
include_directories : [inc],
)