[gimp/meson: 508/805] Revert "Use custom_target with capture instead of bash cat pipes run_command." custom_target is buil
- From: Félix Piédallu <fpiedallu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/meson: 508/805] Revert "Use custom_target with capture instead of bash cat pipes run_command." custom_target is buil
- Date: Fri, 2 Feb 2018 15:19:50 +0000 (UTC)
commit 2878dd44d6224eebd4980c5dcf76f3b27abeca58
Author: Félix Piédallu <felix piedallu me>
Date: Fri Jan 5 16:58:23 2018 +0100
Revert "Use custom_target with capture instead of bash cat pipes run_command."
custom_target is build time but we need the files at configure-time.
This reverts commit d4fa92b0a867f9bd09d33362fa67badabc75b0e3.
cursors/meson.build | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/cursors/meson.build b/cursors/meson.build
index c7de5c4..d42a3d4 100644
--- a/cursors/meson.build
+++ b/cursors/meson.build
@@ -93,11 +93,9 @@ endforeach
cursors_xml_content += ' </gresource>\n'
cursors_xml_content += '</gresources>\n'
-custom_target(cursors_xml,
- input : [],
- output: cursors_xml,
- command: [ 'echo', cursors_xml_content + '\n' ],
- capture: true,
+run_command('bash', '-c',
+ 'cat <<EOS > '+ join_paths(meson.current_source_dir(), cursors_xml) +'\n'
+ + cursors_xml_content + '\nEOS',
)
@@ -117,11 +115,9 @@ endforeach
pickers_xml_content += ' </gresource>\n'
pickers_xml_content += '</gresources>\n'
-custom_target(pickers_xml,
- input : [],
- output: pickers_xml,
- command: [ 'echo', pickers_xml_content + '\n' ],
- capture: true,
+run_command('bash', '-c',
+ 'cat <<EOS >'+ join_paths(meson.current_source_dir(), pickers_xml) +'\n'
+ + pickers_xml_content + '\nEOS',
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]