Gimp/build/windows/gimprc.rule
Jehan 5b58cc4b7c build: fix header search paths for windres calls (Win32 build).
The Win32 build was not taking the new path of git-version.h into
account and was outputting these errors:
> ../build/windows/gimp.rc:2:10: fatal error: git-version.h: No such file or directory
>  #include "git-version.h"
>           ^~~~~~~~~~~~~~~
2018-02-12 18:55:50 +01:00

14 lines
548 B
Text

# 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) $@