[libgweather/ebassi/gtk4: 34/56] Add a build-aux directory for ancillary scripts
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/gtk4: 34/56] Add a build-aux directory for ancillary scripts
- Date: Wed, 13 Oct 2021 12:02:16 +0000 (UTC)
commit b5ed594423ba9819347523e3cef50b2695474de0
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Oct 11 18:12:06 2021 +0100
Add a build-aux directory for ancillary scripts
build-aux/meson/meson_post_install.py | 14 ++++++++++++++
meson.build | 3 ++-
meson/meson_post_install.py | 10 ----------
3 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/build-aux/meson/meson_post_install.py b/build-aux/meson/meson_post_install.py
new file mode 100755
index 00000000..15eaaa09
--- /dev/null
+++ b/build-aux/meson/meson_post_install.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+# SPDX-FileCopyrightText: 2017 Giovanni Campagna
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+import os
+import subprocess
+
+prefix = os.environ['MESON_INSTALL_PREFIX']
+schemadir = os.path.join(prefix, 'share', 'glib-2.0', 'schemas')
+
+if not os.environ.get('DESTDIR'):
+ print('Compiling gsettings schemas...')
+ subprocess.call(['glib-compile-schemas', schemadir])
diff --git a/meson.build b/meson.build
index e2e5627f..ff821ea8 100644
--- a/meson.build
+++ b/meson.build
@@ -80,7 +80,8 @@ if get_option('gtk_doc')
endif
subdir('po')
subdir('po-locations')
-meson.add_install_script('meson/meson_post_install.py')
+
+meson.add_install_script('build-aux/meson/meson_post_install.py')
pkgconfig.generate(
filebase: 'gweather-3.0',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]