-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-win.sh
32 lines (27 loc) · 1.34 KB
/
build-win.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set -euxo pipefail
echo "making SHV ${WORKSPACE:-}"
export PATH="/c/mingw-12/x86_64-12.1.0-release-posix-seh-rt_v10-rev3/mingw64/bin:/c/Qt5/Tools/CMake_64/bin:$PATH"
export CXXFLAGS="-DGIT_COMMIT=${CI_COMMIT_SHA} -DGIT_BRANCH=${CI_COMMIT_REF_SLUG} -DBUILD_ID=${CI_PIPELINE_ID}"
cmake.exe \
-DLIBSHV_WITH_WEBSOCKETS=OFF \
-G "MinGW Makefiles" \
-DCMAKE_PREFIX_PATH=C:/Qt6/6.5.3/mingw_64 \
-DCMAKE_INSTALL_PREFIX=. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DUSE_QT6=ON \
-DCMAKE_C_COMPILER_LAUNCHER=ccache.exe \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache.exe \
.
cmake.exe --build . -j8
# We're installing into the build directory, all the .iss scripts depend on that.
cmake.exe --install .
echo "making jn50view-doc"
pushd clients/jn50view/doc/help
c:/Qt/Tools/mingw730_64/bin/mingw32-make.exe html
pushd
# TODO: Reenable these, if we're ever going to install this somewhere. Also port them to windeployqt!
# "C:\Program Files (x86)\Inno Setup 5\iscc.exe" "-DVERSION=${BFSVIEW_VERSION}" clients/bfsview/bfsview.iss || exit /b 2
# "C:\Program Files (x86)\Inno Setup 5\iscc.exe" "-DVERSION=${JN50VIEW_VERSION}" clients/jn50view/jn50view.iss || exit /b 2
# JN50VIEW_VERSION=`grep APP_VERSION clients/jn50view/src/version.h | cut -d\" -f2`
# BFSVIEW_VERSION=`grep APP_VERSION clients/bfsview/src/version.h | cut -d\" -f2`