From 1b716724f724884d6a3d085f4cd5bb4cea4894ef Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 26 Jan 2012 18:43:06 +0100 Subject: Remove dead code from the configures This removes the options to disable several modules, as they are in separate repositories now and can be "disabled" by simply not compiling them. Note that this leaves some configuration options for these separate modules in, as they have no own configures. This is ugly, but has to stay that way for the time being. Some other dead code had to go as well, just like accepting the obsolete -qdbus option. Change-Id: Ibb26e4f48ca8239c2c4396e4abefab4c87322be2 Reviewed-by: Thiago Macieira --- configure | 522 +++++---------------------------------- tools/configure/configureapp.cpp | 210 +--------------- 2 files changed, 75 insertions(+), 657 deletions(-) diff --git a/configure b/configure index 121780527b..445cc006c5 100755 --- a/configure +++ b/configure @@ -642,9 +642,6 @@ CFG_CONFIGURE_EXIT_ON_ERROR=yes CFG_PROFILE=no CFG_EXCEPTIONS=unspecified CFG_GUI=auto # (yes|no|auto) -CFG_SCRIPT=auto # (yes|no|auto) -CFG_SCRIPTTOOLS=auto # (yes|no|auto) -CFG_XMLPATTERNS=auto # (yes|no|auto) CFG_INCREMENTAL=auto CFG_QCONFIG=full CFG_DEBUG=auto @@ -686,18 +683,10 @@ QT_DEFAULT_BUILD_PARTS="libs examples tests" CFG_BUILD_PARTS="" CFG_NOBUILD_PARTS="" CFG_RELEASE_QMAKE=no -CFG_PHONON=auto -CFG_PHONON_BACKEND=yes -CFG_MULTIMEDIA=auto CFG_AUDIO_BACKEND=auto -CFG_SVG=auto -CFG_V8=auto CFG_V8SNAPSHOT=auto -CFG_DECLARATIVE=auto CFG_DECLARATIVE_DEBUG=yes -CFG_WEBKIT=auto # (yes|no|auto|debug) CFG_JAVASCRIPTCORE_JIT=auto -CFG_LOCATION=auto CFG_GFX_AVAILABLE="linuxfb transformed qvfb vnc multiscreen directfb" CFG_GFX_ON="linuxfb multiscreen" @@ -947,14 +936,8 @@ if [ "$CFG_EMBEDDED" = "nacl" ]; then L_FLAGS="$L_FLAGS -I${CFG_NACL_PATH}/toolchain/mac_x86/sdk/nacl-sdk/lib" fi - echo "-no-multimedia -no-webkit -no-phonon -no-nultimedia -no-mediaservices -no-xmlpatterns -no-script -no-sql-sqlite -nomake tests" - CFG_MULTIMEDIA=no - CFG_WEBKIT=no - CFG_PHONON=no - CFG_MULTIMEDIA=no + echo "-no-mediaservices -no-sql-sqlite -nomake tests" CFG_MEDIASERVICES=no - CFG_XMLPATTERNS=no - CFG_SCRIPT=no CFG_SQLITE=no CFG_SQL_sqlite=no CFG_LIBTIFF=no @@ -997,26 +980,13 @@ while [ "$#" -gt 0 ]; do VAR=`echo $1 | sed "s,^-[^-]*-\(.*\),\1,"` VAL=`echo $1 | sed "s,^-\([^-]*\).*,\1,"` ;; - #WebKit options - -webkit) - VAR="webkit" - VAL="yes" - ;; - -webkit-debug) - VAR="webkit" - VAL="debug" - ;; - -no-webkit) - VAR="webkit" - VAL="no" - ;; #Qt style no options -no-*) VAR=`echo $1 | sed "s,^-no-\(.*\),\1,"` VAL=no ;; #Qt style yes options - -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-xinput2|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-xcb|-wayland|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-debug-and-release|-exceptions|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-v8|-declarative|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-icu|-force-asserts|-testcocoon) + -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-xinput2|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-xcb|-wayland|-nis|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-debug-and-release|-exceptions|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-phonon-backend|-audio-backend|-declarative-debug|-javascript-jit|-rpath|-force-pkg-config|-icu|-force-asserts|-testcocoon) VAR=`echo $1 | sed "s,^-\(.*\),\1,"` VAL=yes ;; @@ -1930,7 +1900,7 @@ while [ "$#" -gt 0 ]; do fi fi ;; - qdbus|dbus) + dbus) if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "linked" ]; then CFG_DBUS="$VAL" elif [ "$VAL" = "runtime" ]; then @@ -1974,72 +1944,6 @@ while [ "$#" -gt 0 ]; do UNKNOWN_OPT=yes fi ;; - xmlpatterns) - if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then - CFG_XMLPATTERNS="yes" - else - if [ "$VAL" = "no" ]; then - CFG_XMLPATTERNS="no" - else - UNKNOWN_OPT=yes - fi - fi - ;; - script) - if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then - CFG_SCRIPT="yes" - else - if [ "$VAL" = "no" ]; then - CFG_SCRIPT="no" - else - UNKNOWN_OPT=yes - fi - fi - ;; - scripttools) - if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then - CFG_SCRIPTTOOLS="yes" - else - if [ "$VAL" = "no" ]; then - CFG_SCRIPTTOOLS="no" - else - UNKNOWN_OPT=yes - fi - fi - ;; - svg) - if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then - CFG_SVG="yes" - else - if [ "$VAL" = "no" ]; then - CFG_SVG="no" - else - UNKNOWN_OPT=yes - fi - fi - ;; - v8) - if [ "$VAL" = "yes" ]; then - CFG_V8="yes" - else - if [ "$VAL" = "no" ]; then - CFG_V8="no" - else - UNKNOWN_OPT=yes - fi - fi - ;; - declarative) - if [ "$VAL" = "yes" ]; then - CFG_DECLARATIVE="yes" - else - if [ "$VAL" = "no" ]; then - CFG_DECLARATIVE="no" - else - UNKNOWN_OPT=yes - fi - fi - ;; declarative-debug) if [ "$VAL" = "yes" ]; then CFG_DECLARATIVE_DEBUG="yes" @@ -2051,21 +1955,6 @@ while [ "$#" -gt 0 ]; do fi fi ;; - webkit) - [ "$VAL" = "auto" ] && VAL="yes" - CFG_WEBKIT="$VAL" - ;; - location) - if [ "$VAL" = "yes" ]; then - CFG_LOCATION="yes" - else - if [ "$VAL" = "no" ]; then - CFG_LOCATION="no" - else - UNKNOWN_OPT=yes - fi - fi - ;; javascript-jit) if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ] || [ "$VAL" = "no" ]; then CFG_JAVASCRIPTCORE_JIT="$VAL" @@ -2270,13 +2159,6 @@ while [ "$#" -gt 0 ]; do silent) CFG_SILENT="$VAL" ;; - phonon) - if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then - CFG_PHONON="$VAL" - else - UNKNOWN_OPT=yes - fi - ;; phonon-backend) if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then CFG_PHONON_BACKEND="$VAL" @@ -2284,13 +2166,6 @@ while [ "$#" -gt 0 ]; do UNKNOWN_OPT=yes fi ;; - multimedia) - if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then - CFG_MULTIMEDIA="$VAL" - else - UNKNOWN_OPT=yes - fi - ;; dont-process) CFG_NOPROCESS=yes ;; @@ -2498,11 +2373,6 @@ if [ "$OPT_SHADOW" = "yes" ]; then # symlink the doc directory rm -rf "$outpath/doc" ln -s "$relpath/doc" "$outpath/doc" - - # make sure q3porting.xml can be found - mkdir -p "$outpath/tools/porting/src" - rm -f "$outpath/tools/porting/src/q3porting.xml" - ln -s "$relpath/tools/porting/src/q3porting.xml" "$outpath/tools/porting/src" fi # symlink fonts to be able to run application from build directory @@ -3558,15 +3428,12 @@ Usage: $relconf [-h] [-prefix ] [-prefix-install] [-bindir ] [-libdir [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2] [-no-sse3] [-no-ssse3] [-no-sse4.1] [-no-sse4.2] [-no-avx] [-no-neon] [-qtnamespace ] [-qtlibinfix ] [-separate-debug-info] [-armfpa] - [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns] - [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend] - [-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend] + [-no-phonon-backend] [-phonon-backend] [-no-media-backend] [-media-backend] + [-no-audio-backend] [-audio-backend] + [-no-javascript-jit] [-javascript-jit] [-no-declarative-debug] [-declarative-debug] + [-no-optimized-qmake] [-optimized-qmake] [-no-openssl] [-openssl] [-openssl-linked] - [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-webkit-debug] - [-no-javascript-jit] [-javascript-jit] - [-no-script] [-script] [-no-scripttools] [-scripttools] - [-no-declarative] [-declarative] [-no-declarative-debug] [-declarative-debug] - [-no-location] [-location] + [-no-gtkstyle] [-gtkstyle] [-qt-pcre] [-system-pcre] [additional platform specific options (see below)] @@ -3690,52 +3557,15 @@ fi -system-sqlite ..... Use sqlite from the operating system. - -no-xmlpatterns .... Do not build the QtXmlPatterns module. - + -xmlpatterns ....... Build the QtXmlPatterns module. - QtXmlPatterns is built if a decent C++ compiler - is used and exceptions are enabled. - - -no-multimedia ..... Do not build the QtMultimedia module. - + -multimedia ........ Build the QtMultimedia module. - - -no-audio-backend .. Do not build the platform audio backend into QtMultimedia. - + -audio-backend ..... Build the platform audio backend into QtMultimedia if available. - - -no-phonon ......... Do not build the Phonon module. - + -phonon ............ Build the Phonon module. - Phonon is built if a decent C++ compiler is used. -no-phonon-backend.. Do not build the platform phonon plugin. + -phonon-backend..... Build the platform phonon plugin. - -no-svg ............ Do not build the SVG module. - + -svg ............... Build the SVG module. - - -no-webkit ......... Do not build the WebKit module. - + -webkit ............ Build the WebKit module. - WebKit is built if a decent C++ compiler is used. - -webkit-debug ...... Build the WebKit module with debug symbols. - -no-javascript-jit . Do not build the JavaScriptCore JIT compiler. + -javascript-jit .... Build the JavaScriptCore JIT compiler. - -no-script ......... Do not build the QtScript module. - + -script ............ Build the QtScript module. - - -no-scripttools .... Do not build the QtScriptTools module. - + -scripttools ....... Build the QtScriptTools module. - - -no-v8 ............. Do not build the V8 module. - + -v8 ................ Build the V8 module. - - -no-declarative ..... Do not build the declarative module. - + -declarative ....... Build the declarative module. - -no-declarative-debug ..... Do not build the declarative debugging support. + -declarative-debug ....... Build the declarative debugging support. - -no-location ....... Do not build the QtLocation module. - + -location .......... Build the QtLocation module. - -platform target ... The operating system and compiler you are building on ($PLATFORM). @@ -5294,15 +5124,6 @@ if [ "$CFG_DBUS" != "no" ]; then fi fi -if [ "$CFG_MULTIMEDIA" = "auto" ]; then - CFG_MULTIMEDIA="$CFG_GUI" -fi - -if [ "$CFG_MULTIMEDIA" = "yes" ] && [ "$CFG_GUI" = "no" ]; then - echo "QtMultimedia requested, but it can't be built without QtGui" - exit 1 -fi - # X11/QWS/Lighthouse if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" -o "$PLATFORM_QPA" = "yes" ]; then @@ -5329,66 +5150,31 @@ if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" -o "$PLATFORM_QPA" = "ye fi fi - if [ "$CFG_GUI" = "no" ]; then - if [ "$CFG_PHONON" = "auto" ]; then - CFG_PHONON=no - fi - if [ "$CFG_PHONON" != "no" ]; then - echo "Phonon enabled, but GUI disabled." - echo " You might need to either enable the GUI or disable Phonon" - exit 1 + # ### Vestige + if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then + if [ -n "$PKG_CONFIG" ]; then + QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null` + QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null` fi - fi - - # Auto-detect GStreamer support (needed for Phonon) - if [ "$CFG_PHONON" != "no" ]; then - if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then - if [ -n "$PKG_CONFIG" ]; then - QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null` - QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null` - fi - if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/gstreamer "GStreamer" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GSTREAMER $QT_LIBS_GSTREAMER $X11TESTS_FLAGS; then - CFG_GSTREAMER=yes - QMakeVar set QT_CFLAGS_GSTREAMER "$QT_CFLAGS_GSTREAMER" - QMakeVar set QT_LIBS_GSTREAMER "$QT_LIBS_GSTREAMER" + if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/gstreamer "GStreamer" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GSTREAMER $QT_LIBS_GSTREAMER $X11TESTS_FLAGS; then + CFG_GSTREAMER=yes + QMakeVar set QT_CFLAGS_GSTREAMER "$QT_CFLAGS_GSTREAMER" + QMakeVar set QT_LIBS_GSTREAMER "$QT_LIBS_GSTREAMER" + else + if [ "$CFG_GSTREAMER" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then + echo "Gstreamer support cannot be enabled due to functionality tests!" + echo " Turn on verbose messaging (-v) to $0 to see the final report." + echo " If you believe this message is in error you may use the continue" + echo " switch (-continue) to $0 to continue." + exit 101 else - if [ "$CFG_GSTREAMER" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then - echo "Gstreamer support cannot be enabled due to functionality tests!" - echo " Turn on verbose messaging (-v) to $0 to see the final report." - echo " If you believe this message is in error you may use the continue" - echo " switch (-continue) to $0 to continue." - exit 101 - else - CFG_GSTREAMER=no - fi + CFG_GSTREAMER=no fi - elif [ "$CFG_GLIB" = "no" ]; then - CFG_GSTREAMER=no fi - else + elif [ "$CFG_GLIB" = "no" ]; then CFG_GSTREAMER=no fi - if [ "$CFG_PHONON" != "no" ]; then - if [ "$CFG_PHONON_BACKEND" != "no" ]; then - if [ "$CFG_GSTREAMER" = "yes" ]; then - CFG_PHONON=yes - else - if [ "$CFG_PHONON" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then - echo "Phonon support cannot be enabled due to functionality tests!" - echo " Turn on verbose messaging (-v) to $0 to see the final report." - echo " If you believe this message is in error you may use the continue" - echo " switch (-continue) to $0 to continue." - exit 101 - else - CFG_PHONON=no - fi - fi - else - CFG_PHONON=yes - fi - fi - # auto-detect libicu support if [ "$CFG_ICU" != "no" ]; then if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/icu "ICU" $L_FLAGS $I_FLAGS $l_FLAGS; then @@ -5609,12 +5395,6 @@ if [ "$PLATFORM_X11" = "yes" ]; then fi fi - # Additional check to decide if WebKit support will be included - if [ "$CFG_XRENDER" = "no" ] && [ "$CFG_WEBKIT" != "no" ]; then - echo "Warning: -no-xrender will disable the QtWebkit module." - CFG_WEBKIT="no" - fi - # auto-detect MIT-SHM support if [ "$CFG_MITSHM" != "no" ]; then if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/mitshm "mitshm" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then @@ -6569,15 +6349,10 @@ if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_ARCHS" = "" ]; then CFG_MAC_ARCHS=" $QT_MAC_DEFAULT_ARCH" [ "$OPT_VERBOSE" = "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS." fi -# enable Phonon -if [ "$CFG_PHONON" = "yes" ]; then - # No longer needed after modularization - #QT_CONFIG="$QT_CONFIG phonon" - if [ "$CFG_PHONON_BACKEND" = "yes" ]; then - QT_CONFIG="$QT_CONFIG phonon-backend" - fi -else - QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_PHONON" + +# ### Vestige +if [ "$CFG_PHONON_BACKEND" = "yes" ]; then + QT_CONFIG="$QT_CONFIG phonon-backend" fi # disable accessibility @@ -6971,18 +6746,9 @@ fi # See Qt documentation for more information on which features are # supported and on which compilers. # -canBuildQtXmlPatterns="yes" -canBuildWebKit="$HAVE_STL" canBuildQtConcurrent="yes" -canBuildV8="yes" canUseV8Snapshot="yes" -# WebKit requires stdint.h -"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/stdint "Stdint" $L_FLAGS $I_FLAGS $l_FLAGS -if [ $? != "0" ]; then - canBuildWebKit="no" -fi - case "$XPLATFORM" in hpux-g++*) # PA-RISC's assembly is too limited @@ -7106,172 +6872,46 @@ else QT_CONFIG="$QT_CONFIG concurrent" fi -if [ "$CFG_XMLPATTERNS" = "yes" -a "$CFG_EXCEPTIONS" = "no" ]; then - echo "QtXmlPatterns was requested, but it can't be built due to exceptions being disabled." - exit 1 -fi -if [ "$CFG_XMLPATTERNS" = "auto" -a "$CFG_EXCEPTIONS" != "no" ]; then - CFG_XMLPATTERNS="$canBuildQtXmlPatterns" -elif [ "$CFG_EXCEPTIONS" = "no" ]; then - CFG_XMLPATTERNS="no" -fi -# No longer needed after modularization -#if [ "$CFG_XMLPATTERNS" = "yes" ]; then -# QT_CONFIG="$QT_CONFIG xmlpatterns" -#else -# QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XMLPATTERNS" -#fi - -# No longer needed after modularization -#if [ "$CFG_MULTIMEDIA" = "no" ]; then -# QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_MULTIMEDIA" -#else -# QT_CONFIG="$QT_CONFIG multimedia" -#fi - +# ### Vestige if [ "$CFG_AUDIO_BACKEND" = "yes" ]; then QT_CONFIG="$QT_CONFIG audio-backend" fi -if [ "$CFG_SVG" = "auto" ]; then - CFG_SVG=$CFG_GUI +# ### Vestige +if [ "$CFG_WEBKIT" = "debug" ]; then + QMAKE_CONFIG="$QMAKE_CONFIG webkit-debug" fi -if [ "$CFG_SVG" = "yes" ] && [ "$CFG_GUI" = "no" ]; then - echo "QtSvg requested, but it can't be built without QtGui" - exit 1 -fi - -if [ "$CFG_SVG" = "yes" ]; then - QT_CONFIG="$QT_CONFIG svg" +# ### Vestige +QT_CONFIG="$QT_CONFIG v8" +# Detect snapshot support +if [ "$CFG_ARCH" != "$CFG_HOST_ARCH" ]; then + case "$CFG_HOST_ARCH,$CFG_ARCH" in + i386,arm) + ;; + *) canUseV8Snapshot="no" + ;; + esac else - QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SVG" -fi - -if [ "$CFG_WEBKIT" != "no" ]; then - CFG_WEBKIT="$canBuildWebKit" -fi - -if [ "$CFG_WEBKIT" != "no" ]; then - # No longer needed after modularization - #QT_CONFIG="$QT_CONFIG webkit" - # The reason we set CFG_WEBKIT, is such that the printed overview of what will be enabled, shows correctly. - if [ "$CFG_WEBKIT" = "debug" ]; then - QMAKE_CONFIG="$QMAKE_CONFIG webkit-debug" + if [ -n "$_SBOX_DIR" -a "$CFG_ARCH" == "arm" ]; then + # QEMU crashes when building inside Scratchbox with an ARM target + canUseV8Snapshot="no" fi fi - -if [ "$CFG_SCRIPT" = "auto" ]; then - CFG_SCRIPT="yes" -fi - -# No longer needed after modularization -#if [ "$CFG_SCRIPT" = "yes" ]; then -# QT_CONFIG="$QT_CONFIG script" -#else -# QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPT" -#fi - -if [ "$CFG_SCRIPTTOOLS" = "yes" -a "$CFG_SCRIPT" = "no" ]; then - echo "QtScriptTools was requested, but it can't be built due to QtScript being disabled." - exit 1 -fi -if [ "$CFG_SCRIPTTOOLS" = "auto" -a "$CFG_SCRIPT" != "no" ]; then - CFG_SCRIPTTOOLS="yes" -elif [ "$CFG_SCRIPT" = "no" ]; then - CFG_SCRIPTTOOLS="no" +if [ "$CFG_V8SNAPSHOT" = "auto" ]; then + CFG_V8SNAPSHOT="$canUseV8Snapshot" fi - -# No longer needed after modularization -#if [ "$CFG_SCRIPTTOOLS" = "yes" ]; then -# QT_CONFIG="$QT_CONFIG scripttools" -#else -# QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPTTOOLS" -#fi - - -case "$CFG_ARCH" in -i386|x86_64|arm|mips) ;; -*) canBuildV8="no";; -esac - -if [ "$CFG_V8" = "yes" -a "$canBuildV8" = "no" ]; then - echo "Error: V8 was requested, but is not supported on this platform." +if [ "$CFG_V8SNAPSHOT" = "yes" -a "$canUseV8Snapshot" = "no" ]; then + echo "Error: V8 snapshot was requested, but is not supported on this platform." exit 1 fi - -if [ "$CFG_V8" = "auto" ]; then - CFG_V8="$canBuildV8" -fi - -if [ "$CFG_V8" = "no" ]; then - QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_V8" -else - QT_CONFIG="$QT_CONFIG v8" - # Detect snapshot support - if [ "$CFG_ARCH" != "$CFG_HOST_ARCH" ]; then - case "$CFG_HOST_ARCH,$CFG_ARCH" in - i386,arm) - ;; - *) canUseV8Snapshot="no" - ;; - esac - else - if [ -n "$_SBOX_DIR" -a "$CFG_ARCH" == "arm" ]; then - # QEMU crashes when building inside Scratchbox with an ARM target - canUseV8Snapshot="no" - fi - fi - if [ "$CFG_V8SNAPSHOT" = "auto" ]; then - CFG_V8SNAPSHOT="$canUseV8Snapshot" - fi - if [ "$CFG_V8SNAPSHOT" = "yes" -a "$canUseV8Snapshot" = "no" ]; then - echo "Error: V8 snapshot was requested, but is not supported on this platform." - exit 1 - fi - if [ "$CFG_V8SNAPSHOT" = "yes" ]; then - QT_CONFIG="$QT_CONFIG v8snapshot" - fi +if [ "$CFG_V8SNAPSHOT" = "yes" ]; then + QT_CONFIG="$QT_CONFIG v8snapshot" fi -if [ "$CFG_DECLARATIVE" = "yes" ]; then - if [ "$CFG_V8" = "no" -o "$CFG_GUI" = "no" ]; then - echo "Error: QtDeclarative was requested, but it can't be built due to QtV8 or QtGui being disabled." - exit 1 - fi -fi -if [ "$CFG_DECLARATIVE" = "auto" ]; then - if [ "$CFG_V8" = "no" -o "$CFG_GUI" = "no" ]; then - CFG_DECLARATIVE=no - else - CFG_DECLARATIVE=yes - fi -fi - -if [ "$CFG_DECLARATIVE" = "yes" ]; then - # No longer needed after modularization - #QT_CONFIG="$QT_CONFIG declarative" - if [ "$CFG_DECLARATIVE_DEBUG" = "no" ]; then - QCONFIG_FLAGS="$QCONFIG_FLAGS QDECLARATIVE_NO_DEBUG_PROTOCOL" - fi -else - QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DECLARATIVE" -fi - -if [ "$CFG_LOCATION" = "auto" ]; then - CFG_LOCATION="$CFG_GUI" -fi - -if [ "$CFG_LOCATION" = "yes" ] && [ "$CFG_GUI" = "no" ]; then - echo "QtLocation requested, but it can't be built without QtGui" - exit 1 -fi - -#Disable QtLocation until ready -CFG_LOCATION="no" - -if [ "$CFG_LOCATION" = "no" ]; then - QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_LOCATION" +# ### Vestige +if [ "$CFG_DECLARATIVE_DEBUG" = "no" ]; then + QCONFIG_FLAGS="$QCONFIG_FLAGS QDECLARATIVE_NO_DEBUG_PROTOCOL" fi if [ "$CFG_EXCEPTIONS" = "no" ]; then @@ -7823,7 +7463,6 @@ QT_BUILD_PARTS = $CFG_BUILD_PARTS QMAKE_MOC = \$\$QT_BUILD_TREE/bin/moc QMAKE_UIC = \$\$QT_BUILD_TREE/bin/uic QMAKE_RCC = \$\$QT_BUILD_TREE/bin/rcc -QMAKE_QDBUSXML2CPP = \$\$QT_BUILD_TREE/bin/qdbusxml2cpp QMAKE_INCDIR_QT = \$\$QT_BUILD_TREE/include QMAKE_LIBDIR_QT = \$\$QT_BUILD_TREE/lib @@ -7907,15 +7546,6 @@ EOF *) ;; esac -if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "no" ] && [ "$CFG_WEBKIT" != "no" ] && [ "$CFG_DEBUG_RELEASE" = "yes" ]; then - cat <] [-libdir ]\n" -// "[-docdir ] [-headerdir ] [-plugindir ]\n" -// "[-importdir ] [-datadir ] [-translationdir ]\n" -// "[-examplesdir ]\n" "[-release] [-debug] [-debug-and-release] [-shared] [-static]\n" "[-no-fast] [-fast] [-no-exceptions] [-exceptions]\n" "[-no-accessibility] [-accessibility] [-no-rtti] [-rtti]\n" @@ -1546,24 +1498,6 @@ bool Configure::displayHelp() desc("Installation options:\n\n"); #if !defined(EVAL) -/* - desc(" These are optional, but you may specify install directories.\n\n", 0, 1); - - desc( "-prefix dir", "This will install everything relative to dir\n(default $QT_INSTALL_PREFIX)\n"); - - desc(" You may use these to separate different parts of the install:\n\n", 0, 1); - - desc( "-bindir ", "Executables will be installed to dir\n(default PREFIX/bin)"); - desc( "-libdir ", "Libraries will be installed to dir\n(default PREFIX/lib)"); - desc( "-docdir ", "Documentation will be installed to dir\n(default PREFIX/doc)"); - desc( "-headerdir ", "Headers will be installed to dir\n(default PREFIX/include)"); - desc( "-plugindir ", "Plugins will be installed to dir\n(default PREFIX/plugins)"); - desc( "-importdir ", "Imports for QML will be installed to dir\n(default PREFIX/imports)"); - desc( "-datadir ", "Data used by Qt programs will be installed to dir\n(default PREFIX)"); - desc( "-translationdir ","Translations of Qt programs will be installed to dir\n(default PREFIX/translations)\n"); - desc( "-examplesdir ", "Examples will be installed to dir\n(default PREFIX/examples)"); -*/ - desc("Configure options:\n\n"); desc(" The defaults (*) are usually acceptable. A plus (+) denotes a default value" @@ -1709,25 +1643,10 @@ bool Configure::displayHelp() desc("DBUS", "no", "-no-dbus", "Do not compile in D-Bus support"); desc("DBUS", "yes", "-dbus", "Compile in D-Bus support and load libdbus-1 dynamically"); desc("DBUS", "linked", "-dbus-linked", "Compile in D-Bus support and link to libdbus-1"); - desc("PHONON", "no", "-no-phonon", "Do not compile in the Phonon module"); - desc("PHONON", "yes", "-phonon", "Compile the Phonon module (Phonon is built if a decent C++ compiler is used.)"); desc("PHONON_BACKEND","no", "-no-phonon-backend","Do not compile the platform-specific Phonon backend-plugin"); desc("PHONON_BACKEND","yes","-phonon-backend", "Compile in the platform-specific Phonon backend-plugin"); - desc("MULTIMEDIA", "no", "-no-multimedia", "Do not compile the multimedia module"); - desc("MULTIMEDIA", "yes","-multimedia", "Compile in multimedia module"); desc("AUDIO_BACKEND", "no","-no-audio-backend", "Do not compile in the platform audio backend into QtMultimedia"); desc("AUDIO_BACKEND", "yes","-audio-backend", "Compile in the platform audio backend into QtMultimedia"); - desc("WEBKIT", "no", "-no-webkit", "Do not compile in the WebKit module"); - desc("WEBKIT", "yes", "-webkit", "Compile in the WebKit module (WebKit is built if a decent C++ compiler is used.)"); - desc("WEBKIT", "debug", "-webkit-debug", "Compile in the WebKit module with debug symbols."); - desc("SCRIPT", "no", "-no-script", "Do not build the QtScript module."); - desc("SCRIPT", "yes", "-script", "Build the QtScript module."); - desc("SCRIPTTOOLS", "no", "-no-scripttools", "Do not build the QtScriptTools module."); - desc("SCRIPTTOOLS", "yes", "-scripttools", "Build the QtScriptTools module."); - desc("V8", "no", "-no-v8", "Do not build the V8 module."); - desc("V8", "yes", "-v8", "Build the V8 module."); - desc("DECLARATIVE", "no", "-no-declarative", "Do not build the declarative module"); - desc("DECLARATIVE", "yes", "-declarative", "Build the declarative module"); desc("DECLARATIVE_DEBUG", "no", "-no-declarative-debug", "Do not build the declarative debugging support"); desc("DECLARATIVE_DEBUG", "yes", "-declarative-debug", "Build the declarative debugging support"); desc("DIRECTWRITE", "no", "-no-directwrite", "Do not build support for DirectWrite font rendering"); @@ -1993,8 +1912,6 @@ bool Configure::checkAvailability(const QString &part) } else if (part == "INCREDIBUILD_XGE") available = findFile("BuildConsole.exe") && findFile("xgConsole.exe"); - else if (part == "XMLPATTERNS") - available = dictionary.value("EXCEPTIONS") == "yes"; else if (part == "PHONON") { available = findFile("vmr9.h") && findFile("dshow.h") && findFile("dmo.h") && findFile("dmodshow.h") && (findFile("strmiids.lib") || findFile("libstrmiids.a")) @@ -2015,17 +1932,8 @@ bool Configure::checkAvailability(const QString &part) } } else if (part == "WMSDK") { available = findFile("wmsdk.h"); - } else if (part == "MULTIMEDIA" || part == "SCRIPT" || part == "SCRIPTTOOLS" || part == "V8" || part == "DECLARATIVE") { - available = true; } else if (part == "V8SNAPSHOT") { available = true; - } else if (part == "WEBKIT") { - available = (dictionary.value("QMAKESPEC") == "win32-msvc2005") || (dictionary.value("QMAKESPEC") == "win32-msvc2008") || (dictionary.value("QMAKESPEC") == "win32-msvc2010") || (dictionary.value("QMAKESPEC") == "win32-g++"); - if (dictionary[ "SHARED" ] == "no") { - cout << endl << "WARNING: Using static linking will disable the WebKit module." << endl - << endl; - available = false; - } } else if (part == "AUDIO_BACKEND") { available = true; } else if (part == "DIRECTWRITE") { @@ -2106,22 +2014,8 @@ void Configure::autoDetection() dictionary["OPENSSL"] = checkAvailability("OPENSSL") ? "yes" : "no"; if (dictionary["DBUS"] == "auto") dictionary["DBUS"] = checkAvailability("DBUS") ? "yes" : "no"; - if (dictionary["SCRIPT"] == "auto") - dictionary["SCRIPT"] = checkAvailability("SCRIPT") ? "yes" : "no"; - if (dictionary["SCRIPTTOOLS"] == "auto") - dictionary["SCRIPTTOOLS"] = dictionary["SCRIPT"] == "yes" ? "yes" : "no"; - if (dictionary["XMLPATTERNS"] == "auto") - dictionary["XMLPATTERNS"] = checkAvailability("XMLPATTERNS") ? "yes" : "no"; - if (dictionary["PHONON"] == "auto") - dictionary["PHONON"] = checkAvailability("PHONON") ? "yes" : "no"; - if (dictionary["WEBKIT"] == "auto") - dictionary["WEBKIT"] = checkAvailability("WEBKIT") ? "yes" : "no"; - if (dictionary["V8"] == "auto") - dictionary["V8"] = checkAvailability("V8") ? "yes" : "no"; if (dictionary["V8SNAPSHOT"] == "auto") dictionary["V8SNAPSHOT"] = (dictionary["V8"] == "yes") && checkAvailability("V8SNAPSHOT") ? "yes" : "no"; - if (dictionary["DECLARATIVE"] == "auto") - dictionary["DECLARATIVE"] = dictionary["V8"] == "yes" ? "yes" : "no"; if (dictionary["DECLARATIVE_DEBUG"] == "auto") dictionary["DECLARATIVE_DEBUG"] = dictionary["DECLARATIVE"] == "yes" ? "yes" : "no"; if (dictionary["AUDIO_BACKEND"] == "auto") @@ -2179,16 +2073,6 @@ bool Configure::verifyConfiguration() if (!(l.contains(dictionary["ARM_FPU_TYPE"]))) cout << QString("WARNING: Using unsupported fpu flag: %1").arg(dictionary["ARM_FPU_TYPE"]) << endl; } - if (dictionary["DECLARATIVE"] == "yes" && dictionary["V8"] == "no") { - cout << "WARNING: To be able to compile QtDeclarative we need to also compile the" << endl - << "V8 module. If you continue, we will turn on the V8 module." << endl - << "(Press any key to continue..)"; - if (_getch() == 3) // _Any_ keypress w/no echo(eat for stdout) - exit(0); // Exit cleanly for Ctrl+C - - dictionary["SCRIPT"] = "yes"; - } - if (dictionary["DIRECTWRITE"] == "yes" && !checkAvailability("DIRECTWRITE")) { cout << "WARNING: To be able to compile the DirectWrite font engine you will" << endl << "need the Microsoft DirectWrite and Microsoft Direct2D development" << endl @@ -2430,6 +2314,7 @@ void Configure::generateOutputVars() qtConfig += "egl"; } + // ### Vestige if (dictionary["DIRECTSHOW"] == "yes") qtConfig += "directshow"; @@ -2446,52 +2331,13 @@ void Configure::generateOutputVars() if (dictionary[ "CETEST" ] == "yes") qtConfig += "cetest"; -// No longer needed after modularization -// if (dictionary[ "SCRIPT" ] == "yes") -// qtConfig += "script"; - -// No longer needed after modularization -// if (dictionary[ "SCRIPTTOOLS" ] == "yes") { -// if (dictionary[ "SCRIPT" ] == "no") { -// cout << "QtScriptTools was requested, but it can't be built due to QtScript being " -// "disabled." << endl; -// dictionary[ "DONE" ] = "error"; -// } -// qtConfig += "scripttools"; -// } - -// No longer needed after modularization -// if (dictionary[ "XMLPATTERNS" ] == "yes") -// qtConfig += "xmlpatterns"; - - if (dictionary["PHONON"] == "yes") { - // No longer needed after modularization - //qtConfig += "phonon"; - if (dictionary["PHONON_BACKEND"] == "yes") - qtConfig += "phonon-backend"; - } - - if (dictionary["MULTIMEDIA"] == "yes") { - // No longer needed after modularization - //qtConfig += "multimedia"; - if (dictionary["AUDIO_BACKEND"] == "yes") - qtConfig += "audio-backend"; - } - - if (dictionary["WEBKIT"] != "no") { - if (dictionary["WEBKIT"] == "debug") - qtConfig += "webkit-debug"; - } - -// No longer needed after modularization -// if (dictionary["DECLARATIVE"] == "yes") { -// if (dictionary[ "V8" ] == "no") { -// cout << "QtDeclarative was requested, but it can't be built due to V8 being " -// "disabled." << endl; -// dictionary[ "DONE" ] = "error"; -// } -// qtConfig += "declarative"; -// } + // ### Vestige + if (dictionary["PHONON_BACKEND"] == "yes") + qtConfig += "phonon-backend"; + + // ### Vestige + if (dictionary["AUDIO_BACKEND"] == "yes") + qtConfig += "audio-backend"; if (dictionary["DIRECTWRITE"] == "yes") qtConfig += "directwrite"; @@ -2499,16 +2345,12 @@ void Configure::generateOutputVars() if (dictionary[ "NATIVE_GESTURES" ] == "yes") qtConfig += "native-gestures"; - // We currently have no switch for QtSvg, so add it unconditionally. - qtConfig += "svg"; // We currently have no switch for QtConcurrent, so add it unconditionally. qtConfig += "concurrent"; - if (dictionary[ "V8" ] == "yes") { - qtConfig += "v8"; - if (dictionary[ "V8SNAPSHOT" ] == "yes") - qtConfig += "v8snapshot"; - } + // ### Vestige + if (dictionary[ "V8SNAPSHOT" ] == "yes") + qtConfig += "v8snapshot"; // Add config levels -------------------------------------------- QStringList possible_configs = QStringList() @@ -2913,15 +2755,7 @@ void Configure::generateConfigfiles() } if (dictionary["OPENSSL"] == "linked") qconfigList += "QT_LINKED_OPENSSL"; if (dictionary["DBUS"] == "no") qconfigList += "QT_NO_DBUS"; - if (dictionary["WEBKIT"] == "no") qconfigList += "QT_NO_WEBKIT"; - if (dictionary["V8"] == "no") qconfigList += "QT_NO_V8"; - if (dictionary["DECLARATIVE"] == "no") qconfigList += "QT_NO_DECLARATIVE"; if (dictionary["DECLARATIVE_DEBUG"] == "no") qconfigList += "QDECLARATIVE_NO_DEBUG_PROTOCOL"; - if (dictionary["PHONON"] == "no") qconfigList += "QT_NO_PHONON"; - if (dictionary["MULTIMEDIA"] == "no") qconfigList += "QT_NO_MULTIMEDIA"; - if (dictionary["XMLPATTERNS"] == "no") qconfigList += "QT_NO_XMLPATTERNS"; - if (dictionary["SCRIPT"] == "no") qconfigList += "QT_NO_SCRIPT"; - if (dictionary["SCRIPTTOOLS"] == "no") qconfigList += "QT_NO_SCRIPTTOOLS"; if (dictionary["FREETYPE"] == "no") qconfigList += "QT_NO_FREETYPE"; if (dictionary["NATIVE_GESTURES"] == "no") qconfigList += "QT_NO_NATIVE_GESTURES"; @@ -3182,24 +3016,7 @@ void Configure::displayConfig() cout << "OpenVG support.............." << dictionary[ "OPENVG" ] << endl; cout << "OpenSSL support............." << dictionary[ "OPENSSL" ] << endl; cout << "QtDBus support.............." << dictionary[ "DBUS" ] << endl; - cout << "QtXmlPatterns support......." << dictionary[ "XMLPATTERNS" ] << endl; - cout << "Phonon support.............." << dictionary[ "PHONON" ] << endl; - cout << "QtMultimedia support........" << dictionary[ "MULTIMEDIA" ] << endl; - { - QString webkit = dictionary[ "WEBKIT" ]; - if (webkit == "debug") - webkit = "yes (debug)"; - cout << "WebKit support.............." << webkit << endl; - } - { - QString declarative = dictionary[ "DECLARATIVE" ]; - cout << "Declarative support........." << declarative << endl; - if (declarative == "yes") - cout << "Declarative debugging......." << dictionary[ "DECLARATIVE_DEBUG" ] << endl; - } - cout << "V8 support.................." << dictionary[ "V8" ] << endl; - cout << "QtScript support............" << dictionary[ "SCRIPT" ] << endl; - cout << "QtScriptTools support......." << dictionary[ "SCRIPTTOOLS" ] << endl; + cout << "Declarative debugging......." << dictionary[ "DECLARATIVE_DEBUG" ] << endl; cout << "DirectWrite support........." << dictionary[ "DIRECTWRITE" ] << endl << endl; cout << "Third Party Libraries:" << endl; @@ -3252,9 +3069,6 @@ void Configure::displayConfig() cout << "Signature..................." << dictionary[ "CE_SIGNATURE"] << endl << endl; } - if (dictionary["ASSISTANT_WEBKIT"] == "yes") - cout << "Using WebKit as html rendering engine in Qt Assistant." << endl; - if (checkAvailability("INCREDIBUILD_XGE")) cout << "Using IncrediBuild XGE......" << dictionary["INCREDIBUILD_XGE"] << endl; if (!qmakeDefines.isEmpty()) { -- cgit v1.2.3