You can always define yourself:
build_pass:CONFIG(static, static|shared){
DEFINES += STATIC_BUILD
} else{
DEFINES += SHARED_BUILD
}
build_pass:CONFIG(static, static|shared){
DEFINES += STATIC_BUILD
} else{
DEFINES += SHARED_BUILD
}
To copy to clipboard, switch view to plain text mode
Then in code:
#ifdef STATIC_BUILD
// static build code
#elif defined(SHARED_BUILD)
// shared build code
#endif
#ifdef STATIC_BUILD
// static build code
#elif defined(SHARED_BUILD)
// shared build code
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks