818014b449
Conflicts: configure src/3rdparty/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp src/network/access/qnetworkaccessmanager.cpp src/plugins/platforms/cocoa/qcocoacolordialoghelper.mm src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsgbmcursor.cpp src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsgbmcursor.h src/widgets/widgets/qlineedit_p.cpp src/widgets/widgets/qlineedit_p.h src/winmain/winmain.pro tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp tests/auto/dbus/qdbusconnection/tst_qdbusconnection.cpp tests/auto/dbus/qdbusconnection/tst_qdbusconnection.h tests/auto/testlib/selftests/expected_cmptest.teamcity tests/auto/testlib/selftests/expected_cmptest.txt tests/auto/widgets/itemviews/qtableview/tst_qtableview.cpp tools/configure/configureapp.cpp Change-Id: Ib9997b0d0f91946e4081d36c0c6b696c5c983b2a
110 lines
2.4 KiB
Bash
Executable File
110 lines
2.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
SUCCESS=no
|
|
QMKSPEC=$1
|
|
XPLATFORM=`basename "$1"`
|
|
QMAKE_CONFIG=$2
|
|
VERBOSE=$3
|
|
SRCDIR=$4
|
|
OUTDIR=$5
|
|
TEST=$6
|
|
EXE=`basename "$6"`
|
|
DESCRIPTION=$7
|
|
QMAKE=$8
|
|
QTCONF=$9
|
|
shift 9
|
|
LFLAGS="$SYSROOT_FLAG"
|
|
INCLUDEPATH=""
|
|
CFLAGS="$SYSROOT_FLAG"
|
|
CXXFLAGS="$SYSROOT_FLAG"
|
|
MAC_ARCH_CXXFLAGS=""
|
|
MAC_ARCH_LFLAGS=""
|
|
QMAKE_ARGS=
|
|
while [ "$#" -gt 0 ]; do
|
|
PARAM=$1
|
|
case $PARAM in
|
|
-config)
|
|
QMAKE_CONFIG="$QMAKE_CONFIG $2"
|
|
shift
|
|
;;
|
|
-framework)
|
|
LFLAGS="$LFLAGS -framework \"$2\""
|
|
shift
|
|
;;
|
|
-arch)
|
|
MAC_ARCH_CFLAGS="$MAC_ARCH_CFLAGS -arch $2"
|
|
MAC_ARCH_CXXFLAGS="$MAC_ARCH_CXXFLAGS -arch $2"
|
|
MAC_ARCH_LFLAGS="$MAC_ARCH_LFLAGS -arch $2"
|
|
shift
|
|
;;
|
|
-F*|-m*|-x*)
|
|
LFLAGS="$LFLAGS \"$PARAM\""
|
|
CFLAGS="$CFLAGS \"$PARAM\""
|
|
CXXFLAGS="$CXXFLAGS \"$PARAM\""
|
|
;;
|
|
-L*|-l*|-pthread)
|
|
LFLAGS="$LFLAGS \"$PARAM\""
|
|
;;
|
|
-I*)
|
|
INC=`echo $PARAM | sed -e 's/^-I//'`
|
|
INCLUDEPATH="$INCLUDEPATH \"$INC\""
|
|
;;
|
|
-f*|-D*)
|
|
CFLAGS="$CFLAGS \"$PARAM\""
|
|
CXXFLAGS="$CXXFLAGS \"$PARAM\""
|
|
;;
|
|
-Qoption)
|
|
# Two-argument form for the Sun Compiler
|
|
CFLAGS="$CFLAGS $PARAM \"$2\""
|
|
CXXFLAGS="$CXXFLAGS $PARAM \"$2\""
|
|
shift
|
|
;;
|
|
*)
|
|
QMAKE_ARGS="$QMAKE_ARGS $PARAM"
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
test -d "$OUTDIR/$TEST" || mkdir -p "$OUTDIR/$TEST"
|
|
|
|
cd "$OUTDIR/$TEST"
|
|
|
|
test -r Makefile && $MAKE distclean >/dev/null 2>&1
|
|
# Make sure output from possible previous tests is gone
|
|
rm -f "$EXE" "${EXE}.exe"
|
|
|
|
set -- \
|
|
"$QMAKE" \
|
|
-qtconf "$QTCONF" \
|
|
-nocache \
|
|
-spec "$QMKSPEC" \
|
|
"CONFIG+=$QMAKE_CONFIG" \
|
|
"CONFIG+=android_app" \
|
|
"CONFIG-=debug_and_release app_bundle lib_bundle" \
|
|
"LIBS+=$LFLAGS" \
|
|
"LIBS+=$MAC_ARCH_LFLAGS" \
|
|
"INCLUDEPATH*=$INCLUDEPATH" \
|
|
"QMAKE_CFLAGS*=$CFLAGS" \
|
|
"QMAKE_CFLAGS+=$MAC_ARCH_CFLAGS" \
|
|
"QMAKE_CXXFLAGS*=$CXXFLAGS" \
|
|
"QMAKE_CXXFLAGS+=$MAC_ARCH_CXXFLAGS" \
|
|
$QMAKE_ARGS \
|
|
"$SRCDIR/$TEST/$EXE.pro" \
|
|
-o "$OUTDIR/$TEST/Makefile"
|
|
if [ "$VERBOSE" = "yes" ]; then
|
|
echo
|
|
OUTDIR=$OUTDIR "$@" && $MAKE && SUCCESS=yes
|
|
else
|
|
OUTDIR=$OUTDIR "$@" >/dev/null 2>&1 && $MAKE >/dev/null 2>&1 && SUCCESS=yes
|
|
fi
|
|
|
|
# done
|
|
if [ "$SUCCESS" != "yes" ]; then
|
|
[ "$VERBOSE" = "yes" ] && echo "$DESCRIPTION disabled." || echo " no."
|
|
exit 1
|
|
else
|
|
[ "$VERBOSE" = "yes" ] && echo "$DESCRIPTION enabled." || echo " yes."
|
|
exit 0
|
|
fi
|