2013-06-20 16:09:50 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2013-06-18T12:36:43
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2013-08-29 15:12:30 +02:00
|
|
|
# Use out-of-source builds (shadow builds)
|
|
|
|
|
2013-10-01 20:15:59 +02:00
|
|
|
QT += core gui widgets xml svg
|
2013-06-20 16:09:50 +02:00
|
|
|
|
|
|
|
TEMPLATE = app
|
|
|
|
|
2013-11-06 14:34:54 +01:00
|
|
|
DEBUG_TARGET = Valentinad
|
|
|
|
RELEASE_TARGET = Valentina
|
2013-06-20 16:09:50 +02:00
|
|
|
|
2013-11-06 14:34:54 +01:00
|
|
|
CONFIG -= debug_and_release debug_and_release_target
|
|
|
|
CONFIG += c++11 precompile_header
|
2013-06-20 16:09:50 +02:00
|
|
|
|
2013-11-06 14:34:54 +01:00
|
|
|
#DEFINES += ...
|
2013-07-03 14:29:26 +02:00
|
|
|
|
2013-11-06 14:34:54 +01:00
|
|
|
# Precompiled headers (PCH)
|
2013-11-20 13:43:48 +01:00
|
|
|
PRECOMPILED_HEADER = src/stable.h
|
2013-11-06 19:05:28 +01:00
|
|
|
win32-msvc* {
|
2013-11-20 13:43:48 +01:00
|
|
|
PRECOMPILED_SOURCE = src/stable.cpp
|
2013-11-06 19:05:28 +01:00
|
|
|
}
|
2013-07-28 00:18:06 +02:00
|
|
|
|
2013-08-29 15:12:30 +02:00
|
|
|
# directory for executable file
|
|
|
|
DESTDIR = bin
|
|
|
|
|
|
|
|
# files created moc
|
|
|
|
MOC_DIR = moc
|
|
|
|
|
|
|
|
# objecs files
|
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
|
|
|
# files created rcc
|
|
|
|
RCC_DIR = rcc
|
|
|
|
|
|
|
|
# files created uic
|
|
|
|
UI_DIR = uic
|
|
|
|
|
2013-11-20 13:43:48 +01:00
|
|
|
include(src/container/container.pri)
|
|
|
|
include(src/dialogs/dialogs.pri)
|
|
|
|
include(src/exception/exception.pri)
|
|
|
|
include(src/geometry/geometry.pri)
|
|
|
|
include(src/tools/tools.pri)
|
|
|
|
include(src/widgets/widgets.pri)
|
|
|
|
include(src/xml/xml.pri)
|
2013-11-06 14:34:54 +01:00
|
|
|
|
2013-11-20 13:43:48 +01:00
|
|
|
SOURCES += src/main.cpp \
|
|
|
|
src/mainwindow.cpp \
|
|
|
|
src/tablewindow.cpp \
|
|
|
|
src/stable.cpp
|
2013-11-06 14:34:54 +01:00
|
|
|
|
2013-11-20 13:43:48 +01:00
|
|
|
HEADERS += src/mainwindow.h \
|
|
|
|
src/options.h \
|
|
|
|
src/tablewindow.h \
|
|
|
|
src/stable.h \
|
|
|
|
src/version.h
|
2013-11-06 14:34:54 +01:00
|
|
|
|
2013-11-20 13:43:48 +01:00
|
|
|
FORMS += src/mainwindow.ui \
|
|
|
|
src/tablewindow.ui
|
2013-11-06 14:34:54 +01:00
|
|
|
|
|
|
|
RESOURCES += \
|
2013-11-20 13:43:48 +01:00
|
|
|
share/resources/icon.qrc \
|
|
|
|
share/resources/cursor.qrc
|
2013-08-29 15:12:30 +02:00
|
|
|
|
2013-11-20 13:43:48 +01:00
|
|
|
TRANSLATIONS += share/translations/valentina_ru.ts \
|
|
|
|
share/translations/valentina_uk.ts
|
2013-09-26 15:05:21 +02:00
|
|
|
|
2013-07-28 00:18:06 +02:00
|
|
|
CONFIG(debug, debug|release){
|
|
|
|
# Debug
|
2013-11-15 14:19:43 +01:00
|
|
|
QMAKE_CXX = ccache g++
|
2013-11-06 14:34:54 +01:00
|
|
|
TARGET = $$DEBUG_TARGET
|
|
|
|
|
2013-08-20 12:26:02 +02:00
|
|
|
QMAKE_CXXFLAGS += -isystem "/usr/include/qt5" -isystem "/usr/include/qt5/QtWidgets" \
|
|
|
|
-isystem "/usr/include/qt5/QtXml" -isystem "/usr/include/qt5/QtGui" \
|
2013-10-01 20:15:59 +02:00
|
|
|
-isystem "/usr/include/qt5/QtCore" -isystem "$$OUT_PWD/uic" -isystem "$$OUT_PWD/moc/" \
|
2013-11-12 19:29:03 +01:00
|
|
|
-isystem "$$OUT_PWD/rcc/" \
|
2013-10-01 20:15:59 +02:00
|
|
|
-Og -Wall -Wextra -pedantic -Weffc++ -Woverloaded-virtual -Wctor-dtor-privacy \
|
|
|
|
-Wnon-virtual-dtor -Wold-style-cast -Wconversion -Winit-self \
|
2013-11-12 19:29:03 +01:00
|
|
|
-Wunreachable-code -Wcast-align -Wcast-qual -Wdisabled-optimization -Wfloat-equal \
|
2013-11-20 13:43:48 +01:00
|
|
|
-Wformat -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k \
|
2013-11-12 19:29:03 +01:00
|
|
|
-Winvalid-pch -Wunsafe-loop-optimizations -Wlong-long -Wmissing-format-attribute \
|
|
|
|
-Wmissing-include-dirs -Wpacked -Wredundant-decls \
|
|
|
|
-Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-parameter -Wvariadic-macros \
|
|
|
|
-Wlogical-op -Wnoexcept \
|
|
|
|
-Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wno-unused -gdwarf-3
|
2013-07-28 00:18:06 +02:00
|
|
|
}else{
|
|
|
|
# Release
|
2013-11-06 14:34:54 +01:00
|
|
|
TARGET = $$RELEASE_TARGET
|
|
|
|
|
2013-09-26 19:11:56 +02:00
|
|
|
QMAKE_CXXFLAGS += -O1
|
2013-09-26 15:05:21 +02:00
|
|
|
|
2013-11-06 14:34:54 +01:00
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
|
2013-09-26 15:05:21 +02:00
|
|
|
QMAKE_EXTRA_COMPILERS += lrelease
|
|
|
|
lrelease.input = TRANSLATIONS
|
|
|
|
lrelease.output = ${QMAKE_FILE_BASE}.qm
|
2013-10-13 09:11:09 +02:00
|
|
|
lrelease.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN} -qm "bin/"${QMAKE_FILE_BASE}.qm
|
2013-09-26 15:05:21 +02:00
|
|
|
lrelease.CONFIG += no_link target_predeps
|
2013-07-28 00:18:06 +02:00
|
|
|
}
|
2013-09-18 18:52:49 +02:00
|
|
|
|
2013-10-01 20:15:59 +02:00
|
|
|
message(Qt version: $$[QT_VERSION])
|
|
|
|
message(Qt is installed in $$[QT_INSTALL_PREFIX])
|
|
|
|
message(Qt resources can be found in the following locations:)
|
|
|
|
message(Documentation: $$[QT_INSTALL_DOCS])
|
|
|
|
message(Header files: $$[QT_INSTALL_HEADERS])
|
|
|
|
message(Libraries: $$[QT_INSTALL_LIBS])
|
|
|
|
message(Binary files (executables): $$[QT_INSTALL_BINS])
|
|
|
|
message(Plugins: $$[QT_INSTALL_PLUGINS])
|
|
|
|
message(Data files: $$[QT_INSTALL_DATA])
|
|
|
|
message(Translation files: $$[QT_INSTALL_TRANSLATIONS])
|
|
|
|
message(Settings: $$[QT_INSTALL_SETTINGS])
|
|
|
|
message(Examples: $$[QT_INSTALL_EXAMPLES])
|