bubel-ecs/meson.build
Mergul 015783bf5c -remove '-defaultlib' from dub.json
-start working with WebAssembly
-modified .gitignore
-added meson build file (WIP)
2019-11-02 18:51:03 +01:00

44 lines
882 B
Meson

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)