Tools: Adding a tools.pro to build dmake.
This commit is contained in:
parent
ef65202a79
commit
be21a44dd2
|
@ -0,0 +1,40 @@
|
|||
TEMPLATE = app
|
||||
TARGET = dmake
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += . ../lib
|
||||
OBJECTS_DIR = temp
|
||||
CONFIG += warn_on
|
||||
CONFIG -= qt app_bundle
|
||||
|
||||
SOURCES += dmake.cpp \
|
||||
../cli/filelister.cpp \
|
||||
../lib/path.cpp
|
||||
|
||||
HEADERS += ../cli/filelister.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