[Development] [Interest] guidelines for modifying Qt's own build system?

Kevin Kofler kevin.kofler at chello.at
Sat Mar 14 22:32:20 CET 2015


Thiago Macieira wrote:

> On Saturday 14 March 2015 20:09:13 Kevin Kofler wrote:
>> QStandardPaths() {
>>   init(QT_USE_FHS_PATHS);
>> }
>> 
>> (possibly with something like __attribute__((always_inline)) to ensure
>> the inline function will always be used, bypassing the C++ one definition
>> rule), where QT_USE_FHS_PATHS would be defined at application compile
>> time.
> 
> Explain to me why a regular, non-inline, static function in QStandardPaths
> wouldn't solve the problem.

I think the idea was to avoid requiring any changes to the actual code of 
the application, only to the build setup (which could then be centralized in 
a common CMake module such as KDECompilerSettings.cmake in
extra-cmake-modules that all the KDE projects include).

        Kevin Kofler




More information about the Development mailing list