2014-04-25 14:58:14 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2014-04-25T12:01:49
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT -= gui
|
|
|
|
|
|
|
|
TARGET = qmuparser
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
|
|
|
CONFIG -= debug_and_release debug_and_release_target
|
|
|
|
CONFIG += c++11
|
|
|
|
|
|
|
|
DEFINES += QMUPARSER_LIBRARY
|
|
|
|
|
|
|
|
# directory for executable file
|
|
|
|
DESTDIR = bin
|
|
|
|
|
|
|
|
# files created moc
|
|
|
|
MOC_DIR = moc
|
|
|
|
|
|
|
|
# objecs files
|
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
qmuparser.cpp \
|
|
|
|
qmuparsertokenreader.cpp \
|
|
|
|
qmuparsererror.cpp \
|
|
|
|
qmuparsercallback.cpp \
|
|
|
|
qmuparserbytecode.cpp \
|
|
|
|
qmuparserbase.cpp \
|
|
|
|
qmuparsertest.cpp \
|
|
|
|
stable.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
qmuparser.h\
|
|
|
|
qmuparser_global.h \
|
|
|
|
qmuparsertokenreader.h \
|
|
|
|
qmuparsertoken.h \
|
|
|
|
qmuparserfixes.h \
|
|
|
|
qmuparsererror.h \
|
|
|
|
qmuparserdef.h \
|
|
|
|
qmuparsercallback.h \
|
|
|
|
qmuparserbytecode.h \
|
|
|
|
qmuparserbase.h \
|
|
|
|
qmuparsertest.h \
|
|
|
|
stable.h
|
|
|
|
|
2014-05-06 11:45:21 +02:00
|
|
|
VERSION = 2.2.4
|
2014-04-25 14:58:14 +02:00
|
|
|
|
|
|
|
unix {
|
|
|
|
target.path = /usr/lib
|
|
|
|
INSTALLS += target
|
|
|
|
|
2014-05-31 16:33:37 +02:00
|
|
|
*-g++{
|
|
|
|
QMAKE_CXX = ccache g++
|
|
|
|
}
|
|
|
|
|
|
|
|
clang*{
|
|
|
|
QMAKE_CXX = ccache clang++
|
|
|
|
}
|
2014-04-25 14:58:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG += precompile_header
|
|
|
|
# Precompiled headers (PCH)
|
|
|
|
PRECOMPILED_HEADER = stable.h
|
|
|
|
win32-msvc* {
|
|
|
|
PRECOMPILED_SOURCE = stable.cpp
|
|
|
|
}
|
|
|
|
|
2014-09-20 18:05:21 +02:00
|
|
|
include(../../../Valentina.pri)
|
|
|
|
|
2014-04-25 14:58:14 +02:00
|
|
|
CONFIG(debug, debug|release){
|
|
|
|
# Debug
|
|
|
|
unix {
|
|
|
|
*-g++{
|
2014-09-11 18:52:02 +02:00
|
|
|
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/QtXmlPatterns" \
|
|
|
|
-isystem "/usr/include/qt5/QtCore" \
|
|
|
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
|
|
$$GCC_CXXFLAGS
|
2014-04-25 14:58:14 +02:00
|
|
|
}
|
2014-06-04 13:16:16 +02:00
|
|
|
#Turn on Clang warnings
|
|
|
|
clang*{
|
|
|
|
QMAKE_CXXFLAGS += \
|
|
|
|
-isystem "/usr/include/qt5" \
|
2014-09-11 18:52:02 +02:00
|
|
|
-isystem "/usr/include/qt5/QtWidgets" \
|
|
|
|
-isystem "/usr/include/qt5/QtXml" \
|
|
|
|
-isystem "/usr/include/qt5/QtGui" \
|
2014-06-04 13:16:16 +02:00
|
|
|
-isystem "/usr/include/qt5/QtCore" \
|
2014-09-11 18:52:02 +02:00
|
|
|
-isystem "/usr/include/qt5/QtXmlPatterns" \
|
2014-06-04 13:16:16 +02:00
|
|
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
2014-09-11 18:52:02 +02:00
|
|
|
$$CLANG_CXXFLAGS
|
2014-06-04 13:16:16 +02:00
|
|
|
}
|
2014-04-25 14:58:14 +02:00
|
|
|
} else {
|
|
|
|
*-g++{#Don't use additional GCC keys on Windows system.
|
|
|
|
QMAKE_CXXFLAGS += -O0 -Wall -Wextra -pedantic
|
|
|
|
}
|
|
|
|
}
|
2014-09-11 18:52:02 +02:00
|
|
|
|
2014-04-25 14:58:14 +02:00
|
|
|
}else{
|
|
|
|
# Release
|
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
|
|
|
}
|