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++{
|
2014-10-03 12:32:12 +02:00
|
|
|
QMAKE_CC = ccache gcc
|
2014-05-31 16:33:37 +02:00
|
|
|
QMAKE_CXX = ccache g++
|
|
|
|
}
|
|
|
|
clang*{
|
2014-10-03 12:32:12 +02:00
|
|
|
QMAKE_CC = ccache clang
|
2014-05-31 16:33:37 +02:00
|
|
|
QMAKE_CXX = ccache clang++
|
|
|
|
}
|
2014-04-25 14:58:14 +02:00
|
|
|
}
|
|
|
|
|
2014-10-04 08:31:34 +02:00
|
|
|
unix:!macx:!clang*{
|
|
|
|
CONFIG += precompile_header
|
|
|
|
# Precompiled headers (PCH)
|
|
|
|
PRECOMPILED_HEADER = stable.h
|
|
|
|
win32-msvc* {
|
|
|
|
PRECOMPILED_SOURCE = stable.cpp
|
|
|
|
}
|
2014-04-25 14:58:14 +02:00
|
|
|
}
|
|
|
|
|
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
|
2014-09-24 19:51:06 +02:00
|
|
|
|
2014-10-05 23:07:20 +02:00
|
|
|
unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g
|
|
|
|
unix:!macx{
|
2014-10-04 08:55:52 +02:00
|
|
|
# On Linux
|
2014-10-05 23:07:20 +02:00
|
|
|
QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
|
|
|
|
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
|
|
|
|
QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
|
2014-10-04 08:55:52 +02:00
|
|
|
}
|
2014-04-25 14:58:14 +02:00
|
|
|
}
|