diff options
author | Simon McVittie <smcv@debian.org> | 2022-12-06 11:13:59 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2022-12-06 11:19:12 +0000 |
commit | 00f5171a4f501d4696fbf9bd9f24d846533a0a0d (patch) | |
tree | 40eb3a5bab22a43c507c134f71103c6cb6580188 | |
parent | a9c9678e1f617755368f16424a03ae1f2d2ced4e (diff) | |
download | gtk+-00f5171a4f501d4696fbf9bd9f24d846533a0a0d.tar.gz |
node-editor: Save test data relative to current working directorywip/smcv/node-editor-srcdir
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>
-rw-r--r-- | demos/node-editor/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/node-editor/meson.build b/demos/node-editor/meson.build index 03489f3f75..bd0fe054c5 100644 --- a/demos/node-editor/meson.build +++ b/demos/node-editor/meson.build @@ -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, |