[gimp/meson: 46/127] Add missing header generation
- From: Félix Piédallu <fpiedallu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/meson: 46/127] Add missing header generation
- Date: Fri, 2 Feb 2018 16:03:37 +0000 (UTC)
commit 20ae8f1e45ae48f4ad92c2bfa14358cd6697db43
Author: Félix Piédallu <felix piedallu me>
Date: Sat Nov 18 15:43:42 2017 +0100
Add missing header generation
plug-ins/lighting/images/meson.build | 49 ++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/lighting/images/meson.build b/plug-ins/lighting/images/meson.build
new file mode 100644
index 0000000..be197be
--- /dev/null
+++ b/plug-ins/lighting/images/meson.build
@@ -0,0 +1,49 @@
+stock_icons = [
+ 'stock-intensity-ambient-high',
+ 'stock-intensity-ambient-low',
+ 'stock-intensity-diffuse-high',
+ 'stock-intensity-diffuse-low',
+ 'stock-reflectivity-diffuse-high',
+ 'stock-reflectivity-diffuse-low',
+ 'stock-reflectivity-specular-high',
+ 'stock-reflectivity-specular-low',
+ 'stock-reflectivity-highlight-high',
+ 'stock-reflectivity-highlight-low',
+]
+
+stock_icons_list = []
+foreach name : stock_icons
+ stock_icons_list += name.underscorify()
+ stock_icons_list += join_paths(
+ meson.source_root(),
+ meson.current_source_dir(),
+ name + '.png'
+ )
+endforeach
+
+message(stock_icons_list)
+
+gdk_pixbuf_csource = find_program('gdk-pixbuf-csource')
+
+stock_pixbufs_h = custom_target('stock-pixbufs.h',
+ input : [ ],
+ output: [ 'stock-pixbufs.h', ],
+ command: [
+ gdk_pixbuf_csource,
+ '--raw',
+ '--build-list',
+ stock_icons_list,
+ ],
+ capture: true,
+)
+
+# stock-icons.list: $(STOCK_IMAGES) Makefile.am
+# ( rm -f $@; \
+# for image in $(STOCK_IMAGES); do \
+# echo $$image | \
+# sed -e 's|.*/||' -e 's|-|_|g' -e 's|\.png$$||' >> $@; \
+# echo " $(srcdir)/$$image" >> $@; \
+# done )
+#
+# $(srcdir)/stock-pixbufs.h: stock-icons.list
+# $(GDK_PIXBUF_CSOURCE) --raw --build-list `cat stock-icons.list` > $(@F)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]