[libgweather: 1/2] build: Use GNOME module post_install()




commit 95f962ee48f323df0a5754f2abf73e41045a5907
Author: Matt Turner <mattst88 gmail com>
Date:   Tue Aug 23 19:44:35 2022 -0400

    build: Use GNOME module post_install()

 .gitlab-ci.yml                        | 12 ++++++------
 build-aux/meson/meson_post_install.py | 14 --------------
 meson.build                           |  6 ++++--
 3 files changed, 10 insertions(+), 22 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 125cb7e2..b1eb7772 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -120,7 +120,7 @@ fedora-x86_64:
       python3-wheel
       redhat-rpm-config
       vala
-    MESON_VERSION: "0.55.3"
+    MESON_VERSION: "0.57.2"
     MESON_EXTRA_FLAGS: "--buildtype=debug -Dwerror=true -Dgtk_doc=false -Dsoup2=true"
 
 fedora-x86_64-soup3:
@@ -151,7 +151,7 @@ fedora-x86_64-soup3:
       redhat-rpm-config
       sqlite-devel
       vala
-    MESON_VERSION: "0.55.3"
+    MESON_VERSION: "0.57.2"
     MESON_EXTRA_FLAGS: "--buildtype=debug -Dwerror=true -Dgtk_doc=false -Dsoup2=false"
   before_script:
     # Undo delangification present in the Fedora Docker images
@@ -208,7 +208,7 @@ static-scan:
       python3-pip
       python3-wheel
       redhat-rpm-config
-    MESON_VERSION: "0.55.3"
+    MESON_VERSION: "0.57.2"
     MESON_EXTRA_FLAGS: "--buildtype=debug -Dgtk_doc=false -Dintrospection=false -Dsoup2=true"
   script:
     - meson setup --prefix /usr ${MESON_EXTRA_FLAGS} _scan_build .
@@ -246,7 +246,7 @@ asan-build:
       python3-wheel
       redhat-rpm-config
       vala
-    MESON_VERSION: "0.55.3"
+    MESON_VERSION: "0.57.2"
     MESON_EXTRA_FLAGS: "--buildtype=debug -Db_sanitize=address -Db_lundef=false -Dintrospection=false 
-Dgtk_doc=false -Dsoup2=true"
   script:
     - CC=clang meson setup --prefix /usr ${MESON_EXTRA_FLAGS} _asan_build .
@@ -282,7 +282,7 @@ coverage:
       python3-pip
       python3-wheel
       redhat-rpm-config
-    MESON_VERSION: "0.55.3"
+    MESON_VERSION: "0.57.2"
     MESON_EXTRA_FLAGS: "--buildtype=debug -Dgtk_doc=false -Dintrospection=false -Dsoup2=true"
     CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
   script:
@@ -325,7 +325,7 @@ reference:
       python3-wheel
       redhat-rpm-config
       vala
-    MESON_VERSION: "0.55.3"
+    MESON_VERSION: "0.57.2"
     MESON_EXTRA_FLAGS: "-Dsoup2=true"
     DOCS_FLAGS: "-Dgtk_doc=true"
     DOCS_PATH: doc/libgweather-4.0
diff --git a/meson.build b/meson.build
index 8d56d696..4a36cf5f 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
 project('libgweather', 'c',
   version: '4.1.1',
   license: 'GPL-2.0-or-later',
-  meson_version: '>= 0.55.0',
+  meson_version: '>= 0.57.0',
   default_options: [
     'warning_level=2',
     'buildtype=debugoptimized',
@@ -61,7 +61,9 @@ subdir('doc')
 subdir('po')
 subdir('po-locations')
 
-meson.add_install_script('build-aux/meson/meson_post_install.py')
+gnome.post_install(
+  glib_compile_schemas: true,
+)
 
 summary({
     'prefix': prefix,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]