Merge pull request #102 from kimmov/cleanup_pro_files
Add general PRO file for console builds.
This commit is contained in:
commit
5316276fcf
19
cli/cli.pro
19
cli/cli.pro
|
@ -6,6 +6,8 @@ OBJECTS_DIR = temp
|
||||||
CONFIG += warn_on
|
CONFIG += warn_on
|
||||||
CONFIG -= qt app_bundle
|
CONFIG -= qt app_bundle
|
||||||
|
|
||||||
|
include(../console_common.pri)
|
||||||
|
|
||||||
BASEPATH = ../externals/tinyxml/
|
BASEPATH = ../externals/tinyxml/
|
||||||
include($$PWD/../externals/tinyxml/tinyxml.pri)
|
include($$PWD/../externals/tinyxml/tinyxml.pri)
|
||||||
BASEPATH = ../lib/
|
BASEPATH = ../lib/
|
||||||
|
@ -24,30 +26,15 @@ HEADERS += cppcheckexecutor.h \
|
||||||
pathmatch.h \
|
pathmatch.h \
|
||||||
threadexecutor.h
|
threadexecutor.h
|
||||||
|
|
||||||
CONFIG(release, debug|release) {
|
|
||||||
DEFINES += NDEBUG
|
|
||||||
}
|
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
CONFIG += embed_manifest_exe console
|
|
||||||
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
||||||
RC_FILE = cppcheck.rc
|
RC_FILE = cppcheck.rc
|
||||||
HEADERS += resource.h
|
HEADERS += resource.h
|
||||||
LIBS += -lshlwapi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add more strict compiling flags for GCC
|
# Enable STL checking in GCC debug builds
|
||||||
contains(QMAKE_CXX, g++) {
|
contains(QMAKE_CXX, g++) {
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -Wno-long-long
|
|
||||||
|
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
# checked STL
|
# checked STL
|
||||||
DEFINES += _GLIBCXX_DEBUG
|
DEFINES += _GLIBCXX_DEBUG
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Change Visual Studio compiler (CL) warning level to W4
|
|
||||||
contains(QMAKE_CXX, cl) {
|
|
||||||
QMAKE_CXXFLAGS_WARN_ON -= -W3
|
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -W4
|
|
||||||
}
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
# console_common.pri
|
||||||
|
# These are common definitions for console builds.
|
||||||
|
|
||||||
|
win32 {
|
||||||
|
CONFIG += embed_manifest_exe console
|
||||||
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
||||||
|
LIBS += -lshlwapi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Add more strict compiling flags for GCC
|
||||||
|
contains(QMAKE_CXX, g++) {
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -Wno-long-long
|
||||||
|
}
|
||||||
|
|
||||||
|
# Change Visual Studio compiler (CL) warning level to W4
|
||||||
|
contains(QMAKE_CXX, cl) {
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON -= -W3
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON += -W4
|
||||||
|
}
|
||||||
|
|
||||||
|
CONFIG(release, debug|release) {
|
||||||
|
DEFINES += NDEBUG
|
||||||
|
}
|
|
@ -6,9 +6,8 @@ INCLUDEPATH += . ../cli ../lib
|
||||||
OBJECTS_DIR = temp
|
OBJECTS_DIR = temp
|
||||||
CONFIG += warn_on console
|
CONFIG += warn_on console
|
||||||
CONFIG -= qt app_bundle
|
CONFIG -= qt app_bundle
|
||||||
win32 {
|
|
||||||
LIBS += -lshlwapi
|
include(../console_common.pri)
|
||||||
}
|
|
||||||
|
|
||||||
BASEPATH = ../externals/tinyxml/
|
BASEPATH = ../externals/tinyxml/
|
||||||
include(../externals/tinyxml/tinyxml.pri)
|
include(../externals/tinyxml/tinyxml.pri)
|
||||||
|
@ -30,14 +29,5 @@ HEADERS += ../cli/cmdlineparser.h \
|
||||||
../cli/pathmatch.h \
|
../cli/pathmatch.h \
|
||||||
../cli/threadexecutor.h
|
../cli/threadexecutor.h
|
||||||
|
|
||||||
# test/*
|
|
||||||
|
|
||||||
HEADERS += options.h redirect.h testsuite.h
|
HEADERS += options.h redirect.h testsuite.h
|
||||||
SOURCES += options.cpp
|
SOURCES += options.cpp
|
||||||
|
|
||||||
# Change Visual Studio compiler (CL) warning level to W4
|
|
||||||
contains(QMAKE_CXX, cl) {
|
|
||||||
QMAKE_CXXFLAGS_WARN_ON -= -W3
|
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -W4
|
|
||||||
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
||||||
}
|
|
||||||
|
|
|
@ -6,35 +6,11 @@ OBJECTS_DIR = temp
|
||||||
CONFIG += warn_on
|
CONFIG += warn_on
|
||||||
CONFIG -= qt app_bundle
|
CONFIG -= qt app_bundle
|
||||||
|
|
||||||
|
include(../console_common.pri)
|
||||||
|
|
||||||
SOURCES += dmake.cpp \
|
SOURCES += dmake.cpp \
|
||||||
../cli/filelister.cpp \
|
../cli/filelister.cpp \
|
||||||
../lib/path.cpp
|
../lib/path.cpp
|
||||||
|
|
||||||
HEADERS += ../cli/filelister.h \
|
HEADERS += ../cli/filelister.h \
|
||||||
../lib/path.h
|
../lib/path.h
|
||||||
|
|
||||||
CONFIG(release, debug|release) {
|
|
||||||
DEFINES += NDEBUG
|
|
||||||
}
|
|
||||||
|
|
||||||
win32 {
|
|
||||||
CONFIG += embed_manifest_exe console
|
|
||||||
DEFINES += _CRT_SECURE_NO_WARNINGS
|
|
||||||
LIBS += -lshlwapi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Add more strict compiling flags for GCC
|
|
||||||
contains(QMAKE_CXX, g++) {
|
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wlogical-op -Wno-long-long
|
|
||||||
|
|
||||||
CONFIG(debug, debug|release) {
|
|
||||||
# checked STL
|
|
||||||
DEFINES += _GLIBCXX_DEBUG
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Change Visual Studio compiler (CL) warning level to W4
|
|
||||||
contains(QMAKE_CXX, cl) {
|
|
||||||
QMAKE_CXXFLAGS_WARN_ON -= -W3
|
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -W4
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue