From 0837ada25eb534e4b62dfb85b9fc4063c8706c06 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 28 Nov 2013 18:28:49 +0200 Subject: [PATCH] Change in pro file for compile on Windows with MSVC. --HG-- branch : develop --- Valentina.pro | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Valentina.pro b/Valentina.pro index eec2ff26e..9a86f63ea 100644 --- a/Valentina.pro +++ b/Valentina.pro @@ -10,8 +10,7 @@ QT += core gui widgets xml svg TEMPLATE = app -DEBUG_TARGET = valentinad -RELEASE_TARGET = valentina +TARGET = valentina CONFIG -= debug_and_release debug_and_release_target CONFIG += c++11 @@ -54,17 +53,16 @@ TRANSLATIONS += share/translations/valentina_ru.ts \ unix:QMAKE_CXX = ccache g++ +CONFIG += precompile_header +# Precompiled headers (PCH) +PRECOMPILED_HEADER = src/stable.h +win32-msvc* { + PRECOMPILED_SOURCE = src/stable.cpp +} + CONFIG(debug, debug|release){ # Debug - TARGET = $$DEBUG_TARGET - - CONFIG += precompile_header - # Precompiled headers (PCH) - PRECOMPILED_HEADER = src/stable.h - win32-msvc* { - PRECOMPILED_SOURCE = src/stable.cpp - } - + *-g++{ 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/QtCore" -isystem "$${UI_DIR}" -isystem "$${MOC_DIR}" \ @@ -78,11 +76,12 @@ CONFIG(debug, debug|release){ -Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-parameter -Wvariadic-macros \ -Wlogical-op -Wnoexcept \ -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wno-unused -gdwarf-3 + } }else{ # Release - TARGET = $$RELEASE_TARGET - + *-g++{ QMAKE_CXXFLAGS += -O1 + } DEFINES += QT_NO_DEBUG_OUTPUT }