fs = import('fs')
configuration_inc = include_directories('.')
-# Extended stack trace using backward-app
-option = get_option('devel')
-if option.enabled()
- if cc.has_link_argument('-ldwarf')
- add_project_link_arguments('-ldwarf', language: 'cpp')
- endif
-endif
-
# External programs
glib_compile_resources = find_program('glib-compile-resources', required : true)
glib_genmarshal = find_program('glib-genmarshal', required : true)
conf_data.set('HAVE_DEVELOPER', 0)
libdw_dep = []
libunwind_dep = []
-option = get_option('devel')
-if option.enabled()
+option = get_option('extended_stacktrace')
+if not option.disabled()
libdw_dep = dependency('libdw', required : true)
if libdw_dep.found()
libunwind_dep = dependency('libunwind', required : true)
if libunwind_dep.found()
- conf_data.set('HAVE_DEVELOPER', 1)
- summary({'developer mode' : ['extended stacktrace:', true]}, section : 'Debugging', bool_yn : true)
+ if cc.has_link_argument('-ldwarf')
+ add_project_link_arguments('-ldwarf', language: 'cpp')
+ conf_data.set('HAVE_DEVELOPER', 1)
+ summary({'developer mode' : ['extended stacktrace:', true]}, section : 'Debugging', bool_yn : true)
+ else
+ summary({'developer mode' : ['link argument -ldwarf not found. extended stacktrace:', false]}, section : 'Debugging', bool_yn : true)
+ endif
else
summary({'developer mode' : ['libunwind not found. extended stacktrace:', false]}, section : 'Debugging', bool_yn : true)
endif
endif
# The tests are run on GitHub with all options disabled, and then
-# Image tests use option devel as a flag so that normal users do not
+# Image tests use option unit_tests as a flag so that normal users do not
# download the test image database.
# Image checks
-option = get_option('devel')
+option = get_option('unit_tests')
if option.enabled()
if xvfb.found()
get_test_images_sh = find_program('get-test-images.sh', dirs : scriptsdir, required : true)
# Untranslated text checks
untranslated_text_sh = find_program('untranslated-text.sh', dirs : scriptsdir, required : true)
if untranslated_text_sh.found()
- foreach source_file : main_sources + pan_view_sources + view_file_sources
- if fs.name(source_file).endswith('.cc')
- source_file_name = fs.name(source_file)
- test('Untranslated Text_ ' + source_file_name, untranslated_text_sh, args : [source_file], timeout : 200, suite : 'analysis')
- endif
- endforeach
+ foreach source_file : main_sources + pan_view_sources + view_file_sources
+ if fs.name(source_file).endswith('.cc')
+ source_file_name = fs.name(source_file)
+ test('Untranslated Text_ ' + source_file_name, untranslated_text_sh, args : [source_file], timeout : 200, suite : 'analysis')
+ endif
+ endforeach
- summary({'Untranslated Text' : ['Test runs:', true]}, section : 'Testing', bool_yn : true)
+ summary({'Untranslated Text' : ['Test runs:', true]}, section : 'Testing', bool_yn : true)
else
- summary({'Untranslated Text' : ['Test runs:', false]}, section : 'Testing', bool_yn : true)
+ summary({'Untranslated Text' : ['Test runs:', false]}, section : 'Testing', bool_yn : true)
endif
# Lua test
option('archive', type : 'feature', value : 'auto', description : 'archive files e.g. zip, gz')
option('cms', type : 'feature', value : 'auto', description : 'color management system')
-option('devel', type : 'feature', value : 'disabled', description : 'developer mode')
option('doxygen', type : 'feature', value : 'auto', description : 'lua api help file')
option('djvu', type : 'feature', value : 'auto', description : 'djvu')
option('evince', type : 'feature', value : 'auto', description : 'print preview')
option('execinfo', type : 'feature', value : 'auto', description : 'execinfo.h')
option('exiv2', type : 'feature', value : 'auto', description : 'exiv2')
+option('extended_stacktrace', type : 'feature', value : 'auto', description : 'extended stacktrace')
option('git', type : 'feature', value : 'auto', description : 'lua-api and changelog.html')
option('gps-map', type : 'feature', value : 'auto', description : 'gps map')
option('gtk4', type : 'feature', value : 'disabled', description : 'gtk4 - do not use')
export XDG_DATA_HOME
rm --recursive --force build
+tmpdir=$(mktemp -d "${TMPDIR:-/tmp}/geeqie.XXXXXXXXXX")
# Check with all options disabled
meson setup \
-Darchive=disabled \
-Dcms=disabled \
--Ddevel=disabled \
-Ddoxygen=disabled \
-Ddjvu=disabled \
-Devince=disabled \
-Dexecinfo=disabled \
-Dexiv2=disabled \
+-Dextended_stacktrace=disabled \
-Dgit=disabled \
-Dgps-map=disabled \
-Dgtk4=disabled \
meson test -C build
-tmpdir=$(mktemp -d "${TMPDIR:-/tmp}/geeqie.XXXXXXXXXX")
-cp ./build/meson-logs/testlog.txt "$tmpdir/testlog-options-disabled.txt"
+cp ./build/meson-logs/meson-log.txt "$tmpdir/testlog-options-disabled.txt"
+cat ./build/meson-logs/testlog.txt >> "$tmpdir/testlog-options-disabled.txt"
rm --recursive --force build
-
-meson setup -Ddevel=enabled -Dunit_tests=enabled build
-
+meson setup -Dunit_tests=enabled build
meson test -C build
-cp ./build/meson-logs/testlog.txt "$tmpdir/testlog-options-enabled.txt"
+cp ./build/meson-logs/meson-log.txt "$tmpdir/testlog-options-enabled.txt"
+cat ./build/meson-logs/testlog.txt >> "$tmpdir/testlog-options-enabled.txt"
rm -r "$XDG_CONFIG_HOME"
rm -r "$XDG_CACHE_HOME"
rm -r "$XDG_DATA_HOME"
+
+printf "\n%s" "$tmpdir/testlog-options-disabled.txt"
+printf "\n%s\n" "$tmpdir/testlog-options-enabled.txt"
+