Browse Source

install zrythm_gdb and zrythm_valgrind

serd_style_docs
Alexandros Theodotou 2 years ago
parent
commit
d0c9d8ac88
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 17
      data/meson.build
  2. 31
      data/zrythm_gdb.in
  3. 19
      data/zrythm_valgrind.in
  4. 7
      meson.build
  5. 2
      src/utils/localization.c

17
data/meson.build

@ -49,6 +49,7 @@ if os_gnu or os_freebsd @@ -49,6 +49,7 @@ if os_gnu or os_freebsd
'BIN_DIR', bindir)
zrythm_launcher_config.set (
'PROGRAM_NAME_LOWERCASE', prog_name_lowercase)
zrythm_launcher = configure_file (
input: 'zrythm_launch.in',
output: prog_name_lowercase + '_launch',
@ -57,6 +58,22 @@ if os_gnu or os_freebsd @@ -57,6 +58,22 @@ if os_gnu or os_freebsd
install_dir: bindir,
install_mode: 'r-xr-xr-x')
zrythm_gdb = configure_file (
input: 'zrythm_gdb.in',
output: prog_name_lowercase + '_gdb',
configuration: zrythm_launcher_config,
install: true,
install_dir: bindir,
install_mode: 'r-xr-xr-x')
zrythm_gdb = configure_file (
input: 'zrythm_valgrind.in',
output: prog_name_lowercase + '_valgrind',
configuration: zrythm_launcher_config,
install: true,
install_dir: bindir,
install_mode: 'r-xr-xr-x')
desktop_file = configure_file (
input: 'zrythm.desktop.in',
output: 'zrythm.desktop.in',

31
data/zrythm_gdb.in

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
#!/usr/bin/env sh
set -xe
export GSETTINGS_SCHEMA_DIR=@SCHEMAS_DIR@
export G_MESSAGES_DEBUG=zrythm
export GDK_SYNCHRONIZE=1
user_dir="`gsettings get org.zrythm.Zrythm.preferences.general.paths zrythm-dir | sed s/\'//g`"
user_gdb_dir="$user_dir/gdb"
date_str=`date +%Y-%m-%d_%H-%M-%S`
gdb_out_file="$user_gdb_dir/gdb_$date_str.bt"
gdb -q --batch \
-ex "run" \
-ex "set logging overwrite on" \
-ex "set logging file $gdb_out_file" \
-ex "set logging on" \
-ex "set pagination off" \
-ex "handle SIG32 pass nostop noprint" \
-ex "echo backtrace:\\n" \
-ex "backtrace full" \
-ex "echo \\n\\nregisters:\\n" \
-ex "info registers" \
-ex "echo \\n\\ncurrent instructions:\\n" \
-ex "x/16i $pc" \
-ex "echo \\n\\nthreads backtrace:\\n" \
-ex "thread apply all backtrace" \
-ex "set logging off" \
-ex "quit" \
--args @BIN_DIR@/@PROGRAM_NAME_LOWERCASE@ "$@"

19
data/zrythm_valgrind.in

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
#!/usr/bin/env sh
set -xe
export GSETTINGS_SCHEMA_DIR=@SCHEMAS_DIR@
export G_MESSAGES_DEBUG=zrythm
user_dir="`gsettings get org.zrythm.Zrythm.preferences.general.paths zrythm-dir | sed s/\'//g`"
user_valgrind_dir="$user_dir/valgrind"
mkdir -p "$user_valgrind_dir"
date_str=`date +%Y-%m-%d_%H-%M-%S`
valgrind_out_file="$user_valgrind_dir/valgrind_$date_str"
# TODO install suppressions
#--suppressions=tools/vg.sup
valgrind --log-file="$valgrind_out_file" \
--num-callers=30 \
@BIN_DIR@/@PROGRAM_NAME_LOWERCASE@ "$@"

7
meson.build

@ -710,9 +710,12 @@ if not samplerate_dep.found () @@ -710,9 +710,12 @@ if not samplerate_dep.found ()
'samplerate')
endif
lv2_dep = dependency(
'lv2', version: '>=1.16.0',
fallback: ['lilv', 'lv2_dep'],
'lv2', version: '>=1.16.0', required: false,
static: all_static)
if not lv2_dep.found ()
lilv_proj = subproject('lilv')
lv2_dep = lilv_proj.get_variable('lv2_dep')
endif
if lv2_dep.version().version_compare('>=1.18.0')
cdata.set('HAVE_LV2_1_18', 1)
endif

2
src/utils/localization.c

@ -226,7 +226,7 @@ localization_locale_exists ( @@ -226,7 +226,7 @@ localization_locale_exists (
IS_MATCH (EL, "el_");
IS_MATCH (ES, "es_");
/*IS_MATCH (ET, "et_");*/
IS_MATCH (FI, "fa_");
IS_MATCH (FA, "fa_");
/*IS_MATCH (FI, "fi_");*/
IS_MATCH (FR, "fr_");
/*IS_MATCH (GD, "gd_");*/

Loading…
Cancel
Save