Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/configure/configureapp.cpp

    r651 r769  
    248248    dictionary[ "PHONON_BACKEND" ]  = "yes";
    249249    dictionary[ "MULTIMEDIA" ]      = "yes";
    250     dictionary[ "AUDIO_BACKEND" ]   = "yes";
     250    dictionary[ "AUDIO_BACKEND" ]   = "auto";
    251251    dictionary[ "DIRECTSHOW" ]      = "no";
    252252    dictionary[ "WEBKIT" ]          = "auto";
     
    318318    dictionary[ "DBUS" ]            = "auto";
    319319    dictionary[ "S60" ]             = "yes";
    320     dictionary[ "SYMBIAN_DEFFILES" ] = "yes";
    321320
    322321    dictionary[ "STYLE_WINDOWS" ]   = "yes";
     
    971970                break;
    972971            dictionary[ "QT_LIBINFIX" ] = configCmdLine.at(i);
     972            if (dictionary.contains("XQMAKESPEC") && dictionary["XQMAKESPEC"].startsWith("symbian")) {
     973                dictionary[ "QT_INSTALL_PLUGINS" ] =
     974                    QString("\\resource\\qt%1\\plugins").arg(dictionary[ "QT_LIBINFIX" ]);
     975            }
    973976        } else if( configCmdLine.at(i) == "-D" ) {
    974977            ++i;
     
    14781481        dictionary[ "QT_GLIB" ]             = "no";
    14791482        dictionary[ "S60" ]                 = "yes";
     1483        dictionary[ "SYMBIAN_DEFFILES" ]    = "yes";
    14801484        // iconv makes makes apps start and run ridiculously slowly in symbian emulator (HW not tested)
    14811485        // iconv_open seems to return -1 always, so something is probably missing from the platform.
     
    14851489        dictionary[ "QT_INSTALL_PREFIX" ]   = "";
    14861490        dictionary[ "QT_INSTALL_PLUGINS" ]  = "\\resource\\qt\\plugins";
     1491        dictionary[ "QT_INSTALL_TRANSLATIONS" ]  = "\\resource\\qt\\translations";
    14871492        dictionary[ "ARM_FPU_TYPE" ]        = "softvfp";
    14881493        dictionary[ "SQL_SQLITE" ]          = "yes";
     
    20662071    } else if (part == "DECLARATIVE") {
    20672072        available = QFile::exists(sourcePath + "/src/declarative/qml/qmlcomponent.h");
     2073    } else if (part == "AUDIO_BACKEND") {
     2074        available = true;
     2075        if (dictionary.contains("XQMAKESPEC") && dictionary["XQMAKESPEC"].startsWith("symbian")) {
     2076            QString epocRoot = Environment::symbianEpocRoot();
     2077            const QDir epocRootDir(epocRoot);
     2078            if (epocRootDir.exists()) {
     2079                QStringList paths;
     2080                paths << "epoc32/release/armv5/lib/mmfdevsound.dso"
     2081                      << "epoc32/release/armv5/lib/mmfdevsound.lib"
     2082                      << "epoc32/release/winscw/udeb/mmfdevsound.dll"
     2083                      << "epoc32/release/winscw/udeb/mmfdevsound.lib"
     2084                      << "epoc32/include/mmf/server/sounddevice.h";
     2085
     2086                QStringList::iterator i = paths.begin();
     2087                while (i != paths.end()) {
     2088                    const QString &path = epocRoot + *i;
     2089                    if (QFile::exists(path))
     2090                        i = paths.erase(i);
     2091                    else
     2092                        ++i;
     2093                }
     2094
     2095                available = (paths.size() == 0);
     2096                if (!available) {
     2097                    if (epocRoot.isNull() || epocRoot == "")
     2098                        epocRoot = "<empty string>";
     2099                    cout << endl
     2100                         << "The QtMultimedia audio backend will not be built because required" << endl
     2101                         << "support for CMMFDevSound was not found in the SDK." << endl
     2102                         << "The SDK which was examined was located at the following path:" << endl
     2103                         << "    " << epocRoot << endl
     2104                         << "The following required files were missing from the SDK:" << endl;
     2105                    QString path;
     2106                    foreach (path, paths)
     2107                        cout << "    " << path << endl;
     2108                    cout << endl;
     2109                }
     2110            } else {
     2111                cout << endl
     2112                     << "The SDK root was determined to be '" << epocRoot << "'." << endl
     2113                     << "This directory was not found, so the SDK could not be checked for" << endl
     2114                     << "CMMFDevSound support.  The QtMultimedia audio backend will therefore" << endl
     2115                     << "not be built." << endl << endl;
     2116                available = false;
     2117            }
     2118        }
    20682119    }
    20692120
     
    21542205    if (dictionary["DECLARATIVE"] == "auto")
    21552206        dictionary["DECLARATIVE"] = checkAvailability("DECLARATIVE") ? "yes" : "no";
     2207    if (dictionary["AUDIO_BACKEND"] == "auto")
     2208        dictionary["AUDIO_BACKEND"] = checkAvailability("AUDIO_BACKEND") ? "yes" : "no";
    21562209
    21572210    // Qt/WinCE remote test application
     
    22662319    QString build32Key = buildKey + "Windows " + compiler + " %1 " + build_options.join(" ") + " " + build_defines.join(" ");
    22672320    QString build64Key = buildKey + "Windows x64 " + compiler + " %1 " + build_options.join(" ") + " " + build_defines.join(" ");
     2321    QString buildSymbianKey = buildKey + "Symbian " + build_options.join(" ") + " " + build_defines.join(" ");
    22682322    build32Key = build32Key.simplified();
    22692323    build64Key = build64Key.simplified();
    2270     build32Key.prepend("#  define ");
    2271     build64Key.prepend("#  define ");
    2272 
    2273     QString buildkey = // Debug builds
    2274                        "#if (defined(_DEBUG) || defined(DEBUG))\n"
    2275                        "# if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))\n"
     2324    buildSymbianKey = buildSymbianKey.simplified();
     2325    build32Key.prepend("#   define ");
     2326    build64Key.prepend("#   define ");
     2327    buildSymbianKey.prepend("# define ");
     2328
     2329    QString buildkey = "#if defined(__SYMBIAN32__)\n"
     2330                       + buildSymbianKey + "\"\n"
     2331                       "#else\n"
     2332                       // Debug builds
     2333                       "# if (defined(_DEBUG) || defined(DEBUG))\n"
     2334                       "#  if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))\n"
    22762335                       + build64Key.arg("debug") + "\"\n"
     2336                       "#  else\n"
     2337                       + build32Key.arg("debug") + "\"\n"
     2338                       "#  endif\n"
    22772339                       "# else\n"
    2278                        + build32Key.arg("debug") + "\"\n"
    2279                        "# endif\n"
    2280                        "#else\n"
    22812340                       // Release builds
    2282                        "# if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))\n"
     2341                       "#  if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))\n"
    22832342                       + build64Key.arg("release") + "\"\n"
    2284                        "# else\n"
     2343                       "#  else\n"
    22852344                       + build32Key.arg("release") + "\"\n"
     2345                       "#  endif\n"
    22862346                       "# endif\n"
    22872347                       "#endif\n";
     
    29683028            qconfigList += "QT_NO_PRINTER";
    29693029            qconfigList += "QT_NO_SYSTEMTRAYICON";
     3030            if (dictionary.contains("QT_LIBINFIX"))
     3031                tmpStream << QString("#define QT_LIBINFIX \"%1\"").arg(dictionary["QT_LIBINFIX"]) << endl;
    29703032        }
    29713033
     
    36463708                    txt << "all:\n";
    36473709                    txt << "\t" << args.join(" ") << "\n";
    3648                     txt << "\t" << dictionary[ "MAKE" ] << " -f " << it->target << "\n";
     3710                    txt << "\t\"$(MAKE)\" -$(MAKEFLAGS) -f " << it->target << "\n";
    36493711                    txt << "first: all\n";
    36503712                    txt << "qmake:\n";
Note: See TracChangeset for help on using the changeset viewer.