fork repo
Some checks failed
backend / cross (aarch64) (push) Failing after 11m25s
backend / cross (arm) (push) Failing after 7m16s
backend / cross (armhf) (push) Failing after 2m5s
backend / cross (i686) (push) Failing after 31s
backend / cross (mips) (push) Failing after 31s
backend / cross (mips64) (push) Failing after 31s
backend / cross (mips64el) (push) Failing after 2m49s
backend / cross (s390x) (push) Failing after 6m45s
backend / cross (mipsel) (push) Failing after 16m40s
backend / cross (win32) (push) Failing after 7m0s
backend / cross (x86_64) (push) Failing after 17m57s
frontend / build (push) Failing after 5m51s
Some checks failed
backend / cross (aarch64) (push) Failing after 11m25s
backend / cross (arm) (push) Failing after 7m16s
backend / cross (armhf) (push) Failing after 2m5s
backend / cross (i686) (push) Failing after 31s
backend / cross (mips) (push) Failing after 31s
backend / cross (mips64) (push) Failing after 31s
backend / cross (mips64el) (push) Failing after 2m49s
backend / cross (s390x) (push) Failing after 6m45s
backend / cross (mipsel) (push) Failing after 16m40s
backend / cross (win32) (push) Failing after 7m0s
backend / cross (x86_64) (push) Failing after 17m57s
frontend / build (push) Failing after 5m51s
This commit is contained in:
27
scripts/mingw-build.sh
Normal file
27
scripts/mingw-build.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
build_libwebsockets() {
|
||||
svn co https://github.com/msys2/MINGW-packages/trunk/mingw-w64-libwebsockets
|
||||
sed -i 's/openssl/mbedtls/' mingw-w64-libwebsockets/PKGBUILD
|
||||
sed -i '/-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX}/a \ -DLWS_WITH_MBEDTLS=ON \\' mingw-w64-libwebsockets/PKGBUILD
|
||||
sed -i '/-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX}/a \ -DLWS_WITH_LIBUV=ON \\' mingw-w64-libwebsockets/PKGBUILD
|
||||
pushd mingw-w64-libwebsockets
|
||||
makepkg-mingw --cleanbuild --syncdeps --force --noconfirm
|
||||
pacman -U *.pkg.tar.zst --noconfirm
|
||||
popd
|
||||
}
|
||||
|
||||
build_libwebsockets
|
||||
|
||||
# workaround for the lib name change
|
||||
cp ${MINGW_PREFIX}/lib/libuv_a.a ${MINGW_PREFIX}/lib/libuv.a
|
||||
|
||||
rm -rf build && mkdir -p build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=RELEASE \
|
||||
-DCMAKE_FIND_LIBRARY_SUFFIXES=".a" \
|
||||
-DCMAKE_C_FLAGS="-Os -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -flto" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static -no-pie -Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections" \
|
||||
..
|
||||
cmake --build .
|
Reference in New Issue
Block a user