2020-11-11 14:55:00 +00:00
|
|
|
#!/bin/bash
|
2021-01-25 16:46:00 +00:00
|
|
|
set -e
|
|
|
|
set +x
|
2020-11-11 14:55:00 +00:00
|
|
|
mkdir -p build-windows
|
|
|
|
cd build-windows
|
2021-04-15 17:39:45 +00:00
|
|
|
cmake \
|
2021-06-18 15:28:33 +00:00
|
|
|
-G 'Unix Makefiles' \
|
2021-04-15 17:39:45 +00:00
|
|
|
-DCMAKE_EXE_LINKER_FLAGS=-fstack-protector \
|
|
|
|
-DCMAKE_CXX_FLAGS=-fdiagnostics-color=always\
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=../contrib/cross/mingw64.cmake\
|
|
|
|
-DBUILD_STATIC_DEPS=ON \
|
|
|
|
-DBUILD_PACKAGE=ON \
|
|
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
|
|
-DBUILD_TESTING=OFF \
|
2021-05-13 10:30:40 +00:00
|
|
|
-DBUILD_LIBLOKINET=ON \
|
2021-04-15 17:39:45 +00:00
|
|
|
-DWITH_TESTS=OFF \
|
|
|
|
-DNATIVE_BUILD=OFF \
|
|
|
|
-DSTATIC_LINK=ON \
|
|
|
|
-DWITH_SYSTEMD=OFF \
|
|
|
|
-DFORCE_OXENMQ_SUBMODULE=ON \
|
|
|
|
-DSUBMODULE_CHECK=OFF \
|
|
|
|
-DWITH_LTO=OFF \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
$@ ..
|
2021-06-18 15:28:33 +00:00
|
|
|
make package -j${JOBS:-$(nproc)}
|