Ignore:
Timestamp:
Aug 26, 2011, 7:48:22 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Remove suport for system-wide qt.conf files.

This turns not to be necessary. The new code is much simpler and has
less platform-dependent details. Note that hard-coded component paths
are now relative to the parent of the directory containing QtCore4.dll, not
to that directory itself as before. This in particular makes qt.conf not necessary
for the development builds at all.

For official (RPM) release builds, full hard-coded paths will be used so qt.conf
is not necessary at all. It will only be in use in portable ZIP distributions to
override these hard-coded paths of RPM builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/option.cpp

    r847 r1030  
    774774QString qmake_libraryInfoFile()
    775775{
     776
    776777    QString ret;
    777778#if defined(Q_OS_WIN)
     
    788789        DosQueryModuleName(ppib->pib_hmte, sizeof(appFileName), appFileName);
    789790    }
    790     ret = QFileInfo(QString::fromLocal8Bit(appFileName)).absolutePath() +
    791                     QLatin1String("/qt.conf");
    792     if (!QFile::exists(ret)) {
    793         // search in the system-wide location
    794         ret = QString::fromLocal8Bit(qgetenv("ETC"));
    795         if (ret.isEmpty())
    796             ret = QDir::rootPath();
    797         ret = ret + QLatin1String("/qtsys.conf");
    798     }
    799     return QDir::cleanPath(ret);
     791    ret = QFileInfo(QString::fromLocal8Bit(appFileName)).filePath();
    800792#else
    801793    QString argv0 = QFile::decodeName(QByteArray(Option::application_argv0));
     
    839831    ret = fi.exists() ? fi.canonicalFilePath() : QString();
    840832#endif
    841 #if !defined(Q_OS_OS2)
    842833    if(!ret.isEmpty())
    843834        ret = QDir(QFileInfo(ret).absolutePath()).filePath("qt.conf");
    844835    return ret;
    845 #endif
    846836}
    847837
Note: See TracChangeset for help on using the changeset viewer.