-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
build_android.sh
executable file
·43 lines (40 loc) · 1.48 KB
/
build_android.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
#!/bin/bash
# modify follow value
Qt6_DIR=/opt/Qt/6.6.3/android_x86_64
DEPENDENT_INSTALL_DIR=/data/tigervnc/build_android/install
BUILD_TYPE=Debug
VCPKG_TARGET_TRIPLET=x64-android
VCPKG_ROOT=/data/vcpkg
OLD_DIR=`pwd`
mkdir -p build_android
cd build_android
${Qt6_DIR}/bin/qt-cmake .. \
-DCMARK_SHARED=OFF \
-DCMARK_TESTS=OFF \
-DCMARK_STATIC=ON \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_AUTOGEN_VERBOSE=ON \
-DCMAKE_MAKE_PROGRAM=ninja \
-DQT_CHAINLOAD_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake \
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \
-DVCPKG_TARGET_TRIPLET=${VCPKG_TARGET_TRIPLET} \
-DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON \
-DVCPKG_VERBOSE=ON \
-DRABBIT_ENABLE_INSTALL_DEPENDENT=ON \
-DRABBIT_ENABLE_INSTALL_QT=ON \
-DRABBIT_ENABLE_INSTALL_TO_BUILD_PATH=ON \
-DQT_HOST_PATH=${Qt6_DIR}/../gcc_64 \
-DQT_ANDROID_SIGN_APK=ON \
-DQT_ENABLE_VERBOSE_DEPLOYMENT=ON \
-DVCPKG_TRACE_FIND_PACKAGE=ON \
-DQt6LinguistTools_DIR=${Qt6_DIR}/../gcc_64/lib/cmake/Qt6LinguistTools \
-DCMAKE_INSTALL_PREFIX=`pwd`/install \
-DBUILD_LibVNCServer=ON \
-DLibVNCServer_DIR="${DEPENDENT_INSTALL_DIR}/lib/cmake/LibVNCServer" \
-DRabbitVNC_DIR=${DEPENDENT_INSTALL_DIR}/lib/cmake/RabbitVNC \
-Dtigervnc_DIR=${DEPENDENT_INSTALL_DIR}/lib/cmake \
-DQXmpp_DIR=${DEPENDENT_INSTALL_DIR}/lib/cmake/qxmpp \
-DBUILD_FREERDP=ON
cmake --build .
cmake --install .
cd $OLD_DIR