forked from linuxmint/nemo-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
49 lines (34 loc) · 1.43 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
project('nemo-filename-repairer',
'c',
version: '5.0.0',
meson_version: '>=0.49.0'
)
project_url = 'https://github.com/linuxmint/nemo-extensions'
gnome = import('gnome')
pkgconfig = import('pkgconfig')
config = configuration_data()
################################################################################
# Find libnemo-extensions
libnemo = dependency('libnemo-extension', version: '>=2.0.0')
libnemo_extension_dir = libnemo.get_pkgconfig_variable('extensiondir')
libnemo_extension_ver = libnemo.version().split('.')
config.set('NEMO_VERSION_MAJOR', libnemo_extension_ver[0])
config.set('NEMO_VERSION_MINOR', libnemo_extension_ver[1])
config.set('NEMO_VERSION_MICRO', libnemo_extension_ver[2])
glib = dependency('glib-2.0', version: '>=2.14.0')
################################################################################
# Dependencies
gtk3 = dependency('gtk+-3.0', version: '>=3.0')
################################################################################
# Generic stuff
config.set_quoted('GETTEXT_PACKAGE', 'nemo-extensions')
config.set_quoted('GNOMELOCALEDIR', get_option('prefix')/get_option('datadir')/'locale')
config.set_quoted('PKGDATADIR', get_option('prefix')/get_option('datadir')/meson.project_name())
add_project_arguments('-DHAVE_CONFIG_H', language: 'c')
configure_file(
output: 'config.h',
configuration: config,
)
rootInclude = include_directories('.')
subdir('src')
subdir('po')