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
|
project('mate-calc','c',
version: '1.25.1',
meson_version: '>=0.50.0',
license: 'GPLv3+',
)
i18n = import('i18n')
gnome = import('gnome')
po_dir = join_paths(meson.source_root(), 'po')
datadir = join_paths([ get_option('prefix'),get_option('datadir') ])
pkgdatadir = join_paths([ get_option('prefix'),get_option('datadir'),'mate-calc' ])
bindir = join_paths([ get_option('prefix'), 'bin' ])
schemadir = join_paths([ datadir, 'glib-2.0', 'schemas' ])
locale_dir = join_paths(get_option('prefix'), get_option('localedir'))
# Dependencies
glib_min_version = '2.40.0'
gio = dependency('gio-2.0', version: '>= ' + glib_min_version)
glib = dependency('glib-2.0', version: '>= ' + glib_min_version)
gobject = dependency('gobject-2.0', version: '>= ' + glib_min_version)
libxml = dependency('libxml-2.0')
gtk = dependency('gtk+-3.0', version : '>=3.22')
# Libraries
cc = meson.get_compiler('c')
mpc = declare_dependency(
dependencies: [
cc.find_library('mpc'),
]
)
mpfr = declare_dependency(
dependencies: [
cc.find_library('mpfr'),
]
)
conf = configuration_data()
top_inc = include_directories('.')
conf.set('G_LOG_USE_STRUCTURED', true)
conf.set_quoted('PACKAGE_NAME', 'mate-calc')
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('GETTEXT_PACKAGE', 'mate-calc')
conf.set_quoted('PACKAGE_URL', 'https://mate-desktop.org')
conf.set_quoted('DATADIR', datadir)
conf.set_quoted('UI_DIR', join_paths([pkgdatadir,'uidir']))
conf.set_quoted('PKGDATADIR', pkgdatadir)
conf.set_quoted('LOCALE_DIR', join_paths([ get_option('prefix'),
get_option('datadir'),
'locale' ]))
conf.set_quoted('pkgdatadir', pkgdatadir)
conf.set_quoted('bindir', bindir)
configure_file(output : 'config.h', configuration : conf)
subdir('src')
subdir('data')
subdir('po')
subdir('help')
meson.add_install_script('meson-postinstall.sh')
|