mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
chore(tools): improve build_static_qt script, install output in /opt/$qt_version
This commit is contained in:
parent
92d7b46ebd
commit
4ef1241b10
4 changed files with 44 additions and 9 deletions
|
|
@ -13,23 +13,58 @@ RED='\e[1;31m'
|
|||
NC='\e[0m'
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $SCRIPT_DIR/..
|
||||
cd "${SCRIPT_DIR}/.."
|
||||
|
||||
# ==============================================================================
|
||||
|
||||
if [ ! -d "${REPO_FOLDER}/.git" ]; then
|
||||
git clone $REPO_URL $REPO_FOLDER
|
||||
git clone "${REPO_URL}" "${REPO_FOLDER}"
|
||||
fi
|
||||
|
||||
cd $REPO_FOLDER
|
||||
git checkout $QT_VERSION
|
||||
cd "${REPO_FOLDER}"
|
||||
git checkout "${QT_VERSION}"
|
||||
if [[ $? != 0 ]] ; then
|
||||
printf "${RED}Unable to checkout ${QT_VERSION}.${NC}\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./init-repository --module-subset=default,-qtwebengine,-qtandroidextras,-qtcharts,-qtscript,-qtmacextras,-qtdoc,-qtlocation,-qtnetworkauth,-qtpurchasing,-qtremoteobjects,-qtrepotools,-qtscxml,-qtsensors,-qtspeech,-qtspeech,-qttools,-qtwebchannel,-qtwebglplugin,-qtwebsockets,-qtwebview,-qtwinextras,-qtx11extras,-qtxmlpatterns -f
|
||||
./configure -opensource -confirm-license -release -static -c++std c++11 -ccache -silent -nomake examples -nomake tests -system-zlib -qt-libjpeg -qt-libpng -qt-xcb -qt-xkbcommon -qt-freetype -qt-pcre -qt-harfbuzz
|
||||
./init-repository --module-subset=default,\
|
||||
-qtandroidextras,\
|
||||
-qtcharts,\
|
||||
-qtdoc,\
|
||||
-qtlocation,\
|
||||
-qtmacextras,\
|
||||
-qtnetworkauth,\
|
||||
-qtpurchasing,\
|
||||
-qtremoteobjects,\
|
||||
-qtrepotools,\
|
||||
-qtscript,\
|
||||
-qtscxml,\
|
||||
-qtsensors,\
|
||||
-qtspeech,\
|
||||
-qtspeech,\
|
||||
-qttools,\
|
||||
-qtwebchannel,\
|
||||
-qtwebengine,\
|
||||
-qtwebglplugin,\
|
||||
-qtwebsockets,\
|
||||
-qtwebview,\
|
||||
-qtwinextras,\
|
||||
-qtx11extras,\
|
||||
-qtxmlpatterns \
|
||||
-f
|
||||
|
||||
./configure -opensource -confirm-license -release -static -c++std c++11 -ccache -silent -nomake examples -nomake tests \
|
||||
-prefix "/opt/${QT_VERSION}" \
|
||||
-qt-freetype \
|
||||
-qt-harfbuzz \
|
||||
-qt-libjpeg \
|
||||
-qt-libpng \
|
||||
-qt-pcre \
|
||||
-qt-xcb \
|
||||
-qt-xkbcommon \
|
||||
-system-zlib
|
||||
|
||||
if [[ $? != 0 ]] ; then
|
||||
printf "${RED}Unknown configure option.${NC}\n"
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ BLUE='\e[1;34m'
|
|||
NC='\e[0m'
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $SCRIPT_DIR/..
|
||||
cd "${SCRIPT_DIR}/.."
|
||||
|
||||
# ==============================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ BLUE='\e[1;34m'
|
|||
NC='\e[0m'
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $SCRIPT_DIR/..
|
||||
cd "${SCRIPT_DIR}/.."
|
||||
|
||||
# ==============================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
RESOURCES_FILE='resources.qrc'
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $SCRIPT_DIR/..
|
||||
cd "${SCRIPT_DIR}/.."
|
||||
|
||||
echo '<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/">' > $RESOURCES_FILE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue