Jean-Marc Lasgouttes wrote:
>>>>>> "Peter" == Peter Kümmel <[EMAIL PROTECTED]> writes:
> 
> Peter> I've not followed the thread but maybe this is what you are
> Peter> looking for:
> 
> Peter> qmake -query QT_INSTALL_LIBS 
> 
> This is not described by qmake help, it would be too easy! I finally
> found it in my qt3.3 manual, but I can only use 
> 
>     * QT_INSTALL_PREFIX - Where the version of Qt this qmake is built
>       for resides 
>     * QT_INSTALL_DATA - Where data for this version of Qt resides
>     * QMAKE_VERSION - The current version of qmake
> 
> See for example:
> http://doc.trolltech.com/4.0/qmake-environment-reference.html
> 
> This is not very useful.
> 
> So it seems that your copy of qt has additional settings configured.
> Is that something we can rely on?
> 
> I really do not understand this stuff.
> 
> JMarc
> 
> 

I think it is quite stable, also kdelibs uses this variables to detect Qt4.
Maybe we should commit a bug report to Trolltech.


There are more variables, see qt4/qmake/property.cpp:

QString
QMakeProperty::value(QString v, bool just_check)
{
    if(v == "QT_INSTALL_PREFIX")
        return QLibraryInfo::location(QLibraryInfo::PrefixPath);
    else if(v == "QT_INSTALL_DATA")
        return QLibraryInfo::location(QLibraryInfo::DataPath);
    else if(v == "QT_INSTALL_DOCS")
        return QLibraryInfo::location(QLibraryInfo::DocumentationPath);
    else if(v == "QT_INSTALL_HEADERS")
        return QLibraryInfo::location(QLibraryInfo::HeadersPath);
    else if(v == "QT_INSTALL_LIBS")
        return QLibraryInfo::location(QLibraryInfo::LibrariesPath);
    else if(v == "QT_INSTALL_BINS")
        return QLibraryInfo::location(QLibraryInfo::BinariesPath);
    else if(v == "QT_INSTALL_PLUGINS")
        return QLibraryInfo::location(QLibraryInfo::PluginsPath);
    else if(v == "QT_INSTALL_TRANSLATIONS")
        return QLibraryInfo::location(QLibraryInfo::TranslationsPath);
    else if(v == "QT_INSTALL_CONFIGURATION")
        return QLibraryInfo::location(QLibraryInfo::SettingsPath);
    else if(v == "QT_INSTALL_EXAMPLES")
        return QLibraryInfo::location(QLibraryInfo::ExamplesPath);
    else if(v == "QT_INSTALL_DEMOS")
        return QLibraryInfo::location(QLibraryInfo::DemosPath);
    else if(v == "QMAKE_MKSPECS")
        return qmake_mkspec_paths().join(Option::target_mode == 
Option::TARG_WIN_MODE ? ";" : ":");
    else if(v == "QMAKE_VERSION")
        return qmake_version();
#ifdef QT_VERSION_STR
    else if(v == "QT_VERSION")
        return QT_VERSION_STR;
#endif



Reply via email to