Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
2547431f
Commit
2547431f
authored
Mar 15, 2018
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(tools): add a build_static_qt script
parent
2078a309
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
build_static_qt
tools/build_static_qt
+38
-0
No files found.
tools/build_static_qt
0 → 100755
View file @
2547431f
#!/usr/bin/env bash
# See: http://wiki.qt.io/Building_Qt_5_from_Git
# See: http://doc.qt.io/qt-5/configure-options.html
REPO_URL
=
'git://code.qt.io/qt/qt5.git'
REPO_FOLDER
=
qt5_static
QT_VERSION
=
'5.10'
# ==============================================================================
RED
=
'\e[1;31m'
NC
=
'\e[0m'
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
cd
$SCRIPT_DIR
/..
# ==============================================================================
if
[
!
-d
"
${
REPO_FOLDER
}
/.git"
]
;
then
git clone
$REPO_URL
$REPO_FOLDER
fi
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
if
[[
$?
!=
0
]]
;
then
printf
"
${
RED
}
Unknown configure option.
${
NC
}
\n
"
exit
1
fi
make
-r
-j5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment