summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:25:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:25:44 +0000
commit26e5532cd264d58100e9db9c28ee6f13c4b36ab8 (patch)
tree6165da9db89a878424c0da6b6f8824dece5735ec /meson.build
parentInitial commit. (diff)
downloadgsettings-desktop-schemas-26e5532cd264d58100e9db9c28ee6f13c4b36ab8.tar.xz
gsettings-desktop-schemas-26e5532cd264d58100e9db9c28ee6f13c4b36ab8.zip
Adding upstream version 3.38.0.upstream/3.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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..6d09d52
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,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)