[gimp] Fix meson: use env kwarg in custom targets
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Fix meson: use env kwarg in custom targets
- Date: Sun, 14 Nov 2021 12:42:43 +0000 (UTC)
commit f9e206da01ed257f232400de31e799125f6e225e
Author: bartoszek <bartoszek github bartus 33mail com>
Date: Wed Oct 27 16:01:31 2021 +0000
Fix meson: use env kwarg in custom targets
Fix #7420
pdb/meson.build | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/pdb/meson.build b/pdb/meson.build
index 131074f399..8c95ed95d7 100644
--- a/pdb/meson.build
+++ b/pdb/meson.build
@@ -81,6 +81,8 @@ perl_env = [
'srcdir=' + perlsrcdir,
'destdir=' + meson.build_root(),
'builddir=' + meson.build_root(),
+]
+perl= [
perl,
'-I', perlbindir,
'-I', perlsrcdir,
@@ -107,8 +109,9 @@ groups_pl = custom_target('groups.pl',
enums_pl = custom_target('enums.pl',
input : [ 'enumgen.pl', 'enums-external.pl', enum_headers, ],
output: [ 'enums.pl', ],
+ evn: perl_env,
command: [
- perl_env, '@INPUT0@',
+ perl, '@INPUT0@',
enum_headers,
],
)
@@ -132,8 +135,9 @@ pdbgen = custom_target('stamp-pdbgen',
pdb_sources,
],
output: [ 'stamp-pdbgen', ],
+ env: perl_env,
command: [
- perl_env, '@INPUT0@',
+ perl, '@INPUT0@',
'app', 'lib',
],
)
@@ -141,7 +145,8 @@ pdbgen = custom_target('stamp-pdbgen',
stamp_enumcode = custom_target('stamp-enum-code',
input : [ 'enumcode.pl', ],
output: [ 'stamp-enum-code', ],
+ env: perl_env,
command: [
- perl_env, '@INPUT0@',
+ perl, '@INPUT0@',
],
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]