-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_linux.sh
executable file
·48 lines (40 loc) · 1.78 KB
/
build_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -euo pipefail
SRC_DIR=$(realpath ${1})
BUILD_DIR=$(realpath ${2})
INSTALL_DIR=$(realpath ${3})
if [ ! -d ${BUILD_DIR} ]; then (
mkdir -p ${BUILD_DIR}
cd ${BUILD_DIR}
echo Building Qt...
${SRC_DIR}/configure \
-prefix ${INSTALL_DIR} -warnings-are-errors -release \
-opensource -recheck-all -nomake examples -nomake tests \
-confirm-license -platform linux-clang -no-feature-concurrent \
-no-feature-xml -no-feature-testlib -skip qt3d -skip qtactiveqt \
-skip qtandroidextras -skip qtcanvas3d -skip qtcharts \
-skip qtconnectivity -skip qtdatavis3d -skip qtdoc \
-skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats \
-skip qtlocation -skip qtmacextras -skip qtmultimedia \
-skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols \
-skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript \
-skip qtscxml -skip qtsensors -skip qtserialbus \
-skip qtserialport -skip qtsvg -skip qtspeech -skip qttools \
-skip qttranslations -skip qtvirtualkeyboard -skip qtwayland \
-skip qtwinextras -skip qtx11extras -skip qtxmlpatterns \
-skip qtwebview -no-webrtc -no-webengine-pepper-plugins \
-no-webengine-printing-and-pdf -no-webengine-spellchecker \
-no-webengine-kerberos -no-qml-debug -no-sql-odbc \
-no-compile-examples -no-pdf-widgets -skip qtquick3d \
-skip qtquickcontrols -no-quick-designer -no-quick-canvas \
-no-quick-animatedimage -no-quick-shadereffect -no-ffmpeg \
-no-opus -no-webp -no-webengine-icu -no-extensions -no-alsa \
-no-pulseaudio -xcb -xcb-xlib -bundled-xcb-xinput \
-feature-vulkan -I ${VULKAN_SDK}/include -L ${VULKAN_SDK}/lib
make -j $(nproc)
echo Done building Qt.
) fi
echo Installing Qt...
cd ${BUILD_DIR}
make install -j $(nproc)
echo Done installing Qt.