Compare commits

...

1 Commits

Author SHA1 Message Date
Simon McVittie
00f5171a4f node-editor: Save test data relative to current working directory
This avoids hard-coding the GTK source directory into the binary, which
would make the binary non-reproducible across different source paths,
particularly in a distro build environment where the source directory
used by autobuilders will often not exist on end-user systems. The node
editor can still be used to create new test-cases by running it with the
GTK source directory as its current working directory.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/5403
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-12-06 11:19:12 +00:00

View File

@@ -15,7 +15,7 @@ executable('gtk4-node-editor',
dependencies: [ libgtk_dep, demo_conf_h ],
include_directories: confinc,
c_args: [
'-DNODE_EDITOR_SOURCE_DIR="@0@/../../testsuite/gsk/compare/"'.format(meson.current_source_dir())
'-DNODE_EDITOR_SOURCE_DIR="testsuite/gsk/compare/"'
] + common_cflags,
win_subsystem: 'windows',
link_args: extra_demo_ldflags,