mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
MXE: experiment with creating a RelWithDebInfo build
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
fd2e24d145
commit
7552690afa
2 changed files with 12 additions and 3 deletions
|
@ -108,6 +108,7 @@ export CXXFLAGS=-std=c++11
|
||||||
|
|
||||||
if [[ "$1" == "debug" ]] ; then
|
if [[ "$1" == "debug" ]] ; then
|
||||||
RELEASE="Debug"
|
RELEASE="Debug"
|
||||||
|
RELEASE_MAIN="Debug"
|
||||||
DLL_SUFFIX="d"
|
DLL_SUFFIX="d"
|
||||||
shift
|
shift
|
||||||
if [[ -f Release ]] ; then
|
if [[ -f Release ]] ; then
|
||||||
|
@ -116,6 +117,7 @@ if [[ "$1" == "debug" ]] ; then
|
||||||
touch Debug
|
touch Debug
|
||||||
else
|
else
|
||||||
RELEASE="Release"
|
RELEASE="Release"
|
||||||
|
RELEASE_MAIN="RelWithDebInfo"
|
||||||
DLL_SUFFIX=""
|
DLL_SUFFIX=""
|
||||||
if [[ -f Debug ]] ; then
|
if [[ -f Debug ]] ; then
|
||||||
rm -rf *
|
rm -rf *
|
||||||
|
@ -270,7 +272,7 @@ cd "$BUILDDIR"/subsurface
|
||||||
|
|
||||||
i686-w64-mingw32.shared-cmake \
|
i686-w64-mingw32.shared-cmake \
|
||||||
-DCMAKE_PREFIX_PATH="$BASEDIR"/"$MXEDIR"/usr/i686-w64-mingw32.shared/qt5 \
|
-DCMAKE_PREFIX_PATH="$BASEDIR"/"$MXEDIR"/usr/i686-w64-mingw32.shared/qt5 \
|
||||||
-DCMAKE_BUILD_TYPE=$RELEASE \
|
-DCMAKE_BUILD_TYPE=$RELEASE_MAIN \
|
||||||
-DQT_TRANSLATION_DIR="$BASEDIR"/"$MXEDIR"/usr/i686-w64-mingw32.shared/qt5/translations \
|
-DQT_TRANSLATION_DIR="$BASEDIR"/"$MXEDIR"/usr/i686-w64-mingw32.shared/qt5/translations \
|
||||||
-DMAKENSIS=i686-w64-mingw32.shared-makensis \
|
-DMAKENSIS=i686-w64-mingw32.shared-makensis \
|
||||||
-DLIBDIVECOMPUTER_INCLUDE_DIR="$BASEDIR"/"$MXEDIR"/usr/i686-w64-mingw32.shared/include \
|
-DLIBDIVECOMPUTER_INCLUDE_DIR="$BASEDIR"/"$MXEDIR"/usr/i686-w64-mingw32.shared/include \
|
||||||
|
@ -279,3 +281,10 @@ i686-w64-mingw32.shared-cmake \
|
||||||
"$BASEDIR"/subsurface
|
"$BASEDIR"/subsurface
|
||||||
|
|
||||||
make $JOBS "$@"
|
make $JOBS "$@"
|
||||||
|
|
||||||
|
OBJCOPY="i686-w64-mingw32.shared-objcopy"
|
||||||
|
if [[ "$RELEASE_MAIN" == "RelWithDebInfo" ]] ; then
|
||||||
|
$OBJCOPY --only-keep-debug subsurface.exe subsurface.exe.debug
|
||||||
|
$OBJCOPY --strip-debug --strip-unneeded subsurface.exe
|
||||||
|
$OBJCOPY --add-gnu-debuglink=subsurface.exe.debug subsurface.exe
|
||||||
|
fi
|
||||||
|
|
|
@ -7,9 +7,9 @@ fi
|
||||||
cd ${TRAVIS_BUILD_DIR}/../win32/subsurface
|
cd ${TRAVIS_BUILD_DIR}/../win32/subsurface
|
||||||
|
|
||||||
echo "Submitting the folloing Windows installer for continuous build release:"
|
echo "Submitting the folloing Windows installer for continuous build release:"
|
||||||
find . -name subsurface\*.exe
|
find . -name subsurface\*.exe*
|
||||||
|
|
||||||
# get and run the upload script
|
# get and run the upload script
|
||||||
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||||
bash ./upload.sh subsurface*.exe
|
bash ./upload.sh subsurface*.exe*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue