summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:17:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:17:06 +0000
commit744613caa871bccf3d490b11bfd6c16b180e79f7 (patch)
treedea28958854eba5e608bc718638214d2d2de7a81 /meson.build
parentInitial commit. (diff)
downloadgsettings-desktop-schemas-744613caa871bccf3d490b11bfd6c16b180e79f7.tar.xz
gsettings-desktop-schemas-744613caa871bccf3d490b11bfd6c16b180e79f7.zip
Adding upstream version 43.0.upstream/43.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build52
1 files changed, 52 insertions, 0 deletions
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..efeac23
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,52 @@
+project(
+ 'gsettings-desktop-schemas', 'c',
+ version: '43.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)