File: meson.build

package info (click to toggle)
viewnior 1.8-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,592 kB
  • sloc: ansic: 6,697; cpp: 151; xml: 25; python: 15; makefile: 3
file content (56 lines) | stat: -rw-r--r-- 1,395 bytes parent folder | download
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.8',
  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+-3.0'),
  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.27'),
]
#

# 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')