Commit 1d14a302 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix build in CI: build dependencies

parent 4948f56e
Pipeline #184329 passed with stage
in 2 minutes and 11 seconds
......@@ -8,6 +8,10 @@ stages:
build:
stage: build
script:
- cd src/lib
- chmod +x build_libs.sh
- ./build_libs.sh
- cd ../..
- mkdir -p build
- cd build
- /usr/src/mxe/usr/x86_64-w64-mingw32.shared.posix/qt5/bin/qmake ../src/Lichtsteuerung.pro
......
#!/bin/bash
echo "Build segvcatch"
cd segvcatch
chmod +x build.sh
./build.sh
cd ..
echo $'\n\nBuild libbacktrace'
cd libbacktrace
chmod +x build.sh
./build.sh
cd ..
echo "Lib installation complete"
\ No newline at end of file
......@@ -9,12 +9,23 @@ git clone https://github.com/ianlancetaylor/libbacktrace.git $GIT_DIR
cd $GIT_DIR
# build from http://boostorg.github.io/stacktrace/stacktrace/configuration_and_build.html#stacktrace.configuration_and_build.mingw_and_mingw_w64_specific_not
./configure
if [[ -z "$GITLAB_CI" ]]; then
echo "We are not in the gitlab CI"
./configure
else
# we are in the CI and want to cross compile
echo "We are in the gitlab CI"
./configure --host=mingw32
fi
make
cd ..
# move important files to new folder
mkdir -p lib
echo "$GIT_DIR:"
ls -al $GIT_DIR
echo "$GIT_DIR/.libs:"
ls -al $GIT_DIR/.libs
mv $GIT_DIR/.libs/libbacktrace.a lib
mkdir -p include
mv $GIT_DIR/backtrace.h include
......
......@@ -22,9 +22,10 @@ else
cmake ..
make
cd ..
EXTRA_DIR="lib"
# we are on linux and cross compile
fi
cd ..
mv segvcatch.git/release/libsegvcatch.a lib
mv segvcatch.git/release/$EXTRA_DIR/libsegvcatch.a lib
mv segvcatch.git/lib/segvcatch.h include
echo "Installation complete"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment