Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

hook pioneer.rc up to the MXE build system

  • Loading branch information...
commit 5d849a9da48e72abb7e5594277d85382f3587168 1 parent 61b0595
@johnbartholomew johnbartholomew authored
Showing with 11 additions and 0 deletions.
  1. +4 −0 configure.ac
  2. +7 −0 src/win32/Makefile.am
View
4 configure.ac
@@ -32,11 +32,15 @@ AC_DEFUN([MXE_SETUP], [
host_alias=i686-pc-mingw32
ac_tool_prefix=$host_alias-
cross_compiling=yes
+ HAVE_WINDRES=yes
+ MXE_WINDRES="$MXE_BASE/usr/bin/${ac_tool_prefix}windres"
fi
+ AM_CONDITIONAL([HAVE_WINDRES], [test "$HAVE_WINDRES" = yes])
AC_SUBST(MXE_BASE)
AC_SUBST(MXE_CROSS)
AC_SUBST(MXE_PATH)
AC_SUBST(MXE_CMAKE_TOOLCHAIN_FILE)
+ AC_SUBST(MXE_WINDRES)
])
MXE_SETUP
View
7 src/win32/Makefile.am
@@ -10,3 +10,10 @@ noinst_LIBRARIES = libwin32.a
libwin32_a_SOURCES = \
FileSystemWin32.cpp \
OSWin32.cpp
+
+if HAVE_WINDRES
+SUFFIXES = .rc
+libwin32_a_SOURCES += pioneer.rc
+.rc.o:
+ $(AM_V_GEN)$(MXE_WINDRES) $< $@
+endif
Please sign in to comment.
Something went wrong with that request. Please try again.