-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
39 lines (33 loc) · 768 Bytes
/
meson.build
File metadata and controls
39 lines (33 loc) · 768 Bytes
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
39
project(
'neosent',
'c',
default_options: ['c_std=c11', 'b_ndebug=if-release'],
version: '1.2',
)
cc = meson.get_compiler('c')
proj_version = meson.project_version()
add_project_arguments(f'-DNS_VERSION="@proj_version@"', language: 'c')
if get_option('avif_image_support')
add_project_arguments('-DNS_AVIF_SUPPORT', language: 'c')
endif
deps = [
dependency('sdl2'),
dependency('SDL2_image'),
dependency('SDL2_ttf'),
cc.find_library('m'),
]
cwalk_include = include_directories('vendor/cwalk/include')
executable(
'nsent',
[
'src/main.c',
'src/parser.c',
'src/render.c',
'src/utils.c',
'src/vector.c',
'src/hashmap.c',
'vendor/cwalk/src/cwalk.c',
],
dependencies: deps,
include_directories: cwalk_include,
)