| Date: Sat, 7 Nov 2020 19:14:15 -0800
Use cross-compile windres if available
Diffstat:
M configure.ac | 1 +
M src/Makefile.am | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
--- |
| t@@ -78,6 +78,7 @@ if test "$CYGWIN" = "yes" ; then
AC_MSG_RESULT([Configuring for native Win32 binary under Cygwin])
AC_DEFINE(CYGWIN, 1, [Define if building under the Cygwin environment])
+ AC_CHECK_TOOL([WINDRES], [windres], [windres])
dnl This flag allows linking with MSVC-generated DLLs. -fnative-struct was
dnl used by gcc 2, and -mms-bitfields by gcc 3, so it is tested for here.
bkp_CFLAGS="$CFLAGS" |
| t@@ -39,6 +39,7 @@ DOPEBIN = ${DOPEDIR}/dopewars
PIXMAPS = dopewars-pill.png dopewars-shot.png dopewars-weed.png
EXTRA_DIST = ${PIXMAPS} pill.ico magic dopewars.rc dopewars.manifest
CLEANFILES = dopewars.res dopewars.exe
+WINDRES = @WINDRES@
install-exec-hook:
@chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \
t@@ -58,4 +59,4 @@ uninstall-local:
done
%.res: %.rc
- windres -O coff -o $@ $<
+ ${WINDRES} -O coff -o $@ $< |