Skip to content

Commit

Permalink
appveyor with more build options and binaries wbhart#280
Browse files Browse the repository at this point in the history
  • Loading branch information
GitMensch committed Oct 1, 2019
1 parent 51bbc2c commit cc18b84
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
28 changes: 16 additions & 12 deletions .appveyor_msys_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@ echo && echo build: ./autogen.sh
./autogen.sh

case "$LIBRARY" in
"static") LIB="--enable-static --disable-shared";;
"shared") LIB="--disable-static --enable-shared";;
"static") CONFIGURE_FLAGS="--enable-static --disable-shared";;
"shared") CONFIGURE_FLAGS="--disable-static --enable-shared";;
esac
case "$FEATURE" in
*GMP*) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-gmpcompat";;
MODE="$MODE-gmp";;
esac
case "$FEATURE" in
*CXX*) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-cxx"
MODE="$MODE-cxx";;
esac

echo && echo build: ./configure ABI=$ABI $LIB $CONFIG_CXX $CONFIG_GMP
./configure ABI=$ABI $LIB $CONFIG_CXX $CONFIG_GMP
echo && echo build: ./configure ABI=$ABI $CONFIGURE_FLAGS
./configure ABI=$ABI $CONFIGURE_FLAGS --prefix=/usr/local

echo && echo build: make
make
Expand All @@ -23,12 +31,8 @@ make check
echo && echo build: make dist
make dist

if test "x$CONFIG_GMP" != "x"; then
if test "x$CONFIG_CXX" != "x"; then
MODE="C++"
else
MODE=""
fi
echo && echo build: make install DESTDIR=$(pwd)/bin$ABI$MODE-$LIBRARY
make install DESTDIR=$(pwd)/bin$ABI$MODE-$LIBRARY
if test "x$FEATURE" != "x"; then
echo && echo build: make install DESTDIR=$(pwd)/package
make install DESTDIR=$(pwd)/package && cd package/usr/local && \
zip -9 -r ../../../bin$ABI$MODE-$LIBRARY.zip *
fi
12 changes: 4 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,19 @@ environment:
- COMPILER: MinGW-w64
ABI: 32
LIBRARY: static
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat
FEATURE: CXX GMP
- COMPILER: MinGW-w64
ABI: 32
LIBRARY: shared
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat
FEATURE: CXX GMP
- COMPILER: MinGW-w64
ABI: 64
LIBRARY: static
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat
FEATURE: CXX GMP
- COMPILER: MinGW-w64
ABI: 64
LIBRARY: shared
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat
FEATURE: CXX GMP

install:
- if [%COMPILER%]==[MinGW-w64] C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S %MINGW_PREREQ%"
Expand Down

0 comments on commit cc18b84

Please sign in to comment.