-
Notifications
You must be signed in to change notification settings - Fork 59
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 #241 from kovzol/master
Minor fixes to fine tune 4.3 builds
- Loading branch information
Showing
7 changed files
with
98 additions
and
7 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# This script compiles Qt6 to be able to build XaoS for WebAssembly. | ||
# Make sure that you have enough disk space. At least 45 GB is recommended. | ||
|
||
# See also https://doc.qt.io/qt-6.5/wasm.html and https://wiki.qt.io/Building_Qt_6_from_Git. | ||
|
||
QT6_VERSION=6.5.3 | ||
EMSDK_VERSION=3.1.25 | ||
PARALLEL=4 | ||
|
||
QT6_HOST_PATH=`pwd`/qt6-host-install | ||
|
||
set -e | ||
|
||
# Get emscripten: | ||
test -x emsdk || git clone https://github.com/emscripten-core/emsdk.git | ||
cd emsdk | ||
git pull | ||
./emsdk install $EMSDK_VERSION | ||
./emsdk activate --embedded $EMSDK_VERSION | ||
cd .. | ||
|
||
# Get Qt: | ||
git clone git://code.qt.io/qt/qt5.git qt6 | ||
cd qt6 | ||
git switch $QT6_VERSION | ||
perl init-repository | ||
|
||
# Compile Qt for the Linux host | ||
cd .. | ||
mkdir qt6-host-build | ||
cd qt6-host-build | ||
../qt6/configure -prefix $QT6_HOST_PATH | ||
cmake --build . --parallel $PARALLEL | ||
cmake --install . | ||
|
||
# Compile Qt for WebAssembly | ||
cd .. | ||
mkdir qt6-wasm-build | ||
cd qt6-wasm-build | ||
. ../emsdk/emsdk_env.sh | ||
../qt6/configure -xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbase \ | ||
-opensource -confirm-license -qt-host-path $QT6_HOST_PATH -device-option QT_EMSCRIPTEN_ASYNCIFY=1 | ||
cmake --build . --parallel $PARALLEL -t qtbase -t qtdeclarative -t qtimageformats -t qsvgicon -t qsvg | ||
cd .. |
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,16 @@ | ||
#!/bin/bash | ||
|
||
# This script compiles XaoS for WebAssembly. | ||
|
||
set -e | ||
|
||
QT6_WASM_BUILD=`pwd`/qt6-wasm-build | ||
test -x $QT6_WASM_BUILD || { | ||
echo "Run compile-qt-web first." | ||
exit 1 | ||
} | ||
|
||
. emsdk/emsdk_env.sh | ||
cd .. | ||
$QT6_WASM_BUILD/qtbase/bin/qmake | ||
make || true |
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