tools/linguist/shared/proparserutils.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    41 
    41 
    42 #ifndef PROPARSERUTILS_H
    42 #ifndef PROPARSERUTILS_H
    43 #define PROPARSERUTILS_H
    43 #define PROPARSERUTILS_H
    44 
    44 
    45 #include <QtCore/QDir>
    45 #include <QtCore/QDir>
       
    46 #ifndef QT_BOOTSTRAPPED
    46 #include <QtCore/QLibraryInfo>
    47 #include <QtCore/QLibraryInfo>
       
    48 #endif
    47 
    49 
    48 QT_BEGIN_NAMESPACE
    50 QT_BEGIN_NAMESPACE
       
    51 
       
    52 #ifdef QT_BOOTSTRAPPED
       
    53 // this is a stripped down version of the one found in QtCore
       
    54 class QLibraryInfo
       
    55 {
       
    56 public:
       
    57     enum LibraryLocation
       
    58     {
       
    59         PrefixPath,
       
    60         DocumentationPath,
       
    61         HeadersPath,
       
    62         LibrariesPath,
       
    63         BinariesPath,
       
    64         PluginsPath,
       
    65         DataPath,
       
    66         TranslationsPath,
       
    67         SettingsPath,
       
    68         DemosPath,
       
    69         ExamplesPath
       
    70     };
       
    71     static QString location(LibraryLocation);
       
    72 };
       
    73 #endif
    49 
    74 
    50 // Pre- and postcondition macros
    75 // Pre- and postcondition macros
    51 #define PRE(cond) do {if (!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
    76 #define PRE(cond) do {if (!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
    52 #define POST(cond) do {if (!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
    77 #define POST(cond) do {if (!(cond))qt_assert(#cond,__FILE__,__LINE__);} while (0)
    53 
    78