-
Notifications
You must be signed in to change notification settings - Fork 62
/
meson.build
73 lines (60 loc) · 1.58 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
project('notekit', 'cpp',
version : '0.3.0',
default_options : ['warning_level=3', 'cpp_std=c++14']
)
has_devenv = meson.version().version_compare('>=0.58.0')
if has_devenv
devenv = environment()
devenv.set('NK_DEVEL', meson.project_source_root())
devenv.set('NK_SETTINGS', 'json')
endif
conf_data = configuration_data()
conf_data.set('version', meson.project_version())
gnome = import('gnome')
deps = [
dependency('gtkmm-3.0'),
dependency('gtksourceviewmm-3.0'),
dependency('zlib'),
dependency('fontconfig'),
dependency('gdk-x11-3.0', required : false),
dependency('jsoncpp')
]
if get_option('clatexmath')
deps += dependency('clatexmath', version: '>=0.0.3', fallback: ['clatexmath', 'clatexmath_dep'])
conf_data.set('HAVE_CLATEXMATH', true)
endif
conf_data.set('settings_provider', get_option('settings_provider'))
conf_data.set('MIGRATE_LEGACY_SETTINGS', get_option('migrate_legacy_settings'))
configure_file(input : 'config.h.meson.in',
output : 'config.h',
configuration : conf_data
)
subdir('freedesktop')
install_subdir('data/', install_dir: get_option('datadir')/'notekit')
install_subdir('sourceview/', install_dir: get_option('datadir')/'notekit')
subdir('gnome')
src = [
'about.cpp',
'drawing.cpp',
'imagewidgets.cpp',
'main.cpp',
'mainwindow.cpp',
'navigation.cpp',
'notebook.cpp',
'settings.cpp'
]
if meson.version().version_compare('>=0.56.0')
executable('notekit', src,
dependencies: deps,
install : true,
win_subsystem: 'windows'
)
else
executable('notekit', src,
dependencies: deps,
install : true
)
endif
if has_devenv
meson.add_devenv(devenv)
endif