-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from QuasarApp/version_1_0
added shared build
- Loading branch information
Showing
6 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,5 @@ CMakeLists.txt.user* | |
snap/\.snapcraft/ | ||
|
||
\.buildconfig | ||
|
||
sharedQt/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule qtBase
updated
17 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
declare -a QTLIBS | ||
|
||
BASE_DIR=$(dirname "$(readlink -f "$0")") | ||
|
||
QTLIBS=( libQt5Sql.so libQt5Xml.so libQt5Core.so libQt5Test.so libQt5Network.so libQt5Concurrent.so) | ||
|
||
cd $BASE_DIR/qtBase | ||
|
||
for var in "${QTLIBS[@]}" | ||
do | ||
if [ -e "$BASE_DIR/sharedQt/lib/$var" ] | ||
then | ||
echo "$var - ok" | ||
else | ||
echo "$var - not exits!. rebuild qt ..." | ||
|
||
sudo apt install libpcre2-dev | ||
|
||
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 | ||
|
||
make install -j$(nproc) | ||
break | ||
fi | ||
done | ||
|
||
cd .. | ||
rm -rdf $BASE_DIR/build | ||
|
||
export PATH=$PATH:$BASE_DIR/sharedQt | ||
|
||
$BASE_DIR/sharedQt/bin/qmake CQtDeployer.pro | ||
|
||
make -j$(nproc) | ||
|
||
strip build/* | ||
|
||
chmod +x $BASE_DIR/build/CQtDeployer | ||
|
||
$BASE_DIR/build/CQtDeployer -runScript cqtdeployer.sh -bin $BASE_DIR/build/CQtDeployer -qmake $BASE_DIR/sharedQt/bin/qmake | ||
|
||
tar -czvf $BASE_DIR/build/cqtdeployer.tar.gz $BASE_DIR/build/* | ||
|
||
rm $BASE_DIR/build/lib -rdf $BASE_DIR/build/*.so* $BASE_DIR/build/*.sh* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters