summaryrefslogtreecommitdiffstats
path: root/build/windows/gimprc-plug-ins.rule
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:13:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 03:13:10 +0000
commit3c57dd931145d43f2b0aef96c4d178135956bf91 (patch)
tree3de698981e9f0cc2c4f9569b19a5f3595e741f6b /build/windows/gimprc-plug-ins.rule
parentInitial commit. (diff)
downloadgimp-3c57dd931145d43f2b0aef96c4d178135956bf91.tar.xz
gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.zip
Adding upstream version 2.10.36.upstream/2.10.36
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build/windows/gimprc-plug-ins.rule')
-rw-r--r--build/windows/gimprc-plug-ins.rule14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/windows/gimprc-plug-ins.rule b/build/windows/gimprc-plug-ins.rule
new file mode 100644
index 0000000..eaf059d
--- /dev/null
+++ b/build/windows/gimprc-plug-ins.rule
@@ -0,0 +1,14 @@
+# Version resources for Microsoft Windows
+
+GIMPPLUGINRC = $(top_builddir)/build/windows/gimp-plug-ins.rc
+
+# `windres` seems a very stupid tool and it breaks with double shlashes
+# in parameter paths. Strengthen the rule a little.
+%.rc.o:
+ $(WINDRES) --define ORIGINALFILENAME_STR="$*$(EXEEXT)" \
+ --define INTERNALNAME_STR="$*" \
+ --define TOP_SRCDIR="`echo $(top_srcdir) | sed 's*//*/*'`" \
+ -I"`echo $(top_srcdir)/app | sed 's%/\+%/%'`" \
+ -I"`echo $(top_builddir)/app | sed 's%/\+%/%'`"\
+ -I"`echo $(top_builddir) | sed 's%/\+%/%'`"\
+ $(GIMPPLUGINRC) $@