build/windows: strengthen `windres` call.

This commit is contained in:
Jehan 2015-12-31 18:35:07 +01:00
parent 05267a9a98
commit 2c6a53351a
1 changed files with 5 additions and 3 deletions

View File

@ -2,10 +2,12 @@
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="$(top_srcdir)" \
-I$(top_srcdir)/app \
-I$(top_builddir)/app \
--define TOP_SRCDIR="`echo $(top_srcdir) | sed 's*//*/*'`" \
-I"`echo $(top_srcdir)/app | sed 's%/\+%/%'`" \
-I"`echo $(top_builddir)/app | sed 's%/\+%/%'`"\
$(GIMPPLUGINRC) $@