Support compiling demos in wasm build
This commit is contained in:
parent
d1c48e4c5f
commit
3eb4a40c39
11 changed files with 139 additions and 43 deletions
|
|
@ -3,12 +3,17 @@ project('bindbc-loader', 'd', version : '0.3.2', default_options: ['default_libr
|
|||
# Files
|
||||
src = files(
|
||||
'source/bindbc/loader/package.d',
|
||||
'source/bindbc/loader/sharedlib.d',
|
||||
# 'source/bindbc/loader/sharedlib.d', # Not implemented for wasm
|
||||
'source/bindbc/loader/system.d',
|
||||
)
|
||||
|
||||
inc = include_directories('source')
|
||||
|
||||
if host_machine.cpu_family() != 'wasm32'
|
||||
src = files(
|
||||
'source/bindbc/loader/sharedlib.d',
|
||||
)
|
||||
endif
|
||||
# Dependencies
|
||||
lib = library('bindbc-loader', src,
|
||||
include_directories : [inc],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue