configure
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 #!/bin/sh
     1 #!/bin/sh
     2 #############################################################################
     2 #############################################################################
     3 ##
     3 ##
     4 ## Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     4 ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     5 ## All rights reserved.
     5 ## All rights reserved.
     6 ## Contact: Nokia Corporation (qt-info@nokia.com)
     6 ## Contact: Nokia Corporation (qt-info@nokia.com)
     7 ##
     7 ##
     8 ## This file is the build configuration utility of the Qt Toolkit.
     8 ## This file is the build configuration utility of the Qt Toolkit.
     9 ##
     9 ##
  2282     rm -f "$outpath/bin/syncqt"
  2282     rm -f "$outpath/bin/syncqt"
  2283     if [ -x "$relpath/bin/syncqt" ]; then
  2283     if [ -x "$relpath/bin/syncqt" ]; then
  2284         mkdir -p "$outpath/bin"
  2284         mkdir -p "$outpath/bin"
  2285         echo "#!/bin/sh" >"$outpath/bin/syncqt"
  2285         echo "#!/bin/sh" >"$outpath/bin/syncqt"
  2286         echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/syncqt"
  2286         echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/syncqt"
  2287         echo "perl \"$relpath/bin/syncqt\" -outdir \"$outpath\" $*" >>"$outpath/bin/syncqt"
  2287         echo "perl \"$relpath/bin/syncqt\" -outdir \"$outpath\" \"\$@\"" >>"$outpath/bin/syncqt"
  2288         chmod 755 "$outpath/bin/syncqt"
  2288         chmod 755 "$outpath/bin/syncqt"
  2289     fi
  2289     fi
  2290 
  2290 
  2291     # symlink the mkspecs directory
  2291     # symlink the mkspecs directory
  2292     mkdir -p "$outpath/mkspecs"
  2292     mkdir -p "$outpath/mkspecs"
  5145         # OpenGL ES 1.x common lite
  5145         # OpenGL ES 1.x common lite
  5146 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS
  5146 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS
  5147         if [ $? != "0" ]; then
  5147         if [ $? != "0" ]; then
  5148 	    echo "The OpenGL ES 1.x Common Lite Profile functionality test failed!"
  5148 	    echo "The OpenGL ES 1.x Common Lite Profile functionality test failed!"
  5149             echo " You might need to modify the include and library search paths by editing"
  5149             echo " You might need to modify the include and library search paths by editing"
  5150             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5150             echo " QMAKE_INCDIR_OPENGL_ES1CL, QMAKE_LIBDIR_OPENGL_ES1CL and QMAKE_LIBS_OPENGL_ES1CL in"
  5151             echo " ${XQMAKESPEC}."
  5151             echo " ${XQMAKESPEC}."
  5152             exit 1
  5152             exit 1
  5153         fi
  5153         fi
  5154     elif [ "$CFG_OPENGL" = "es1" ]; then
  5154     elif [ "$CFG_OPENGL" = "es1" ]; then
  5155         # OpenGL ES 1.x
  5155         # OpenGL ES 1.x
  5156 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5156 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5157         if [ $? != "0" ]; then
  5157         if [ $? != "0" ]; then
  5158 	    echo "The OpenGL ES 1.x functionality test failed!"
  5158 	    echo "The OpenGL ES 1.x functionality test failed!"
  5159             echo " You might need to modify the include and library search paths by editing"
  5159             echo " You might need to modify the include and library search paths by editing"
  5160             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5160             echo " QMAKE_INCDIR_OPENGL_ES1, QMAKE_LIBDIR_OPENGL_ES1 and QMAKE_LIBS_OPENGL_ES1 in"
  5161             echo " ${XQMAKESPEC}."
  5161             echo " ${XQMAKESPEC}."
  5162             exit 1
  5162             exit 1
  5163         fi
  5163         fi
  5164     elif [ "$CFG_OPENGL" = "es2" ]; then
  5164     elif [ "$CFG_OPENGL" = "es2" ]; then
  5165         #OpenGL ES 2.x
  5165         #OpenGL ES 2.x
  5166 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5166 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5167         if [ $? != "0" ]; then
  5167         if [ $? != "0" ]; then
  5168 	    echo "The OpenGL ES 2.0 functionality test failed!"
  5168 	    echo "The OpenGL ES 2.0 functionality test failed!"
  5169             echo " You might need to modify the include and library search paths by editing"
  5169             echo " You might need to modify the include and library search paths by editing"
  5170             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5170             echo " QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in"
  5171             echo " ${XQMAKESPEC}."
  5171             echo " ${XQMAKESPEC}."
  5172             exit 1
  5172             exit 1
  5173         fi
  5173         fi
  5174     elif [ "$CFG_OPENGL" = "desktop" ]; then
  5174     elif [ "$CFG_OPENGL" = "desktop" ]; then
  5175         # Desktop OpenGL support
  5175         # Desktop OpenGL support