Detected from svn working copy if not specified.
-l ldnsdir Directory where ldns resides. Detected from Makefile.
-wssl openssl.xx.tar.gz Also build openssl from tarball for windows dist.
+ -wxp expat.xx.tar.gz Also build expat from tarball for windows dist.
-w ... Build windows binary dist. last args passed to configure.
EOF
exit 1
LDNSDIR=""
DOWIN="no"
WINSSL=""
+WINEXPAT=""
# Parse the command line arguments.
while [ "$1" ]; do
WINSSL="$2"
shift
;;
+ "-wxp")
+ WINEXPAT="$2"
+ shift
+ ;;
"-w")
DOWIN="yes"
shift
cd ..
fi
+ if test -n "$WINEXPAT"; then
+ info "Cross compile $WINEXPAT"
+ info "wxp: tar unpack"
+ (cd ..; gzip -cd $WINEXPAT) | tar xf - || error_cleanup "tar unpack of $WINEXPAT failed"
+ wxpinstall="`pwd`/wxpinstall"
+ cd expat-* || error_cleanup "no expat-X dir in tarball"
+ info "wxp: configure"
+ mingw32-configure --prefix="$wxpinstall" --exec-prefix="$wxpinstall" --bindir="$wxpinstall/bin" --includedir="$wxpinstall/include" --mandir="$wxpinstall/man" --libdir="$wxpinstall/lib" || error_cleanup "libexpat configure failed"
+ info "wxp: make"
+ make || error_cleanup "libexpat crosscompile failed"
+ info "wxp: make install"
+ make install || error_cleanup "libexpat install failed"
+ cross_flag="$cross_flag --with-libexpat=$wxpinstall"
+ cd ..
+ fi
+
info "Exporting source from SVN."
svn export "$SVNROOT" unbound || error_cleanup "SVN command failed"
cd unbound || error_cleanup "Unbound not exported correctly from SVN"
File "..\unbound-checkconf.exe"
File "..\unbound-control.exe"
File "..\unbound-host.exe"
+ File "..\unbound-anchor.exe"
File "..\unbound-service-install.exe"
File "..\unbound-service-remove.exe"
File "..\anchor-update.exe"
Delete "$INSTDIR\unbound-checkconf.exe"
Delete "$INSTDIR\unbound-control.exe"
Delete "$INSTDIR\unbound-host.exe"
+ Delete "$INSTDIR\unbound-anchor.exe"
Delete "$INSTDIR\unbound-service-install.exe"
Delete "$INSTDIR\unbound-service-remove.exe"
Delete "$INSTDIR\anchor-update.exe"