#1109 Work in Progress on MinGW/32 daily build

v0.27.3
Robin Mills 9 years ago
parent d20a454671
commit dcf72eafd8

@ -30,7 +30,9 @@ echo "---- dist = $dist ------"
echo "---- build = $build ------" echo "---- build = $build ------"
## ##
# test the build (don't test msvc because it was tested by cmakeBuild) # test the build
# - don't test msvc because it was tested by cmakeBuild
# - don't test mingw because it's build with autotools and tested in line
testBuild() testBuild()
{ {
if [ -e $dist/bin/exiv2 ]; then if [ -e $dist/bin/exiv2 ]; then
@ -105,13 +107,16 @@ testBuild()
mingw) mingw)
if [ ! -z "$RECURSIVE" ]; then if [ ! -z "$RECURSIVE" ]; then
# we are already in MinGW/bash, so build # we are already in MinGW/bash, so build
##
# dont use cmake as I can't get it to work
# cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$dist -DEXIV2_ENABLE_NLS=OFF -DCMAKE_C_COMPILER=$(which gcc) -DCMAKE_CXX_COMPILER=$(which g++) $exiv2 # cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$dist -DEXIV2_ENABLE_NLS=OFF -DCMAKE_C_COMPILER=$(which gcc) -DCMAKE_CXX_COMPILER=$(which g++) $exiv2
make distclean
##
# build with autotools
make clean
make config make config
./configure --prefix=/usr/local ./configure --prefix=/usr/local
make make
# run exiv2 to check the build is sane
bin/.libs/exiv2 --verbose --version
# install and copy the build to the dist # install and copy the build to the dist
make install make install
@ -147,9 +152,6 @@ testBuild()
export LDFLAGS=-m64 export LDFLAGS=-m64
/c/MinGW64/msys/1.0/bin/bash.exe -c "export PATH=/c/TDM-GCC-64/bin:/c/MinGW64/bin:/c/MinGW64/msys/1.0/bin:/c/MinGW64/msys/1.0/local/bin; $0" /c/MinGW64/msys/1.0/bin/bash.exe -c "export PATH=/c/TDM-GCC-64/bin:/c/MinGW64/bin:/c/MinGW64/msys/1.0/bin:/c/MinGW64/msys/1.0/local/bin; $0"
result=$? result=$?
if [ "$result" == "0" ]; then
testBuild
fi
fi fi
if [ "$win32" == true ]; then if [ "$win32" == true ]; then
export CFLAGS=-m32 export CFLAGS=-m32
@ -157,9 +159,6 @@ testBuild()
export LDFLAGS=-m32 export LDFLAGS=-m32
/c/MinGW/msys/1.0/bin/bash.exe -c "export PATH=/c/Qt/Qt5.6.0/5.6/mingw49_32/bin:/c/Qt/Qt5.6.0/Tools/mingw492_32/bin:/c/MinGW/bin:/usr/bin:/usr/local/bin:/c/cygwin64/bin:/c/Users/rmills/com:.; $0" /c/MinGW/msys/1.0/bin/bash.exe -c "export PATH=/c/Qt/Qt5.6.0/5.6/mingw49_32/bin:/c/Qt/Qt5.6.0/Tools/mingw492_32/bin:/c/MinGW/bin:/usr/bin:/usr/local/bin:/c/cygwin64/bin:/c/Users/rmills/com:.; $0"
result=$? result=$?
if [ "$result" == "0" ]; then
testBuild
fi
fi fi
fi fi
;; ;;

Loading…
Cancel
Save