mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 10:14:32 +00:00
test build on 5.12.2
This commit is contained in:
parent
d81c2aba16
commit
8511183b5d
3
.gitignore
vendored
3
.gitignore
vendored
@ -54,10 +54,13 @@ snap/\.snapcraft/
|
||||
\.buildconfig
|
||||
|
||||
sharedQt/
|
||||
sharedQtWin32/
|
||||
sharedQtWin64/
|
||||
|
||||
distro/
|
||||
|
||||
staticQt/
|
||||
staticQtWin32/
|
||||
staticQtWin64/
|
||||
build
|
||||
UnitTests/release/*
|
||||
|
@ -40,6 +40,9 @@ DISTFILES += \
|
||||
README.md \
|
||||
sharedBuild.sh \
|
||||
README.md \
|
||||
staticBuildCrossWin.sh \
|
||||
staticBuildCrossWin32.sh \
|
||||
staticBuildCrossWin64.sh \
|
||||
sharedBuild.bat \
|
||||
sharedBuildCrossWin.sh
|
||||
sharedBuildCrossWin32.sh \
|
||||
sharedBuildCrossWin64.sh
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
QT -= gui
|
||||
|
||||
CONFIG += c++14 console
|
||||
CONFIG += c++17 console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
|
@ -13,7 +13,7 @@
|
||||
#-------------------------------------------------
|
||||
|
||||
QT -= gui
|
||||
|
||||
CONFIG += c++17
|
||||
TARGET = Deploy
|
||||
TEMPLATE = lib
|
||||
|
||||
|
2
qtBase
2
qtBase
@ -1 +1 @@
|
||||
Subproject commit 08de243eaa007597c2bfbc97d3d14e2f821ac4be
|
||||
Subproject commit 856fb1ab44722f5165fb6b5dec0bd748006acd10
|
@ -48,7 +48,8 @@ else
|
||||
|
||||
rm -rdf $BASE_DIR/sharedQt
|
||||
git clean -xdf
|
||||
./configure -confirm-license -prefix $BASE_DIR/sharedQt -release -shared -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
git checkout v5.12.2
|
||||
./configure -confirm-license -prefix $BASE_DIR/sharedQt -release -shared -no-opengl -no-openssl -opensource -nomake tests -nomake examples -qt-pcre -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
make install -j$(nproc)
|
||||
break
|
||||
fi
|
||||
|
@ -45,18 +45,20 @@ cd $BASE_DIR/qtBase
|
||||
for var in "${QTLIBS[@]}"
|
||||
do
|
||||
if [ -e "$BASE_DIR/$QT_DIR/lib/$var" ]
|
||||
then
|
||||
echo "$var - ok"
|
||||
else
|
||||
echo "$var - not exits!. rebuild qt ..."
|
||||
then
|
||||
echo "$var - ok"
|
||||
else
|
||||
echo "$var - not exits!. rebuild qt ..."
|
||||
rm -rdf $BASE_DIR/$QT_DIR
|
||||
git clean -xdf
|
||||
./configure -xplatform win32-g++ -device-option CROSS_COMPILE=x86_64-w64-mingw32- -confirm-license -prefix $BASE_DIR/$QT_DIR -release -qt-pcre -optimize-size -shared -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
git clean -xdf
|
||||
git checkout v5.12.2
|
||||
|
||||
./configure -xplatform win32-g++ -device-option CROSS_COMPILE=x86_64-w64-mingw32- -confirm-license -prefix $BASE_DIR/$QT_DIR -release -optimize-size -shared -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
make install -j$(nproc)
|
||||
break
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
cd ..
|
||||
rm -rdf $BASE_DIR/build
|
||||
|
||||
@ -66,7 +68,7 @@ $BASE_DIR/$QT_DIR/bin/qmake -r $BASE_DIR/CQtDeployer.pro
|
||||
make -j$(nproc)
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
then
|
||||
echo ""
|
||||
echo "Build is successfully completed!"
|
||||
else
|
@ -54,7 +54,7 @@ do
|
||||
echo "$var - not exits!. rebuild qt ..."
|
||||
rm -rdf $BASE_DIR/$QT_DIR
|
||||
git clean -xdf
|
||||
git checkout .
|
||||
git checkout v5.12.2
|
||||
./configure -confirm-license -prefix $BASE_DIR/$QT_DIR -release -static -optimize-size -qt-pcre -qt-zlib -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
make install -j$(nproc)
|
||||
break
|
||||
|
85
staticBuildCrossWin32.sh
Executable file
85
staticBuildCrossWin32.sh
Executable file
@ -0,0 +1,85 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Copyright (C) 2018-2019 QuasarApp.
|
||||
# Distributed under the lgplv3 software license, see the accompanying
|
||||
# Everyone is permitted to copy and distribute verbatim copies
|
||||
# of this license document, but changing it is not allowed.
|
||||
#
|
||||
|
||||
IS_SNAP="$1"
|
||||
QT_DIR=staticQtWin32
|
||||
|
||||
if [ -e "$PREFIX"]
|
||||
then
|
||||
echo "build for snap"
|
||||
SNAP_DEFINES="$IS_SNAP"
|
||||
fi
|
||||
|
||||
declare -a QTLIBS
|
||||
|
||||
BASE_DIR=$(dirname "$(readlink -f "$0")")
|
||||
QTLIBS=( libQt5Sql.a libQt5Xml.a libQt5Core.a libQt5Test.a libQt5Network.a libQt5Bootstrap.a libQt5Concurrent.a)
|
||||
|
||||
RELEASE_DIR=$BASE_DIR/distro
|
||||
|
||||
if [ -e "$PREFIX"]
|
||||
then
|
||||
echo "PREFIX is empty, use default install path $RELEASE_DIR"
|
||||
else
|
||||
echo "use PREFIX path!"
|
||||
RELEASE_DIR=$PREFIX
|
||||
fi
|
||||
|
||||
cd $BASE_DIR
|
||||
|
||||
#git submodule update --init --recursive
|
||||
|
||||
make clean
|
||||
find $BASE_DIR -type f -name 'Makefile' -exec rm {} \;
|
||||
rm $BASE_DIR/QuasarAppLib/Makefile.QuasarApp
|
||||
rm -rdf $RELEASE_DIR
|
||||
|
||||
cd $BASE_DIR/qtBase
|
||||
|
||||
for var in "${QTLIBS[@]}"
|
||||
do
|
||||
if [ -e "$BASE_DIR/$QT_DIR/lib/$var" ]
|
||||
then
|
||||
echo "$var - ok"
|
||||
else
|
||||
echo "$var - not exits!. rebuild qt ..."
|
||||
rm -rdf $BASE_DIR/$QT_DIR
|
||||
git clean -xdf
|
||||
git checkout v5.11.3
|
||||
./configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- -confirm-license -prefix $BASE_DIR/$QT_DIR -release -optimize-size -static -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
make install -j$(nproc)
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
rm -rdf $BASE_DIR/build
|
||||
|
||||
export PATH=$PATH:$BASE_DIR/$QT_DIR
|
||||
$BASE_DIR/$QT_DIR/bin/qmake QMAKE_LFLAGS+="-static" -r $BASE_DIR/CQtDeployer.pro
|
||||
|
||||
make -j$(nproc)
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo ""
|
||||
echo "Build is successfully completed!"
|
||||
else
|
||||
echo ""
|
||||
echo "Build is failed!" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p $RELEASE_DIR
|
||||
|
||||
cp $BASE_DIR/build/release/cqtdeployer $RELEASE_DIR/
|
||||
|
||||
strip $RELEASE_DIR/*
|
||||
|
||||
|
@ -50,7 +50,8 @@ do
|
||||
else
|
||||
echo "$var - not exits!. rebuild qt ..."
|
||||
rm -rdf $BASE_DIR/$QT_DIR
|
||||
git clean -xdf
|
||||
git clean -xdf
|
||||
git checkout v5.11.3
|
||||
./configure -xplatform win32-g++ -device-option CROSS_COMPILE=x86_64-w64-mingw32- -confirm-license -prefix $BASE_DIR/$QT_DIR -release -optimize-size -static -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
|
||||
make install -j$(nproc)
|
||||
break
|
@ -1,5 +1,5 @@
|
||||
QT += quick
|
||||
CONFIG += c++11
|
||||
CONFIG += c++17
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any Qt feature that has been marked deprecated (the exact warnings
|
||||
|
@ -22,7 +22,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
CONFIG += c++11
|
||||
CONFIG += c++17
|
||||
|
||||
SOURCES += \
|
||||
main.cpp \
|
||||
|
Loading…
x
Reference in New Issue
Block a user