forked from jkotra/eOVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
59 lines (43 loc) · 1.38 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('eovpn',
version: '0.01',
meson_version: '>= 0.51.0'
)
i18n = import('i18n')
python = import('python')
python_instllation = python.find_installation()
gnome = import('gnome')
project_id = 'com.github.jkotra.eovpn'
prefix = get_option('prefix') # should be /usr
bindir = get_option('bindir') # should be bin
datadir = get_option('datadir') # should be /usr/share
pkg_datadir = join_paths(prefix, datadir, meson.project_name())
schemas_dir = get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas'
python_dir = python_instllation.get_install_dir()
message(prefix)
message(python_dir)
locale_dir = join_paths(prefix, get_option('localedir'))
icondir = join_paths(datadir, 'icons/hicolor')
# Dependencies
dependency('gobject-introspection-1.0', version: '>= 1.35.0')
dependency('gtk+-3.0', version: '>= 3.22')
dependency('glib-2.0')
conf = configuration_data()
conf.set('PACKAGE_URL', 'https://github.com/jkotra/eovpn')
conf.set('DATA_DIR', datadir)
conf.set('PKG_DATADIR', pkg_datadir)
conf.set('LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale'))
conf.set('PYTHON_DIR', python_dir)
subdir('po')
subdir('data')
subproject('networkmanager')
install_subdir(
'eovpn',
install_dir: python_dir
)
configure_file(
input: 'eovpn.in',
output: 'eovpn',
configuration: conf,
install_dir: bindir
)
meson.add_install_script('meson_post_install.py')