2017-03-30 15:34:24 -05:00
#!/bin/sh
2017-03-31 11:45:56 -05:00
echo "EXECUTING: Build runtime - QT5"
2017-03-30 15:34:24 -05:00
echo
2018-02-20 04:44:01 -06:00
if [ ${ PYTHON_VERSION : 0 : 1 } = = "3" ] ; then
2018-02-20 04:58:03 -06:00
CONFIG = /usr/local/python-$PYTHON_VERSION /bin/python3-config
2018-02-20 04:44:01 -06:00
else
CONFIG = /usr/local/python-$PYTHON_VERSION /bin/python-config
fi
2017-03-30 15:34:24 -05:00
cd $WORKSPACE /runtime
2017-03-31 11:17:34 -05:00
2017-03-30 15:49:11 -05:00
make clean
2018-02-20 04:44:01 -06:00
PATH = /usr/local/python-$PYTHON_VERSION /bin:$PATH PYTHON_CONFIG = $CONFIG /bin/qmake-qt5 DEFINES += PGADMIN4_USE_WEBKIT || { echo 'ERROR: Failed to run the QT5 qmake step.' ; exit 1; }
2017-04-07 09:14:56 -05:00
make all || { echo 'ERROR: Failed to build the QT4 runtime.' ; exit 1; }