mirror of https://github.com/GNOME/gimp.git
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:
parent
0c7a980bc1
commit
e4cbfab5ae
|
@ -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']
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue