-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmeson.build
56 lines (44 loc) · 1.65 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('xviewer-plugins', 'c', version : '3.4.1')
gnome = import('gnome')
i18n = import('i18n')
pkgconfig = import('pkgconfig')
version = meson.project_version()
proj_conf = configuration_data()
proj_conf.set_quoted('VERSION', version)
proj_conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
# directories
prefix = get_option('prefix')
bindir = get_option('bindir')
datadir = get_option('datadir')
libdir = get_option('libdir')
src_root = meson.source_root()
po_dir = src_root / 'po'
metainfo_dir = prefix / datadir / 'metainfo'
gschemas_dir = prefix / datadir / 'glib-2.0' / 'schemas'
plugin_libdir = prefix / 'lib' / 'xviewer' / 'plugins'
plugin_datadir = prefix / datadir / 'xviewer' / 'plugins'
champlain = dependency('champlain-0.12')
champlain_gtk = dependency('champlain-gtk-0.12')
clutter = dependency('clutter-1.0', version: '>=1.9.4')
clutter_gtk = dependency('clutter-gtk-1.0', version: '>=1.1.2')
exif = dependency('libexif', version: '>=0.6.16')
glib = dependency('glib-2.0', version: '>=2.32.0')
gtk = dependency('gtk+-3.0', version: '>=3.3.8')
libpeas = dependency('libpeas-1.0', version: '>=0.7.4')
libpeas_gtk = dependency('libpeas-gtk-1.0', version: '>= 1.12.0')
xviewer = dependency('xviewer', version: '>=3.2.1')
proj_conf.set10('HAVE_EXIF', true)
# generate config.h
config_h_file = configure_file(
output : 'config.h',
configuration : proj_conf
)
config_h = declare_dependency(
sources: config_h_file,
include_directories: include_directories('.')
)
add_project_arguments('-DHAVE_CONFIG_H', language: 'c')
add_project_arguments('-Wno-deprecated-declarations', language: 'c')
subdir('install-scripts')
subdir('plugins')
subdir('po')