-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathmeson.build
69 lines (56 loc) · 1.88 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
project('gnote', 'cpp',
version: '48.alpha',
meson_version: '>=0.59.0',
default_options: ['cpp_std=c++17'],
)
gnome = import('gnome')
i18n = import('i18n')
gnote_release = meson.project_version().split('.')[0]
libgnote_version_info = '0.0.0'
glib_version = '>=2.74'
gio_dep = dependency('gio-2.0', version: glib_version)
dependencies = [
dependency('glibmm-2.68', version: glib_version),
dependency('giomm-2.68', version: glib_version),
dependency('gtkmm-4.0', version: '>=4.10.0'),
dependency('libadwaita-1'),
dependency('libsecret-1', version: '>=0.8'),
dependency('libxml-2.0'),
dependency('libxslt'),
dependency('uuid'),
]
# Need updated version that support GTK 4
#gspell = dependency('gspell-1', version: '>=1.6.0', required: false)
#if gspell.found()
# dependencies = [dependencies, gspell]
# add_project_arguments('-DENABLE_GSPELL=1', language: 'cpp')
#endif
unit_test_pp = dependency('UnitTest++', version: '>=1.5.1', required: false)
if get_option('buildtype').startswith('debug')
add_project_arguments('-DDEBUG', language: 'cpp')
endif
conf_data = configuration_data()
conf_data.set('package_name', 'gnote')
conf_data.set('package_version', gnote_release)
conf_data.set('version', meson.project_version())
conf_data.set('libgnote_release', gnote_release)
conf_data.set('libgnote_version_info', libgnote_version_info)
conf_data.set('libdir', get_option('prefix') / get_option('libdir'))
conf_data.set('datadir', get_option('prefix') / get_option('datadir'))
conf_data.set('gnote_localedir', conf_data.get('datadir') / 'locale')
configure_file(
input: 'config.h.in',
output: 'config.h',
configuration: conf_data,
)
root_include_dir = include_directories('.')
srcdir = meson.current_source_dir()
subdir('data')
subdir('help')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)