-remove '-defaultlib' from dub.json

-start working with WebAssembly
-modified .gitignore
-added meson build file (WIP)
This commit is contained in:
Mergul 2019-11-02 18:51:03 +01:00
parent 7fa41f7671
commit 015783bf5c
9 changed files with 145 additions and 17 deletions

44
meson.build Normal file
View file

@ -0,0 +1,44 @@
project('DECS', 'd')
src = [
'source/ecs/attributes.d',
'source/ecs/block_allocator.d',
'source/ecs/core.d',
'source/ecs/entity.d',
'source/ecs/events.d',
'source/ecs/hash_map.d',
'source/ecs/id_manager.d',
'source/ecs/manager.d',
'source/ecs/simple_vector.d',
'source/ecs/simple_vector.d',
'source/ecs/std.d',
'source/ecs/system.d',
'source/ecs/traits.d',
'source/ecs/vector.d',
'source/ecs/package.d'
]
tests_src = [
'tests/tests.d'
]
betterC_opt = get_option('betterC')
comp = meson.get_compiler('d')
comp_id = comp.get_id()
args = []
link_args = []
if betterC_opt
args += '-betterC'
link_args += '-betterC'
endif
inc = include_directories('source/')
tests_inc = include_directories('source/')
executable('ecs', [tests_src, src], include_directories : [tests_inc, inc], d_args: args, link_args: link_args)