-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
33 lines (27 loc) · 869 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
project(
'wolox',
'c',
version : '0.1.0',
license : 'MIT',
default_options: ['default_library=static', 'c_std=c99','warning_level=3'],
)
cc = meson.get_compiler('c')
if cc.get_id() == 'msvc'
add_global_arguments('/D_CRT_SECURE_NO_WARNINGS', language : 'c')
endif
sdl2 = dependency('sdl2')
stc = dependency('stc')
enet = dependency('libenet')
flecs = dependency('flecs')
nuklear = dependency('nuklear')
chipmunk2d = dependency('chipmunk2d')
cmocka = dependency('cmocka')
m_dep = cc.find_library('m', required : false)
source_files = [
'src/main.c',
]
executable('wolox', sources: source_files,
# win_subsystem: 'windows',
include_directories: include_directories(['src']),
dependencies: [sdl2, flecs, nuklear, chipmunk2d, enet, stc, m_dep])
test('test1', executable('test1', 'test/test_1.c', dependencies: [cmocka]))