-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
38 lines (34 loc) · 922 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
34
35
36
37
38
project('gunslinger', 'c')
sdl2_dep = dependency('sdl2')
sdl2_ttf_dep = dependency('SDL2_ttf')
sdl2_image_dep = dependency('SDL2_image')
sdl2_mixer_dep = dependency('SDL2_mixer')
physfs_dep = dependency('physfs')
# weird dance meson requires for libm
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
src = [
'anim.c',
'common.c',
'effect.c',
'entity.c',
'main.c',
'settings.c',
'sprite.c',
'stage.c',
'ui.c',
'3rdparty/asprintf/asprintf.c',
'3rdparty/asprintf/vasprintf-c99.c',
'3rdparty/parson/parson.c',
'3rdparty/physicsfs/extras/physfsrwops.c',
'containers/vector.c',
'states/credits_state.c',
'states/game_state.c',
'states/menu_state.c',
'drivers/vid_sdl.c',
]
gunslinger_exe = executable(
'gunslinger',
src,
dependencies: [sdl2_dep, sdl2_ttf_dep, sdl2_image_dep, sdl2_mixer_dep, physfs_dep, m_dep],
)