From: Nabil Ghodbane Date: Wed, 11 May 2022 09:51:08 +0000 (+0200) Subject: spns #29667 : qwt embedded X-Git-Tag: V9_9_0~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b15b9713c51a271e77c591600a1f2f76690207b;p=tools%2Fsat_salome.git spns #29667 : qwt embedded --- diff --git a/products/compil_scripts/qwt-6.1.6.sh b/products/compil_scripts/qwt-6.1.6.sh new file mode 100755 index 0000000..c53bf05 --- /dev/null +++ b/products/compil_scripts/qwt-6.1.6.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +echo "##########################################################################" +echo "qwt" $VERSION +echo "##########################################################################" + + + +export TMAKEPATH=${QTDIR}/bin +export PATH=${TMAKEPATH}:${PATH} + +echo +echo "*** copy source" +mkdir -p ${PRODUCT_INSTALL} +#cp -r $SOURCE_DIR/* . +cd $SOURCE_DIR + +QMAKE_BIN=qmake +if [ "$DIST_NAME" == "FD" ] && [ "$DIST_VERSION" == "34" ] && [ "$SAT_qt_IS_NATIVE" == "1" ]; then + QMAKE_BIN=$(which qmake-qt5) +fi +echo +echo "*** prepare $QMAKE_BIN" +sed -i "s|\(QWT_INSTALL_PREFIX[[:space:]]*\)=\([[:space:]]*\)\(.*\)|\1=\2${PRODUCT_INSTALL}|g" qwtconfig.pri +sed -i "s|#\(CONFIG[[:space:]]*+=[[:space:]]*QwtSVGItem\)|\1|g" qwtconfig.pri + +sed -i "s|\(target\.path[[:space:]]*\)=\([[:space:]]*\).*|\1=\2\$\$QWT_INSTALL_PREFIX/plugins/designer|g" designer/designer.pro + +echo +echo "** $QMAKE_BIN" +$QMAKE_BIN +if [ $? -ne 0 ] +then + echo "ERROR on $QMAKE_BIN" + exit 1 +fi + +echo +echo "*** make" +make +if [ $? -ne 0 ] +then + echo "ERROR on make" + exit 2 +fi + +echo +echo "*** make install" +make install +if [ $? -ne 0 ] +then + echo "ERROR on make install" + exit 3 +fi + +echo +echo "########## END" +