From e08969d04cf798096baee6ab102e9676d8466f22 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sat, 22 Aug 2020 00:48:07 +0800 Subject: [PATCH] update qt5 build shell script to support pack qt and tslib libraries --- 3rdparty/qt5/build.sh | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/3rdparty/qt5/build.sh b/3rdparty/qt5/build.sh index a28f649..0abc4ce 100755 --- a/3rdparty/qt5/build.sh +++ b/3rdparty/qt5/build.sh @@ -109,6 +109,34 @@ cd - } +function pack_qt_tslib() +{ + QTLIB_PATH=${QT_INST_PATH}/lib + + DIR_QT_LIB=QT5/lib + DIR_QT_FONTS=QT5/fonts + DIR_PLUGINS=QT5/plugins + + mkdir -p QT5/{lib,fonts,plugins} + + cp -af ${QTLIB_PATH}/libQt5Core*so.* ${DIR_QT_LIB} + cp -af ${QTLIB_PATH}/libQt5Gui*so.* ${DIR_QT_LIB} + cp -af ${QTLIB_PATH}/libQt5Network*so.* ${DIR_QT_LIB} + cp -af ${QTLIB_PATH}/libQt5Qml*so.* ${DIR_QT_LIB} + cp -af ${QTLIB_PATH}/libQt5SerialPort*so.* ${DIR_QT_LIB} + cp -af ${QTLIB_PATH}/libQt5Sql*so.* ${DIR_QT_LIB} + cp -af ${QTLIB_PATH}/libQt5Widgets*so.* ${DIR_QT_LIB} + cp -af ${QTLIB_PATH}/libqlinuxfb.so* ${DIR_QT_LIB} + + cp -af ${LIBS_PATH}/lib/lib*ts*.so* ${DIR_QT_LIB} + cp -af ${LIBS_PATH}/lib/ts/*.so* ${DIR_PLUGINS} + + cp /apps/qt_fonts/* ${DIR_QT_FONTS} + + tar -cjf QT5_fl2440.tar.bz2 QT5 + rm -rf QT5 +} + cd ../tslib ./build.sh cd - @@ -119,4 +147,5 @@ compile_qt +pack_qt_tslib -- Gitblit v1.9.1