forked from hellosiyan/Viewnior
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
56 lines (44 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
project('viewnior', 'c', 'cpp',
version: '1.7',
license: 'GPL3+',
meson_version: '>= 0.43.0'
)
add_global_arguments('-Wno-deprecated-declarations', language: 'c')
# Directory variables
datadir = get_option('datadir')
#
# Compiler variables
cc = meson.get_compiler('c')
#
# Imports
gnome = import('gnome')
i18n = import('i18n')
#
# Dependencies
glib_ver = '>= 2.32'
viewnior_deps = [
dependency('gtk+-2.0', version: '>= 2.20'),
dependency('glib-2.0', version: glib_ver),
dependency('gio-2.0', version: glib_ver),
dependency('shared-mime-info', version: '>= 0.20'),
dependency('gdk-pixbuf-2.0', version: '>= 0.21'),
dependency('exiv2', version: '>= 0.21'),
]
#
# Configuration
conf = configuration_data()
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('PACKAGE', 'viewnior')
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('PACKAGE_STRING', 'viewnior ' + meson.project_version())
conf.set_quoted('GETTEXT_PACKAGE', 'viewnior')
conf.set_quoted('PACKAGE_DATA_DIR', join_paths(get_option('prefix'), get_option('datadir')))
conf.set_quoted('PACKAGE_LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale'))
configure_file(output: 'config.h', configuration: conf)
#
viewnior_include_dirs = include_directories('.')
subdir('po')
subdir('data')
subdir('man')
subdir('src')
meson.add_install_script('meson_post_install.py')