Changeset 769 for trunk/tools/configure/configureapp.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/tools/configure/configureapp.cpp
r651 r769 248 248 dictionary[ "PHONON_BACKEND" ] = "yes"; 249 249 dictionary[ "MULTIMEDIA" ] = "yes"; 250 dictionary[ "AUDIO_BACKEND" ] = " yes";250 dictionary[ "AUDIO_BACKEND" ] = "auto"; 251 251 dictionary[ "DIRECTSHOW" ] = "no"; 252 252 dictionary[ "WEBKIT" ] = "auto"; … … 318 318 dictionary[ "DBUS" ] = "auto"; 319 319 dictionary[ "S60" ] = "yes"; 320 dictionary[ "SYMBIAN_DEFFILES" ] = "yes";321 320 322 321 dictionary[ "STYLE_WINDOWS" ] = "yes"; … … 971 970 break; 972 971 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 } 973 976 } else if( configCmdLine.at(i) == "-D" ) { 974 977 ++i; … … 1478 1481 dictionary[ "QT_GLIB" ] = "no"; 1479 1482 dictionary[ "S60" ] = "yes"; 1483 dictionary[ "SYMBIAN_DEFFILES" ] = "yes"; 1480 1484 // iconv makes makes apps start and run ridiculously slowly in symbian emulator (HW not tested) 1481 1485 // iconv_open seems to return -1 always, so something is probably missing from the platform. … … 1485 1489 dictionary[ "QT_INSTALL_PREFIX" ] = ""; 1486 1490 dictionary[ "QT_INSTALL_PLUGINS" ] = "\\resource\\qt\\plugins"; 1491 dictionary[ "QT_INSTALL_TRANSLATIONS" ] = "\\resource\\qt\\translations"; 1487 1492 dictionary[ "ARM_FPU_TYPE" ] = "softvfp"; 1488 1493 dictionary[ "SQL_SQLITE" ] = "yes"; … … 2066 2071 } else if (part == "DECLARATIVE") { 2067 2072 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 } 2068 2119 } 2069 2120 … … 2154 2205 if (dictionary["DECLARATIVE"] == "auto") 2155 2206 dictionary["DECLARATIVE"] = checkAvailability("DECLARATIVE") ? "yes" : "no"; 2207 if (dictionary["AUDIO_BACKEND"] == "auto") 2208 dictionary["AUDIO_BACKEND"] = checkAvailability("AUDIO_BACKEND") ? "yes" : "no"; 2156 2209 2157 2210 // Qt/WinCE remote test application … … 2266 2319 QString build32Key = buildKey + "Windows " + compiler + " %1 " + build_options.join(" ") + " " + build_defines.join(" "); 2267 2320 QString build64Key = buildKey + "Windows x64 " + compiler + " %1 " + build_options.join(" ") + " " + build_defines.join(" "); 2321 QString buildSymbianKey = buildKey + "Symbian " + build_options.join(" ") + " " + build_defines.join(" "); 2268 2322 build32Key = build32Key.simplified(); 2269 2323 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" 2276 2335 + build64Key.arg("debug") + "\"\n" 2336 "# else\n" 2337 + build32Key.arg("debug") + "\"\n" 2338 "# endif\n" 2277 2339 "# else\n" 2278 + build32Key.arg("debug") + "\"\n"2279 "# endif\n"2280 "#else\n"2281 2340 // Release builds 2282 "# if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))\n"2341 "# if (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))\n" 2283 2342 + build64Key.arg("release") + "\"\n" 2284 "# else\n"2343 "# else\n" 2285 2344 + build32Key.arg("release") + "\"\n" 2345 "# endif\n" 2286 2346 "# endif\n" 2287 2347 "#endif\n"; … … 2968 3028 qconfigList += "QT_NO_PRINTER"; 2969 3029 qconfigList += "QT_NO_SYSTEMTRAYICON"; 3030 if (dictionary.contains("QT_LIBINFIX")) 3031 tmpStream << QString("#define QT_LIBINFIX \"%1\"").arg(dictionary["QT_LIBINFIX"]) << endl; 2970 3032 } 2971 3033 … … 3646 3708 txt << "all:\n"; 3647 3709 txt << "\t" << args.join(" ") << "\n"; 3648 txt << "\t " << dictionary[ "MAKE" ] << "-f " << it->target << "\n";3710 txt << "\t\"$(MAKE)\" -$(MAKEFLAGS) -f " << it->target << "\n"; 3649 3711 txt << "first: all\n"; 3650 3712 txt << "qmake:\n";
Note:
See TracChangeset
for help on using the changeset viewer.