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
|
project(
'gsettings-desktop-schemas', 'c',
version: '3.38.0',
default_options: [
'warning_level=2'
],
license: 'LGPL',
meson_version: '>= 0.50.0'
)
gsettings_desktop_schemas_name = meson.project_name()
gsettings_desktop_schemas_version = meson.project_version()
message('Building ' + gsettings_desktop_schemas_name + ' ' + gsettings_desktop_schemas_version)
cc = meson.get_compiler('c')
host_system = host_machine.system()
arch = host_machine.cpu_family()
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
libdir = join_paths(prefix, get_option('libdir'))
libexecdir = join_paths(prefix, get_option('libexecdir'))
includedir = join_paths(prefix, get_option('includedir'))
datadir = join_paths(prefix, get_option('datadir'))
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
schemasdir = join_paths(datadir, 'glib-2.0/schemas')
gnome = import('gnome')
# Generate pc file
# Can't use pkgconfig helper https://github.com/mesonbuild/meson/issues/2253
conf = configuration_data()
conf.set('prefix', prefix)
conf.set('VERSION', meson.project_version())
conf.set('includedir', includedir)
pkg = configure_file(configuration: conf,
input: 'gsettings-desktop-schemas.pc.in',
install: true,
install_dir: join_paths(datadir, 'pkgconfig'),
output: 'gsettings-desktop-schemas.pc')
glib_mkenums = find_program('glib-mkenums')
subdir('headers')
subdir('schemas')
subdir('po')
# Keep this in sync with post-install.py expected arguments
meson.add_install_script('build-aux/meson/post-install.py',
datadir)
|