-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
50 lines (44 loc) · 1.1 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
project(
'GTKChess',
'c',
version: '0.0.1',
license: 'WTFPL',
default_options: [
'c_std=c18',
'warning_level=3',
'optimization=3'
]
)
incdir = include_directories('include')
add_project_arguments('-Wno-overlength-strings', language: 'c')
dep_gtk3 = dependency('gtk+-3.0', version: '>= 3.24.0')
dep_glib = dependency('glib-2.0', version: '>= 2.64.0')
dep_giounix = dependency('gio-unix-2.0', version: '>= 2.64.0')
dep_rsvg = dependency('librsvg-2.0', version: '>= 2.52.0')
dep_threads = dependency('threads')
subdir('data')
gnome = import('gnome')
gresources = gnome.compile_resources(
'UI',
gresources_file,
source_dir: 'data'
)
subdir('src')
executable(
'engine_manager',
engine_manager_sources,
dependencies: [dep_giounix, dep_threads],
install: true,
install_dir: '.',
include_directories : incdir
)
executable(
'GTKChess',
gtkchess_sources,
gresources,
dependencies: [dep_rsvg, dep_giounix, dep_glib, dep_gtk3],
link_args: ['-rdynamic'],
install: true,
install_dir: '.',
include_directories : incdir
)