diff options
author | 2008-09-05 12:03:45 +0000 | |
---|---|---|
committer | 2008-09-05 12:03:45 +0000 | |
commit | 542039fab09bd46f419702667cd342ae8f88b498 (patch) | |
tree | 35be220cdf881408e7c970eb28f21cf25c88bd96 /autobuild.sh | |
parent | Fix starting of xen domains without a PVFB console by removing default emulator (diff) | |
download | libvirt-542039fab09bd46f419702667cd342ae8f88b498.tar.gz libvirt-542039fab09bd46f419702667cd342ae8f88b498.tar.bz2 libvirt-542039fab09bd46f419702667cd342ae8f88b498.zip |
Fully support mingw builds
Diffstat (limited to 'autobuild.sh')
-rwxr-xr-x | autobuild.sh | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/autobuild.sh b/autobuild.sh index 2fbecea88..50b4e0ce7 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -17,8 +17,6 @@ rm -rf coverage ./autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \ --enable-test-coverage \ --enable-compile-warnings=error \ - --with-openvz \ - --with-lxc \ --with-xen-proxy # If the MAKEFLAGS envvar does not yet include a -j option, @@ -51,5 +49,40 @@ if [ -f /usr/bin/rpmbuild ]; then NOW=`date +"%s"` EXTRA_RELEASE=".$USER$NOW" fi - rpmbuild --nodeps --define "extra_release $EXTRA_RELEASE" -ta --clean *.tar.gz + + rpmbuild --nodeps \ + --define "extra_release $EXTRA_RELEASE" \ + --define "_sourcedir `pwd`" \ + -ba --clean libvirt.spec +fi + +if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then + make distclean + + PKG_CONFIG_PATH="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig" \ + CC="i686-pc-mingw32-gcc" \ + ./configure \ + --build=$(uname -m)-pc-linux \ + --host=i686-pc-mingw32 \ + --prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \ + --without-sasl \ + --without-avahi \ + --without-polkit \ + --without-python \ + --without-xen \ + --without-qemu \ + --without-lxc \ + --without-openvz \ + --without-libvirtd + + make + make install + + #set -o pipefail + #make check 2>&1 | tee "$RESULTS" + + rpmbuild --nodeps \ + --define "extra_release $EXTRA_RELEASE" \ + --define "_sourcedir `pwd`" \ + -ba --clean mingw-libvirt.spec fi |