37 lines
1.9 KiB
Bash
Executable File
37 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
# this script is invoked by ci and people who want to build
|
|
# their own qt5 gui for windows
|
|
# change the make commands if you have more or less compute
|
|
|
|
set -e
|
|
|
|
JOBS=$(nproc)
|
|
echo "Building with -j$JOBS"
|
|
|
|
# get our current srcdir
|
|
SRCDIR=$PWD
|
|
# change this if you are on a different platform
|
|
QT_HOST_PLATFORM=linux-g++
|
|
|
|
git clone https://github.com/openssl/openssl.git -b OpenSSL_1_1_1h
|
|
git clone https://code.qt.io/qt/qt5.git -b 5.15.2
|
|
#git clone https://github.com/jedisct1/libsodium.git -b 1.0.18-RELEASE
|
|
git clone https://github.com/despair86/lokinet-gui-deployment-kit.git gui
|
|
cd openssl
|
|
RC=i686-w64-mingw32-windres RANLIB=i686-w64-mingw32-ranlib CC='ccache i686-w64-mingw32-gcc' LD=i686-w64-mingw32-ld ./Configure no-shared no-async mingw --prefix=$SRCDIR/ssleay-win32
|
|
make -j$JOBS; make install
|
|
cd $SRCDIR
|
|
mkdir qt5-build
|
|
cd qt5; perl init-repository --module-subset=default,-qtwebengine,-qtactiveqt,-qtlocation
|
|
cd $SRCDIR/qt5-build
|
|
$SRCDIR/qt5/configure -prefix $SRCDIR/qt5-win32 -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz -opensource -confirm-license \
|
|
-platform $QT_HOST_PLATFORM -xplatform win32-g++ -release -device-option 'CROSS_COMPILE=ccache i686-w64-mingw32-' -opengl desktop -no-angle \
|
|
-skip qtwebengine -optimize-size -strip -ssl -openssl-linked -qt-sqlite -sql-sqlite -qt-assimp -qt-tiff -qt-webp \
|
|
OPENSSL_PREFIX=$SRCDIR/ssleay-win32 'OPENSSL_LIBS_DEBUG=-lssl -lcrypto' 'OPENSSL_LIBS_RELEASE=-lssl -lcrypto' \
|
|
'OPENSSL_LIBS=-lws2_32 -lgdi32 -ladvapi32 -lcrypt32 -luser32' OPENSSL_INCDIR=$SRCDIR/ssleay-win32/include OPENSSL_LIBDIR=$SRCDIR/ssleay-win32/lib \
|
|
-qt3d-simd sse2 -ccache -skip qtactiveqt -skip qtlocation -nomake examples -nomake tests
|
|
make -j$JOBS; make install
|
|
#cd $SRCDIR/libsodium
|
|
#CC='ccache i686-w64-mingw32-gcc' ./configure --host=i686-w64-mingw32 --target=i686-w64-mingw32 --disable-shared --prefix=$SRCDIR/sodium-win32
|
|
#make -j$JOBS; make install
|