Skip to content
Snippets Groups Projects
Verified Commit 27668c7b authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

Meson build improvements

parent 2fb11f25
No related branches found
No related tags found
No related merge requests found
Pipeline #3158 failed
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2017 Carlos Sanchez <csoriano@gnome.org>
# SPDX-FileCopyrightText: 2020 Bruce Cowan <bruce@bcowan.me.uk>
#
# SPDX-License-Identifier: CC0-1.0
import os
import subprocess
prefix = os.environ.get("MESON_INSTALL_PREFIX", "/usr/local")
datadir = os.path.join(prefix, "share")
if "DESTDIR" not in os.environ:
print("Compiling GSettings schemas...")
schemas_dir = os.path.join(datadir, "glib-2.0", "schemas")
if not os.path.exists(schemas_dir):
os.makedirs(schemas_dir)
subprocess.call(["glib-compile-schemas", schemas_dir])
# SPDX-FileCopyrightText: 2016-2021 Bruce Cowan <bruce@bcowan.me.uk> # SPDX-FileCopyrightText: 2016-2022 Bruce Cowan <bruce@bcowan.me.uk>
# #
# SPDX-License-Identifier: CC0-1.0 # SPDX-License-Identifier: CC0-1.0
project('rugby', 'c', project('rugby', 'c',
version: '0.3.0', version: '0.3.0',
license:'GPL', license:'GPLv3+',
default_options: ['c_std=gnu11', 'warning_level=3']) meson_version: '>= 0.57.0',
default_options: [
'buildtype=debugoptimized',
'c_std=gnu11',
'warning_level=3'
],
)
datadir = get_option('datadir') datadir = get_option('datadir')
...@@ -40,4 +46,4 @@ add_project_arguments(cc.get_supported_arguments(cflags), ...@@ -40,4 +46,4 @@ add_project_arguments(cc.get_supported_arguments(cflags),
subdir('data') subdir('data')
subdir('src') subdir('src')
meson.add_install_script('build-aux/post_install.py') gnome.post_install(glib_compile_schemas: true)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment