meson: Fix build from tarball

Since 2afa019c70,
the Meson configure step will fail when building from tarball (missing `.git` and `gitversion.h` is present)
because `gitversion_h` variable will contain a `list[file]` but `custom_target` does not like that in its `depends` kwarg.
This commit is contained in:
Jan Tojnar 2022-02-25 18:40:31 +01:00 committed by Jehan
parent 0c7a980bc1
commit e4cbfab5ae
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ gimp_plugins_rc = custom_target('gimp_plugins_rc',
build_by_default: true,
build_always_stale: true,
command: [python, '-c', 'exit()'],
depends: [gitversion_h],
depends: generate_version_h ? [gitversion_h] : [],
output: ['gimp-plug-ins.rc']
)
@ -30,6 +30,6 @@ gimp_app_rc = custom_target('gimp_app_rc',
build_by_default: true,
build_always_stale: true,
command: [python, '-c', 'exit()'],
depends: [gitversion_h],
depends: generate_version_h ? [gitversion_h] : [],
output: ['gimp.rc']
)