1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-09-28 14:55:26 +00:00

Add run script to the build directory

This allows starting calls by invoking something like _build/run.

Closes #292
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-06-03 12:56:21 +02:00
parent 3d51d627d3
commit 04b81dd664
2 changed files with 19 additions and 0 deletions

View file

@ -58,6 +58,15 @@ config_data.set_quoted('PACKAGE_URL', calls_homepage)
config_data.set_quoted('PACKAGE_VERSION', calls_version)
config_data.set('PACKAGE_URL_RAW', calls_homepage)
run_data = configuration_data()
run_data.set('ABS_BUILDDIR', meson.current_build_dir())
run_data.set('ABS_SRCDIR', meson.current_source_dir())
configure_file(
input: 'run.in',
output: 'run',
configuration: run_data)
add_project_arguments([
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_58',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_64',

10
run.in Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
set -e
ABS_BUILDDIR='@ABS_BUILDDIR@'
ABS_SRCDIR='@ABS_SRCDIR@'
export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
set -x
exec "${ABS_BUILDDIR}/src/gnome-calls" "$@"