-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
59 lines (48 loc) · 1.61 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
# project name and programming language
project('com.github.tudo75.xed-sessionsaver-plugin', ['vala', 'c'], version: '0.1.0')
assert('com.github.tudo75.xed-sessionsaver-plugin.gschema.xml'==meson.project_name() + '.gschema.xml', 'proj name and gschema file not the same')
i18n = import('i18n')
gnome = import('gnome')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
prefix = get_option('prefix')
bindir = get_option('bindir')
datadir = get_option('datadir')
libdir = get_option('libdir')
includedir = get_option('includedir')
libexecdir = get_option('libexecdir')
desktopdir = join_paths(datadir, 'applications')
schema_dir = join_paths(datadir, 'glib-2.0', 'schemas')
include_dirs = include_directories('.', './missing-xed-headers')
vapidir = get_option('datadir') / 'vala' / 'vapi'
vapi_dir = meson.current_source_dir() / 'vapi'
add_project_arguments(['--vapidir', vapi_dir], language: 'vala')
add_project_arguments(['--enable-experimental'], language: 'vala')
dependencies = [
dependency('gtk+-3.0', version: '>= 3.20'),
dependency('glib-2.0'),
dependency('gio-2.0'),
dependency('gio-unix-2.0'),
dependency('gobject-2.0'),
dependency('gee-0.8'),
dependency('libpeas-1.0'),
dependency('libpeas-gtk-1.0'),
dependency('json-glib-1.0'),
dependency('xed'),
]
pkgconfig = import('pkgconfig')
PKGCONFIG_DEPS = [
'gtk+-3.0',
'glib-2.0',
'gio-2.0',
'gio-unix-2.0',
'gobject-2.0',
'gee-0.8',
'libpeas-1.0',
'libpeas-gtk-1.0',
'json-glib-1.0',
'xed',
]
subdir('po')
subdir('src')
subdir('data')
meson.add_install_script('build-aux/post_install.py')