summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2022-08-23 19:44:35 -0400
committerMatt Turner <mattst88@gmail.com>2022-08-23 21:29:37 -0400
commit95f962ee48f323df0a5754f2abf73e41045a5907 (patch)
tree31b909688287bd3e376912ff9d7993fe8bb57783
parent30c68043b4411407f555e592051a6f6334f5b1db (diff)
downloadlibgweather-95f962ee48f323df0a5754f2abf73e41045a5907.tar.gz
build: Use GNOME module post_install()
-rw-r--r--.gitlab-ci.yml12
-rwxr-xr-xbuild-aux/meson/meson_post_install.py14
-rw-r--r--meson.build6
3 files changed, 10 insertions, 22 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 125cb7e..b1eb777 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/build-aux/meson/meson_post_install.py b/build-aux/meson/meson_post_install.py
deleted file mode 100755
index 15eaaa0..0000000
--- a/build-aux/meson/meson_post_install.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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 8d56d69..4a36cf5 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,