File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ OBJECTS_DIR = temp
66CONFIG += warn_on
77CONFIG -= qt app_bundle
88
9+ include (../console_common.pri )
10+
911BASEPATH = ../externals/tinyxml/
1012include ($$PWD/../externals/tinyxml/tinyxml.pri )
1113BASEPATH = ../lib/
@@ -24,30 +26,15 @@ HEADERS += cppcheckexecutor.h \
2426 pathmatch.h \
2527 threadexecutor.h
2628
27- CONFIG (release , debug |release ) {
28- DEFINES += NDEBUG
29- }
30-
3129win32 {
32- CONFIG += embed_manifest_exe console
33- DEFINES += _CRT_SECURE_NO_WARNINGS
3430 RC_FILE = cppcheck.rc
3531 HEADERS += resource.h
36- LIBS += -lshlwapi
3732}
3833
39- # Add more strict compiling flags for GCC
34+ # Enable STL checking in GCC debug builds
4035contains (QMAKE_CXX, g++ ) {
41- QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -Wno-long-long
42-
4336 CONFIG (debug , debug |release ) {
4437 # checked STL
4538 DEFINES += _GLIBCXX_DEBUG
4639 }
4740}
48-
49- # Change Visual Studio compiler (CL) warning level to W4
50- contains (QMAKE_CXX, cl ) {
51- QMAKE_CXXFLAGS_WARN_ON -= -W3
52- QMAKE_CXXFLAGS_WARN_ON += -W4
53- }
Original file line number Diff line number Diff line change 1+ # console_common.pri
2+ # These are common definitions for console builds.
3+
4+ win32 {
5+ CONFIG += embed_manifest_exe console
6+ DEFINES += _CRT_SECURE_NO_WARNINGS
7+ LIBS += -lshlwapi
8+ }
9+
10+ # Add more strict compiling flags for GCC
11+ contains (QMAKE_CXX, g++ ) {
12+ QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -Wno-long-long
13+ }
14+
15+ # Change Visual Studio compiler (CL) warning level to W4
16+ contains (QMAKE_CXX, cl ) {
17+ QMAKE_CXXFLAGS_WARN_ON -= -W3
18+ QMAKE_CXXFLAGS_WARN_ON += -W4
19+ }
20+
21+ CONFIG (release , debug |release ) {
22+ DEFINES += NDEBUG
23+ }
Original file line number Diff line number Diff line change @@ -6,9 +6,8 @@ INCLUDEPATH += . ../cli ../lib
66OBJECTS_DIR = temp
77CONFIG += warn_on console
88CONFIG -= qt app_bundle
9- win32 {
10- LIBS += -lshlwapi
11- }
9+
10+ include (../console_common.pri )
1211
1312BASEPATH = ../externals/tinyxml/
1413include (../externals/tinyxml/tinyxml.pri )
@@ -30,14 +29,5 @@ HEADERS += ../cli/cmdlineparser.h \
3029 ../cli/pathmatch.h \
3130 ../cli/threadexecutor.h
3231
33- # test/*
34-
3532HEADERS += options.h redirect.h testsuite.h
3633SOURCES += options.cpp
37-
38- # Change Visual Studio compiler (CL) warning level to W4
39- contains (QMAKE_CXX, cl ) {
40- QMAKE_CXXFLAGS_WARN_ON -= -W3
41- QMAKE_CXXFLAGS_WARN_ON += -W4
42- DEFINES += _CRT_SECURE_NO_WARNINGS
43- }
Original file line number Diff line number Diff line change @@ -6,35 +6,11 @@ OBJECTS_DIR = temp
66CONFIG += warn_on
77CONFIG -= qt app_bundle
88
9+ include (../console_common.pri )
10+
911SOURCES += dmake.cpp \
1012 ../cli/filelister.cpp \
1113 ../lib/path.cpp
1214
1315HEADERS += ../cli/filelister.h \
1416 ../lib/path.h
15-
16- CONFIG (release , debug |release ) {
17- DEFINES += NDEBUG
18- }
19-
20- win32 {
21- CONFIG += embed_manifest_exe console
22- DEFINES += _CRT_SECURE_NO_WARNINGS
23- LIBS += -lshlwapi
24- }
25-
26- # Add more strict compiling flags for GCC
27- contains (QMAKE_CXX, g++ ) {
28- QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -Wno-long-long
29-
30- CONFIG (debug , debug |release ) {
31- # checked STL
32- DEFINES += _GLIBCXX_DEBUG
33- }
34- }
35-
36- # Change Visual Studio compiler (CL) warning level to W4
37- contains (QMAKE_CXX, cl ) {
38- QMAKE_CXXFLAGS_WARN_ON -= -W3
39- QMAKE_CXXFLAGS_WARN_ON += -W4
40- }
You can’t perform that action at this time.
0 commit comments