Added MSVC warnings.
--HG-- branch : develop
This commit is contained in:
parent
ed2bbd97a3
commit
483e56866d
37
common.pri
37
common.pri
|
@ -675,4 +675,41 @@ CLANG_DEBUG_CXXFLAGS += \
|
||||||
-pedantic \
|
-pedantic \
|
||||||
-fno-omit-frame-pointer \ # Need for exchndl.dll
|
-fno-omit-frame-pointer \ # Need for exchndl.dll
|
||||||
-fms-extensions # Need for pragma message
|
-fms-extensions # Need for pragma message
|
||||||
|
|
||||||
|
MSVC_DEBUG_CXXFLAGS += \
|
||||||
|
-Wall \
|
||||||
|
-wd4061 \ # enum value is not *explicitly* handled in switch
|
||||||
|
-wd4099 \ # first seen using 'struct' now seen using 'class'
|
||||||
|
-wd4127 \ # conditional expression is constant
|
||||||
|
-wd4217 \ # member template isn't copy constructor
|
||||||
|
-wd4250 \ # inherits (implements) some member via dominance
|
||||||
|
-wd4251 \ # needs to have dll-interface to be used by clients
|
||||||
|
-wd4275 \ # exported class derived from non-exported class
|
||||||
|
-wd4347 \ # "behavior change", function called instead of template
|
||||||
|
-wd4355 \ # "'this': used in member initializer list
|
||||||
|
-wd4505 \ # unreferenced function has been removed
|
||||||
|
-wd4510 \ # default constructor could not be generated
|
||||||
|
-wd4511 \ # copy constructor could not be generated
|
||||||
|
-wd4512 \ # assignment operator could not be generated
|
||||||
|
-wd4513 \ # destructor could not be generated
|
||||||
|
-wd4610 \ # can never be instantiated user defined constructor required
|
||||||
|
-wd4623 \ # default constructor could not be generated
|
||||||
|
-wd4624 \ # destructor could not be generated
|
||||||
|
-wd4625 \ # copy constructor could not be generated
|
||||||
|
-wd4626 \ # assignment operator could not be generated
|
||||||
|
-wd4640 \ # a local static object is not thread-safe
|
||||||
|
-wd4661 \ # a member of the template class is not defined.
|
||||||
|
-wd4670 \ # a base class of an exception class is inaccessible for catch
|
||||||
|
-wd4672 \ # a base class of an exception class is ambiguous for catch
|
||||||
|
-wd4673 \ # a base class of an exception class is inaccessible for catch
|
||||||
|
-wd4675 \ # resolved overload was found by argument-dependent lookup
|
||||||
|
-wd4702 \ # unreachable code, e.g. in <list> header.
|
||||||
|
-wd4710 \ # call was not inlined
|
||||||
|
-wd4711 \ # call was inlined
|
||||||
|
-wd4820 \ # some padding was added
|
||||||
|
-wd4917 \ # a GUID can only be associated with a class, interface or namespace
|
||||||
|
# The following are real warnings but are generated by almost all MS headers, including
|
||||||
|
# standard library headers, so it's impractical to leave them on.
|
||||||
|
-wd4619 \ # there is no warning number 'XXXX'
|
||||||
|
-wd4668 # XXX is not defined as a preprocessor macro
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,15 +264,10 @@ OTHER_FILES += \
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
|
include(warnings.pri)
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
CONFIG(debug, debug|release){
|
||||||
# Debug mode
|
# Debug mode
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
DEFINES += "BUILD_REVISION=\\\"unknown\\\""
|
DEFINES += "BUILD_REVISION=\\\"unknown\\\""
|
||||||
}else{
|
}else{
|
||||||
# Release mode
|
# Release mode
|
||||||
|
@ -282,10 +277,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
DEFINES += V_NO_DEBUG
|
DEFINES += V_NO_DEBUG
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -52,3 +53,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -63,17 +63,10 @@ OTHER_FILES += \
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
|
include(warnings.pri)
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
CONFIG(debug, debug|release){
|
||||||
# Debug mode
|
# Debug mode
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Calculate latest tag distance and build revision only in release mode. Change number each time requare
|
#Calculate latest tag distance and build revision only in release mode. Change number each time requare
|
||||||
#recompilation precompiled headers file.
|
#recompilation precompiled headers file.
|
||||||
DEFINES += "LATEST_TAG_DISTANCE=0"
|
DEFINES += "LATEST_TAG_DISTANCE=0"
|
||||||
|
@ -86,10 +79,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
DEFINES += V_NO_DEBUG
|
DEFINES += V_NO_DEBUG
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -55,3 +56,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -45,17 +45,9 @@ UI_DIR = uic
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
DEFINES += V_NO_ASSERT
|
DEFINES += V_NO_ASSERT
|
||||||
|
@ -63,10 +55,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -43,3 +44,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -53,17 +53,9 @@ RESOURCES += \
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
DEFINES += V_NO_ASSERT
|
DEFINES += V_NO_ASSERT
|
||||||
|
@ -71,10 +63,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -49,3 +50,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -65,17 +65,9 @@ unix:!macx{
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
|
|
||||||
|
@ -83,10 +75,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noStripDebugSymbols {
|
noStripDebugSymbols {
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -40,3 +41,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -40,17 +40,9 @@ OBJECTS_DIR = obj
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
CONFIG += silent
|
CONFIG += silent
|
||||||
|
|
||||||
|
@ -58,10 +50,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -40,3 +41,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -46,17 +46,9 @@ OBJECTS_DIR = obj
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
DEFINES += V_NO_ASSERT
|
DEFINES += V_NO_ASSERT
|
||||||
|
@ -64,10 +56,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -40,3 +41,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -42,17 +42,9 @@ OBJECTS_DIR = obj
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
|
|
||||||
|
@ -60,10 +52,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -40,3 +41,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -45,17 +45,9 @@ RCC_DIR = rcc
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
DEFINES += V_NO_ASSERT
|
DEFINES += V_NO_ASSERT
|
||||||
|
@ -63,10 +55,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
QMAKE_CXXFLAGS -= -O2 # Disable default optimization level
|
QMAKE_CXXFLAGS -= -O2 # Disable default optimization level
|
||||||
QMAKE_CXXFLAGS += -O3 # For vlayout library enable speed optimizations
|
QMAKE_CXXFLAGS += -O3 # For vlayout library enable speed optimizations
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -54,3 +55,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -48,16 +48,10 @@ OBJECTS_DIR = obj
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
|
include(warnings.pri)
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
CONFIG(debug, debug|release){
|
||||||
# Debug mode
|
# Debug mode
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Calculate latest tag distance and build revision only in release mode. Change number each time requare
|
#Calculate latest tag distance and build revision only in release mode. Change number each time requare
|
||||||
#recompilation precompiled headers file.
|
#recompilation precompiled headers file.
|
||||||
DEFINES += "LATEST_TAG_DISTANCE=0"
|
DEFINES += "LATEST_TAG_DISTANCE=0"
|
||||||
|
@ -70,10 +64,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -45,3 +46,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -40,17 +40,9 @@ OBJECTS_DIR = obj
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
|
|
||||||
|
@ -58,10 +50,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -40,3 +41,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -43,17 +43,9 @@ OBJECTS_DIR = obj
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
|
|
||||||
|
@ -61,10 +53,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -40,3 +41,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -63,17 +63,9 @@ unix:!macx{
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
@ -50,3 +51,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -50,17 +50,9 @@ $$enable_ccache()
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/../vpatterndb
|
INCLUDEPATH += $$PWD/../vpatterndb
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
DEFINES += V_NO_ASSERT
|
DEFINES += V_NO_ASSERT
|
||||||
|
@ -68,10 +60,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -48,3 +49,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -42,17 +42,9 @@ OBJECTS_DIR = obj
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
|
|
||||||
|
@ -60,10 +52,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -45,3 +46,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -49,25 +49,13 @@ win32-msvc*:SOURCES += stable.cpp
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
CONFIG(release, debug|release){
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
DEFINES += QT_NO_DEBUG_OUTPUT
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
@ -40,3 +41,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -76,16 +76,9 @@ HEADERS += \
|
||||||
# Set using ccache. Function enable_ccache() defined in common.pri.
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
||||||
$$enable_ccache()
|
$$enable_ccache()
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
include(warnings.pri)
|
include(warnings.pri)
|
||||||
} else {
|
|
||||||
*-g++{
|
CONFIG(release, debug|release){
|
||||||
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
# Release mode
|
# Release mode
|
||||||
!win32-msvc*:CONFIG += silent
|
!win32-msvc*:CONFIG += silent
|
||||||
DEFINES += V_NO_ASSERT
|
DEFINES += V_NO_ASSERT
|
||||||
|
@ -93,10 +86,6 @@ CONFIG(debug, debug|release){
|
||||||
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
||||||
}
|
}
|
||||||
|
|
||||||
checkWarnings{
|
|
||||||
unix:include(warnings.pri)
|
|
||||||
}
|
|
||||||
|
|
||||||
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
# do nothing
|
# do nothing
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
|
unix {
|
||||||
*-g++{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
@ -47,3 +48,20 @@ clang*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
win32-msvc*{
|
||||||
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user