summaryrefslogtreecommitdiffstats
path: root/build/windows/gimprc.rule
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--build/windows/gimprc.rule14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/windows/gimprc.rule b/build/windows/gimprc.rule
new file mode 100644
index 0000000..376bb3a
--- /dev/null
+++ b/build/windows/gimprc.rule
@@ -0,0 +1,14 @@
+# Version resources for Microsoft Windows
+
+GIMPAPPRC = $(top_builddir)/build/windows/gimp.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%/\+%/%'`"\
+ $(GIMPAPPRC) $@