-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
51 lines (40 loc) · 1.21 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
project(
'zennist', 'c', 'cpp',
version: '0.1.2-dev',
license: 'MIT',
meson_version: '>= 0.58.0',
default_options: ['warning_level=3', 'werror=true', 'optimization=2', 'c_std=gnu11', 'cpp_std=gnu++17'],
)
cxx = meson.get_compiler('cpp')
cdata = configuration_data()
global_args = []
global_args_maybe = [
'-D_GNU_SOURCE',
'-fvisibility=hidden',
'-Wno-gnu-zero-variadic-macro-arguments',
]
foreach arg : global_args_maybe
if cxx.has_argument(arg)
global_args += arg
endif
endforeach
add_project_arguments(global_args, language: 'cpp')
datadir = get_option('datadir')
zukou_req = '0.1.0'
glm_dep = dependency('glm')
zukou_dep = dependency('zukou', version: zukou_req)
cairo_dep = dependency('cairo')
jpeg_dep = dependency('libjpeg')
png_dep = dependency('libpng')
rsvg_dep = dependency('librsvg-2.0')
textify = files('tools/textify.sh')[0]
public_inc = include_directories('include')
install_subdir('assets', install_dir: get_option('datadir') / meson.project_name())
cdata.set_quoted('ZENNIST_ASSET_DIR', get_option('prefix') / get_option('datadir') / meson.project_name() / 'assets')
configure_file(
output: 'constants.h',
configuration: cdata,
)
subdir('3rd-party')
subdir('shaders')
subdir('src')