60 #define RSS_TAG_SERVICE_LIST "service_list" |
60 #define RSS_TAG_SERVICE_LIST "service_list" |
61 #define RSS_TAG_FILE_OWNERSHIP_LIST "file_ownership_list" |
61 #define RSS_TAG_FILE_OWNERSHIP_LIST "file_ownership_list" |
62 #define RSS_TAG_DATATYPE_LIST "datatype_list" |
62 #define RSS_TAG_DATATYPE_LIST "datatype_list" |
63 #define RSS_TAG_FOOTER "footer" |
63 #define RSS_TAG_FOOTER "footer" |
64 #define RSS_TAG_DEFAULT "default_rules" // Same as just giving rules without tag |
64 #define RSS_TAG_DEFAULT "default_rules" // Same as just giving rules without tag |
|
65 |
|
66 #define PLUGIN_COMMON_DEF_FILE_ACTUAL "plugin_commonu.def" |
65 |
67 |
66 #define MANUFACTURER_NOTE_FILE "manufacturer_note.txt" |
68 #define MANUFACTURER_NOTE_FILE "manufacturer_note.txt" |
67 #define DEFAULT_MANUFACTURER_NOTE \ |
69 #define DEFAULT_MANUFACTURER_NOTE \ |
68 "The package is not supported for devices from this manufacturer. Please try the selfsigned " \ |
70 "The package is not supported for devices from this manufacturer. Please try the selfsigned " \ |
69 "version of the package instead." |
71 "version of the package instead." |
446 if (!from.contains(QLatin1String("epoc32"), Qt::CaseInsensitive)) { |
448 if (!from.contains(QLatin1String("epoc32"), Qt::CaseInsensitive)) { |
447 from = to; |
449 from = to; |
448 if (from.size() > 1 && from.at(1) == QLatin1Char(':')) |
450 if (from.size() > 1 && from.at(1) == QLatin1Char(':')) |
449 from = from.mid(2); |
451 from = from.mid(2); |
450 from.prepend(zDir); |
452 from.prepend(zDir); |
451 } else { |
453 } else { |
452 if (from.size() > 1 && from.at(1) == QLatin1Char(':')) |
454 if (from.size() > 1 && from.at(1) == QLatin1Char(':')) |
453 from = from.mid(2); |
455 from = from.mid(2); |
454 } |
456 } |
455 } |
457 } |
456 |
458 |
457 t << QString("\"%1\" - \"%2\"").arg(from.replace('\\','/')).arg(to) << endl; |
459 t << QString("\"%1\" - \"%2\"").arg(from.replace('\\','/')).arg(to) << endl; |
458 ts << QString("\"\" - \"%1\"").arg(romPath(to)) << endl; |
460 ts << QString("\"\" - \"%1\"").arg(romPath(to)) << endl; |
459 } |
461 } |
516 twf << wrapperStreamBuffer << endl; |
518 twf << wrapperStreamBuffer << endl; |
517 |
519 |
518 // Wrapped files deployment |
520 // Wrapped files deployment |
519 QString currentPath = qmake_getpwd(); |
521 QString currentPath = qmake_getpwd(); |
520 QString sisName = QString("%1.sis").arg(pkgTarget); |
522 QString sisName = QString("%1.sis").arg(pkgTarget); |
521 twf << "\"" << currentPath << "/" << sisName << "\" - \"c:\\adm\\" << sisName << "\"" << endl; |
523 twf << "\"" << currentPath << "/" << sisName << "\" - \"c:\\private\\2002CCCE\\import\\" << sisName << "\"" << endl; |
522 |
524 |
523 QString bootStrapPath = QLibraryInfo::location(QLibraryInfo::PrefixPath); |
525 QString bootStrapPath = QLibraryInfo::location(QLibraryInfo::PrefixPath); |
524 bootStrapPath.append("/smartinstaller.sis"); |
526 bootStrapPath.append("/smartinstaller.sis"); |
525 QFileInfo fi(generator->fileInfo(bootStrapPath)); |
527 QFileInfo fi(generator->fileInfo(bootStrapPath)); |
526 twf << "@\"" << fi.absoluteFilePath() << "\",(0x2002CCCD)" << endl; |
528 twf << "@\"" << fi.absoluteFilePath() << "\",(0x2002CCCD)" << endl; |
967 if (!ok) { |
969 if (!ok) { |
968 numberOfIcons.clear(); |
970 numberOfIcons.clear(); |
969 iconFile.clear(); |
971 iconFile.clear(); |
970 fprintf(stderr, "Warning: '%s%s' must be integer in decimal format.\n", |
972 fprintf(stderr, "Warning: '%s%s' must be integer in decimal format.\n", |
971 RSS_RULES_BASE, RSS_TAG_NBROFICONS); |
973 RSS_RULES_BASE, RSS_TAG_NBROFICONS); |
|
974 } |
|
975 } |
|
976 } |
|
977 |
|
978 void SymbianCommonGenerator::writeCustomDefFile() |
|
979 { |
|
980 if (targetType == TypePlugin && !generator->project->isActiveConfig("stdbinary")) { |
|
981 // Create custom def file for plugin |
|
982 QFile ft(Option::output_dir + QLatin1Char('/') + QLatin1String(PLUGIN_COMMON_DEF_FILE_ACTUAL)); |
|
983 |
|
984 if (ft.open(QIODevice::WriteOnly)) { |
|
985 generatedFiles << ft.fileName(); |
|
986 QTextStream t(&ft); |
|
987 |
|
988 t << "; ==============================================================================" << endl; |
|
989 t << "; Generated by qmake (" << qmake_version() << ") (Qt " QT_VERSION_STR ") on: "; |
|
990 t << QDateTime::currentDateTime().toString(Qt::ISODate) << endl; |
|
991 t << "; This file is generated by qmake and should not be modified by the" << endl; |
|
992 t << "; user." << endl; |
|
993 t << "; Name : " PLUGIN_COMMON_DEF_FILE_ACTUAL << endl; |
|
994 t << "; Part of : " << generator->project->values("TARGET").join(" ") << endl; |
|
995 t << "; Description : Fixes common plugin symbols to known ordinals" << endl; |
|
996 t << "; Version : " << endl; |
|
997 t << ";" << endl; |
|
998 t << "; ==============================================================================" << "\n" << endl; |
|
999 |
|
1000 t << endl; |
|
1001 |
|
1002 t << "EXPORTS" << endl; |
|
1003 t << "\tqt_plugin_query_verification_data @ 1 NONAME" << endl; |
|
1004 t << "\tqt_plugin_instance @ 2 NONAME" << endl; |
|
1005 t << endl; |
|
1006 } else { |
|
1007 PRINT_FILE_CREATE_ERROR(QString(PLUGIN_COMMON_DEF_FILE_ACTUAL)) |
972 } |
1008 } |
973 } |
1009 } |
974 } |
1010 } |
975 |
1011 |
976 QStringList SymbianCommonGenerator::symbianLangCodesFromTsFiles() |
1012 QStringList SymbianCommonGenerator::symbianLangCodesFromTsFiles() |