Bläddra i källkod

Update the Win32 cross-build script to reflect recent reorganisation.

tags/v0.99.beta16
Sam Hocevar sam 16 år sedan
förälder
incheckning
c87d6ce85d
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. +4
    -4
      build-win32

+ 4
- 4
build-win32 Visa fil

@@ -8,7 +8,7 @@ set -e


# Clean up our working directory # Clean up our working directory
SRCDIR="`pwd`" SRCDIR="`pwd`"
DIRNAME="libcaca-win32-`sed -ne 's/^AM_INIT_AUTOMAKE(.*, \(.*\)).*/\1/p' configure.ac`"
DIRNAME="libpipi-win32-`sed -ne 's/^AC_INIT(.*, \(.*\)).*/\1/p' configure.ac`"
INSTALLDIR="`pwd`/${DIRNAME}" INSTALLDIR="`pwd`/${DIRNAME}"
BUILDDIR="${INSTALLDIR}/build" BUILDDIR="${INSTALLDIR}/build"
rm -Rf "${INSTALLDIR}" rm -Rf "${INSTALLDIR}"
@@ -20,7 +20,7 @@ make distclean || true


cd "${BUILDDIR}" cd "${BUILDDIR}"
# Build for win32 # Build for win32
"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-doc
"${SRCDIR}/configure" --host=i586-mingw32msvc --prefix=/ --bindir=/bin --libdir=/lib --disable-imlib2 --disable-doc "$@"
make pkglibdir=/lib pkgdatadir=/data bindir=/bin make pkglibdir=/lib pkgdatadir=/data bindir=/bin
# Install into our private directory # Install into our private directory
make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/ make install DESTDIR="${INSTALLDIR}" pkglibdir=/lib/ pkgdatadir=/ bindir=/bin/
@@ -30,8 +30,8 @@ rm -Rf "${BUILDDIR}"
mv "${INSTALLDIR}/bin/"* "${INSTALLDIR}/" mv "${INSTALLDIR}/bin/"* "${INSTALLDIR}/"
mv "${INSTALLDIR}/lib/"* "${INSTALLDIR}/" mv "${INSTALLDIR}/lib/"* "${INSTALLDIR}/"
rm -f "${INSTALLDIR}/caca-config.exe" # Just in case. *sigh*. rm -f "${INSTALLDIR}/caca-config.exe" # Just in case. *sigh*.
i586-mingw32msvc-strip "${INSTALLDIR}/"*.exe
i586-mingw32msvc-strip "${INSTALLDIR}/"*.dll
i586-mingw32msvc-strip "${INSTALLDIR}/"*.exe || true
i586-mingw32msvc-strip "${INSTALLDIR}/"*.dll || true
rmdir "${INSTALLDIR}/bin" rmdir "${INSTALLDIR}/bin"
rmdir "${INSTALLDIR}/lib" rmdir "${INSTALLDIR}/lib"




Laddar…
Avbryt
Spara