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,54 +1,72 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
|
||||||
}
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
}
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
clang*{
|
|
||||||
QMAKE_CXXFLAGS += \
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
||||||
# Key -isystem disable checking errors in system headers.
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
QMAKE_CXXFLAGS -= \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-Wundefined-reinterpret-cast \
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-Wmissing-prototypes # rcc folder
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
}
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += \
|
||||||
}
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
QMAKE_CXXFLAGS -= \
|
|
||||||
-Wundefined-reinterpret-cast \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
-Wmissing-prototypes # rcc folder
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
|
}
|
||||||
*-icc-*{
|
} else { # Windows
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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,57 +1,75 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/../../libs/vtools/$${UI_DIR}" \ # For VTools UI files
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/../../libs/vtools/$${UI_DIR}" \ # For VTools UI files
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
-isystem "$${OUT_PWD}/../../libs/vtools/$${UI_DIR}" \ # For VTools UI files
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
}
|
|
||||||
}
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
clang*{
|
}
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
# Key -isystem disable checking errors in system headers.
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
QMAKE_CXXFLAGS -= \
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-Wmissing-prototypes \
|
||||||
-isystem "$${OUT_PWD}/../../libs/vtools/$${UI_DIR}" \ # For VTools UI files
|
-Wundefined-reinterpret-cast
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
}
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS+= \
|
||||||
}
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
-isystem "$${OUT_PWD}/../../libs/vtools/$${UI_DIR}" \ # For VTools UI files
|
||||||
QMAKE_CXXFLAGS -= \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
-Wmissing-prototypes \
|
|
||||||
-Wundefined-reinterpret-cast
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
}
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
*-icc-*{
|
}
|
||||||
QMAKE_CXXFLAGS+= \
|
} else { # Windows
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
*-g++{
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
|
||||||
-isystem "$${OUT_PWD}/../../libs/vtools/$${UI_DIR}" \ # For VTools UI files
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,45 +1,63 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
}
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
|
}
|
||||||
clang*{
|
|
||||||
QMAKE_CXXFLAGS += \
|
*-icc-*{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
*-icc-*{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,51 +1,69 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
|
||||||
QMAKE_CXXFLAGS += -Werror
|
|
||||||
}
|
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
|
||||||
# do nothing
|
|
||||||
} else {
|
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
clang*{
|
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
# Key -isystem disable checking errors in system headers.
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
|
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
# do nothing
|
||||||
QMAKE_CXXFLAGS -= \
|
} else {
|
||||||
-Wmissing-prototypes \
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
-Wundefined-reinterpret-cast
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
}
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
*-icc-*{
|
clang*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
||||||
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
|
QMAKE_CXXFLAGS -= \
|
||||||
|
-Wmissing-prototypes \
|
||||||
|
-Wundefined-reinterpret-cast
|
||||||
|
}
|
||||||
|
|
||||||
|
*-icc-*{
|
||||||
|
QMAKE_CXXFLAGS += \
|
||||||
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,42 +1,60 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clang*{
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,42 +1,60 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clang*{
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,42 +1,60 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clang*{
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,42 +1,60 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clang*{
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,56 +1,74 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
||||||
|
# want them in the global list. Compromise decision is to delete them from the local list.
|
||||||
|
QMAKE_CXXFLAGS -= \
|
||||||
|
-Wlong-long \
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
clang*{
|
||||||
# want them in the global list. Compromise decision is to delete them from the local list.
|
QMAKE_CXXFLAGS += \
|
||||||
QMAKE_CXXFLAGS -= \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-Wlong-long \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += -Werror
|
||||||
} else {
|
}
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
QMAKE_CXXFLAGS -= \
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
-Wundefined-reinterpret-cast \
|
||||||
}
|
-Wmissing-prototypes # rcc folder
|
||||||
}
|
}
|
||||||
|
|
||||||
clang*{
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
*-g++{
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS -= \
|
|
||||||
-Wundefined-reinterpret-cast \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
-Wmissing-prototypes # rcc folder
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
|
}
|
||||||
*-icc-*{
|
|
||||||
QMAKE_CXXFLAGS += \
|
win32-msvc*{
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
#QMAKE_CXXFLAGS += -WX
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
}
|
||||||
QMAKE_CXXFLAGS += -Werror
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,47 +1,65 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
||||||
clang*{
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS -= \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-Wmissing-prototypes
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
}
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
*-icc-*{
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += \
|
||||||
QMAKE_CXXFLAGS += -Werror
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
}
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
|
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS -= \
|
}
|
||||||
-Wmissing-prototypes
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,42 +1,60 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clang*{
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,42 +1,60 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clang*{
|
*-icc-*{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,52 +1,70 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
QMAKE_CXXFLAGS += \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS \ # See common.pri for more details.
|
# Key -isystem disable checking errors in system headers.
|
||||||
|
$$GCC_DEBUG_CXXFLAGS \ # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
||||||
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
|
QMAKE_CXXFLAGS -= \
|
||||||
|
-Wswitch-default
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
clang*{
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
QMAKE_CXXFLAGS += \
|
||||||
QMAKE_CXXFLAGS -= \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-Wswitch-default
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += -Werror
|
||||||
} else {
|
}
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
QMAKE_CXXFLAGS -= \
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
-Wundefined-reinterpret-cast
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
*-icc-*{
|
||||||
clang*{
|
QMAKE_CXXFLAGS += \
|
||||||
QMAKE_CXXFLAGS += \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
# Key -isystem disable checking errors in system headers.
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
}
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
|
||||||
QMAKE_CXXFLAGS -= \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
-Wundefined-reinterpret-cast
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
|
}
|
||||||
*-icc-*{
|
|
||||||
QMAKE_CXXFLAGS += \
|
win32-msvc*{
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
QMAKE_CXXFLAGS += $$MSVC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
#QMAKE_CXXFLAGS += -WX
|
||||||
QMAKE_CXXFLAGS += -Werror
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,17 +50,9 @@ $$enable_ccache()
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/../vpatterndb
|
INCLUDEPATH += $$PWD/../vpatterndb
|
||||||
|
|
||||||
CONFIG(debug, debug|release){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,50 +1,68 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
# -isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
# -isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
||||||
clang*{
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS -= \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-Wundefined-reinterpret-cast
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
}
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
*-icc-*{
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += \
|
||||||
QMAKE_CXXFLAGS += -Werror
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
}
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS -= \
|
QMAKE_CXXFLAGS += -Werror
|
||||||
-Wundefined-reinterpret-cast
|
}
|
||||||
}
|
}
|
||||||
|
} else { # Windows
|
||||||
*-icc-*{
|
*-g++{
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,47 +1,65 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
||||||
clang*{
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
QMAKE_CXXFLAGS += \
|
QMAKE_CXXFLAGS -= \
|
||||||
# Key -isystem disable checking errors in system headers.
|
-Wundefined-reinterpret-cast
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
}
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
*-icc-*{
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += \
|
||||||
QMAKE_CXXFLAGS += -Werror
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
}
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
|
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete these warnings and
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CXXFLAGS -= \
|
}
|
||||||
-Wundefined-reinterpret-cast
|
}
|
||||||
}
|
} else { # Windows
|
||||||
|
*-g++{
|
||||||
*-icc-*{
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
QMAKE_CXXFLAGS += \
|
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
|
||||||
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,42 +1,60 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
QMAKE_CXXFLAGS += \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
QMAKE_CXXFLAGS += -Werror
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
}
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
|
||||||
}
|
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
||||||
}
|
# want them in global list. Compromise decision delete them from local list.
|
||||||
|
QMAKE_CXXFLAGS -= \
|
||||||
clang*{
|
-Wmissing-prototypes
|
||||||
QMAKE_CXXFLAGS += \
|
}
|
||||||
$$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
|
|
||||||
|
*-icc-*{
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
QMAKE_CXXFLAGS += \
|
||||||
QMAKE_CXXFLAGS += -Werror
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
}
|
|
||||||
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
# -isystem key works only for headers. In some cases it's not enough. But we can't delete this warnings and
|
QMAKE_CXXFLAGS += -Werror
|
||||||
# want them in global list. Compromise decision delete them from local list.
|
}
|
||||||
QMAKE_CXXFLAGS -= \
|
}
|
||||||
-Wmissing-prototypes
|
} else { # Windows
|
||||||
}
|
*-g++{
|
||||||
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
*-icc-*{
|
|
||||||
QMAKE_CXXFLAGS += \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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){
|
include(warnings.pri)
|
||||||
# Debug mode
|
|
||||||
unix {
|
CONFIG(release, debug|release){
|
||||||
include(warnings.pri)
|
|
||||||
} else {
|
|
||||||
*-g++{
|
|
||||||
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,49 +1,67 @@
|
||||||
#Turn on compilers warnings.
|
#Turn on compilers warnings.
|
||||||
*-g++{
|
unix {
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
# Key -isystem disable checking errors in system headers.
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
# Key -isystem disable checking errors in system headers.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
|
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
QMAKE_CXXFLAGS += -Werror
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
|
|
||||||
|
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
||||||
|
# do nothing
|
||||||
|
} else {
|
||||||
|
#gcc’s 4.8.0 Address Sanitizer
|
||||||
|
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
||||||
|
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
QMAKE_LFLAGS += -fsanitize=address
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer
|
clang*{
|
||||||
# do nothing
|
QMAKE_CXXFLAGS += \
|
||||||
} else {
|
# Key -isystem disable checking errors in system headers.
|
||||||
#gcc’s 4.8.0 Address Sanitizer
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
QMAKE_CXXFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
QMAKE_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
$$CLANG_DEBUG_CXXFLAGS \ # See common.pri for more details.
|
||||||
QMAKE_LFLAGS += -fsanitize=address
|
-Wno-gnu-zero-variadic-macro-arguments\ # See macros QSKIP
|
||||||
}
|
|
||||||
}
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
|
QMAKE_CXXFLAGS += -Werror
|
||||||
clang*{
|
}
|
||||||
QMAKE_CXXFLAGS += \
|
}
|
||||||
# Key -isystem disable checking errors in system headers.
|
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
*-icc-*{
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
QMAKE_CXXFLAGS += \
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
||||||
$$CLANG_DEBUG_CXXFLAGS \ # See common.pri for more details.
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
||||||
-Wno-gnu-zero-variadic-macro-arguments\ # See macros QSKIP
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
||||||
|
$$ICC_DEBUG_CXXFLAGS
|
||||||
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
|
||||||
QMAKE_CXXFLAGS += -Werror
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
}
|
QMAKE_CXXFLAGS += -Werror
|
||||||
}
|
}
|
||||||
|
}
|
||||||
*-icc-*{
|
} else { # Windows
|
||||||
QMAKE_CXXFLAGS += \
|
*-g++{
|
||||||
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See common.pri for more details.
|
||||||
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
||||||
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
|
||||||
$$ICC_DEBUG_CXXFLAGS
|
QMAKE_CXXFLAGS += -Werror
|
||||||
|
}
|
||||||
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