File: meson.build

package info (click to toggle)
gnome-font-viewer 41.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,984 kB
  • sloc: ansic: 2,878; xml: 6; makefile: 4; sh: 4
file content (60 lines) | stat: -rw-r--r-- 1,816 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
57
58
59
60
project('gnome-font-viewer', 'c',
        version: '41.0',
        license: 'GPLv2+',
        meson_version: '>= 0.50.0',
)

cc = meson.get_compiler('c')

gnome = import('gnome')
i18n = import('i18n')

prefix = get_option('prefix')

bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
libexecdir = join_paths(prefix, get_option('libexecdir'))
localedir = join_paths(prefix, get_option('localedir'))

pkgdatadir = join_paths(datadir, meson.project_name())

desktopdir = join_paths(datadir, 'applications')
servicesdir = join_paths(datadir, 'dbus-1', 'services')
thumbnailerdir = join_paths(datadir, 'thumbnailers')

glib_req_version = '>= 2.56.0'
gtk_req_version = '>= 3.24.1'
libhandy_req_version = '>= 1.0.0'
harfbuzz_req_version = '>= 0.9.9'

glib_dep = dependency('glib-2.0', version: glib_req_version)
gtk_dep = dependency('gtk+-3.0', version: gtk_req_version)
libhandy_dep = dependency('libhandy-1', version: libhandy_req_version)
harfbuzz_dep = dependency('harfbuzz', version: harfbuzz_req_version)
fontconfig_dep = dependency('fontconfig')
freetype2_dep = dependency('freetype2')
gnomedesktop_dep = dependency('gnome-desktop-3.0')
mathlib_dep = cc.find_library('m')

if get_option('profile') == 'development'
  profile = 'Devel'
else
  profile = ''
endif

application_id = 'org.gnome.font-viewer@0@'.format(profile)

config_h = configuration_data()
config_h.set_quoted('VERSION', meson.project_version())
config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_h.set_quoted('GNOMELOCALEDIR', localedir)
config_h.set_quoted('APPLICATION_ID', application_id)
configure_file(output: 'config.h', configuration: config_h)

root_inc = include_directories('.')

subdir('src')
subdir('po')
subdir('data')

meson.add_install_script('meson-postinstall.sh')