Change in pro file for compile on Windows with MSVC.

--HG--
branch : develop
This commit is contained in:
dismine 2013-11-28 18:28:49 +02:00
parent 4fe784389d
commit 0837ada25e

View File

@ -10,8 +10,7 @@ QT += core gui widgets xml svg
TEMPLATE = app TEMPLATE = app
DEBUG_TARGET = valentinad TARGET = valentina
RELEASE_TARGET = valentina
CONFIG -= debug_and_release debug_and_release_target CONFIG -= debug_and_release debug_and_release_target
CONFIG += c++11 CONFIG += c++11
@ -54,10 +53,6 @@ TRANSLATIONS += share/translations/valentina_ru.ts \
unix:QMAKE_CXX = ccache g++ unix:QMAKE_CXX = ccache g++
CONFIG(debug, debug|release){
# Debug
TARGET = $$DEBUG_TARGET
CONFIG += precompile_header CONFIG += precompile_header
# Precompiled headers (PCH) # Precompiled headers (PCH)
PRECOMPILED_HEADER = src/stable.h PRECOMPILED_HEADER = src/stable.h
@ -65,6 +60,9 @@ CONFIG(debug, debug|release){
PRECOMPILED_SOURCE = src/stable.cpp PRECOMPILED_SOURCE = src/stable.cpp
} }
CONFIG(debug, debug|release){
# Debug
*-g++{
QMAKE_CXXFLAGS += -isystem "/usr/include/qt5" -isystem "/usr/include/qt5/QtWidgets" \ QMAKE_CXXFLAGS += -isystem "/usr/include/qt5" -isystem "/usr/include/qt5/QtWidgets" \
-isystem "/usr/include/qt5/QtXml" -isystem "/usr/include/qt5/QtGui" \ -isystem "/usr/include/qt5/QtXml" -isystem "/usr/include/qt5/QtGui" \
-isystem "/usr/include/qt5/QtCore" -isystem "$${UI_DIR}" -isystem "$${MOC_DIR}" \ -isystem "/usr/include/qt5/QtCore" -isystem "$${UI_DIR}" -isystem "$${MOC_DIR}" \
@ -78,11 +76,12 @@ CONFIG(debug, debug|release){
-Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-parameter -Wvariadic-macros \ -Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-parameter -Wvariadic-macros \
-Wlogical-op -Wnoexcept \ -Wlogical-op -Wnoexcept \
-Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wno-unused -gdwarf-3 -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wno-unused -gdwarf-3
}
}else{ }else{
# Release # Release
TARGET = $$RELEASE_TARGET *-g++{
QMAKE_CXXFLAGS += -O1 QMAKE_CXXFLAGS += -O1
}
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_DEBUG_OUTPUT
} }