This repository has been archived by the owner on Sep 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
56 lines (45 loc) · 1.62 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
project('draft',
version: '0.1.0',
meson_version: '>= 0.41.0')
project_id = 'org.gnome.Draft'
i18n = import('i18n')
python3 = import('python3')
dependency('glib-2.0')
dependency('gobject-introspection-1.0', version: '>=1.35.0')
dependency('gtk+-3.0', version :'>=3.20.2')
dependency('gtksourceview-3.0', version: '>= 3.24.0')
dependency('webkit2gtk-4.0', version: '>= 2.18')
python_bin = python3.find_python()
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
libexecdir = join_paths(prefix, get_option('libexecdir'))
localedir = join_paths(prefix, get_option('localedir'))
pythondir = join_paths(prefix, python3.sysconfig_path('purelib'))
pkgdatadir = join_paths(datadir, meson.project_name())
appdatadir = join_paths(datadir, 'metainfo')
desktopdir = join_paths(datadir, 'applications')
draftsrcdir = join_paths(pythondir, 'draftsrc')
icondir = join_paths(datadir, 'icons', 'hicolor')
schemadir = join_paths(datadir, 'glib-2.0', 'schemas')
conf = configuration_data()
conf.set('DATADIR', datadir)
conf.set('GSETTINGSSCHEMADIR', schemadir)
conf.set('LIBEXECDIR', libexecdir)
conf.set('LOCALEDIR', localedir)
conf.set('PYTHONDIR', pythondir)
conf.set('PKGDATADIR', pkgdatadir)
conf.set('UTILSDIR', join_paths(draftsrcdir, 'utils'))
conf.set('WEBUTILSDIR', join_paths(draftsrcdir, 'webutils'))
conf.set('VERSION', meson.project_version())
configure_file(
input: 'draft.in',
output: 'draft',
configuration: conf,
install_dir: bindir
)
subproject('wkjscore-result')
subdir('draftsrc')
subdir('data')
subdir('po')
meson.add_install_script('meson_postinstall.py')