2014-04-25 14:58:14 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2014-04-25T12:01:49
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# File with common stuff for whole project
|
2015-07-10 11:28:30 +02:00
|
|
|
include(../../../common.pri)
|
2014-10-27 15:29:31 +01:00
|
|
|
|
|
|
|
# We don't need gui library.
|
2014-04-25 14:58:14 +02:00
|
|
|
QT -= gui
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Name of library
|
2014-04-25 14:58:14 +02:00
|
|
|
TARGET = qmuparser
|
2014-10-27 15:29:31 +01:00
|
|
|
|
2014-12-12 15:08:31 +01:00
|
|
|
# We want create a library
|
2014-04-25 14:58:14 +02:00
|
|
|
TEMPLATE = lib
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Use out-of-source builds (shadow builds)
|
2014-04-25 14:58:14 +02:00
|
|
|
CONFIG -= debug_and_release debug_and_release_target
|
2014-10-27 15:29:31 +01:00
|
|
|
|
|
|
|
# We use C++11 standard
|
2014-04-25 14:58:14 +02:00
|
|
|
CONFIG += c++11
|
|
|
|
|
2014-12-31 12:25:22 +01:00
|
|
|
# Since Qt 5.4.0 the source code location is recorded only in debug builds.
|
|
|
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
|
|
|
DEFINES += QT_MESSAGELOGCONTEXT
|
|
|
|
|
2014-04-25 14:58:14 +02:00
|
|
|
DEFINES += QMUPARSER_LIBRARY
|
|
|
|
|
|
|
|
# directory for executable file
|
|
|
|
DESTDIR = bin
|
|
|
|
|
|
|
|
# files created moc
|
|
|
|
MOC_DIR = moc
|
|
|
|
|
|
|
|
# objecs files
|
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
2014-12-03 15:11:57 +01:00
|
|
|
include(qmuparser.pri)
|
2014-04-25 14:58:14 +02:00
|
|
|
|
2015-10-18 09:50:33 +02:00
|
|
|
VERSION = 2.4.1
|
2014-04-25 14:58:14 +02:00
|
|
|
|
2016-07-23 13:48:16 +02:00
|
|
|
# Allow MAC OS X to find library inside a bundle
|
|
|
|
macx:QMAKE_SONAME_PREFIX = @rpath
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Set "make install" command for Unix-like systems.
|
2014-11-20 21:13:05 +01:00
|
|
|
unix:!macx{
|
2014-12-07 12:31:34 +01:00
|
|
|
isEmpty(PREFIX_LIB){
|
2014-12-22 23:13:25 +01:00
|
|
|
isEmpty(PREFIX){
|
|
|
|
PR_LIB = $$DEFAULT_PREFIX
|
|
|
|
} else {
|
|
|
|
PR_LIB = $$PREFIX
|
|
|
|
}
|
2014-11-20 21:13:05 +01:00
|
|
|
contains(QMAKE_HOST.arch, x86_64) {
|
2014-12-22 23:13:25 +01:00
|
|
|
PREFIX_LIB = $$PR_LIB/lib64
|
2014-11-20 21:13:05 +01:00
|
|
|
} else {
|
2014-12-22 23:13:25 +01:00
|
|
|
PREFIX_LIB = $$PR_LIB/lib
|
2014-11-21 13:01:35 +01:00
|
|
|
}
|
2014-10-15 18:56:14 +02:00
|
|
|
}
|
2014-12-07 12:31:34 +01:00
|
|
|
target.path = $$PREFIX_LIB
|
2014-04-25 14:58:14 +02:00
|
|
|
INSTALLS += target
|
|
|
|
}
|
|
|
|
|
2015-07-10 11:28:30 +02:00
|
|
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
2014-10-27 15:29:31 +01:00
|
|
|
$$enable_ccache()
|
2014-04-25 14:58:14 +02:00
|
|
|
|
2016-07-29 20:04:53 +02:00
|
|
|
include(warnings.pri)
|
2014-09-11 18:52:02 +02:00
|
|
|
|
2016-07-29 20:04:53 +02:00
|
|
|
CONFIG(release, debug|release){
|
2014-10-27 15:29:31 +01:00
|
|
|
# Release mode
|
2015-10-24 13:13:59 +02:00
|
|
|
!win32-msvc*:CONFIG += silent
|
2014-09-24 19:51:06 +02:00
|
|
|
|
2014-11-13 13:14:00 +01:00
|
|
|
!unix:*-g++{
|
|
|
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
|
|
|
}
|
|
|
|
|
2015-05-16 19:38:05 +02:00
|
|
|
noStripDebugSymbols {
|
|
|
|
# do nothing
|
|
|
|
} else {
|
|
|
|
!macx:!win32-msvc*{
|
|
|
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
|
|
|
# do nothing
|
|
|
|
} else {
|
|
|
|
# Turn on debug symbols in release mode on Unix systems.
|
|
|
|
# On Mac OS X temporarily disabled. TODO: find way how to strip binary file.
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
QMAKE_LFLAGS_RELEASE =
|
|
|
|
|
|
|
|
noStripDebugSymbols { # For enable run qmake with CONFIG+=noStripDebugSymbols
|
|
|
|
# do nothing
|
|
|
|
} else {
|
|
|
|
# Strip debug symbols.
|
|
|
|
QMAKE_POST_LINK += objcopy --only-keep-debug bin/${TARGET} bin/${TARGET}.dbg &&
|
|
|
|
QMAKE_POST_LINK += objcopy --strip-debug bin/${TARGET} &&
|
|
|
|
QMAKE_POST_LINK += objcopy --add-gnu-debuglink="bin/${TARGET}.dbg" bin/${TARGET}
|
|
|
|
}
|
2015-10-11 19:27:47 +02:00
|
|
|
|
|
|
|
QMAKE_DISTCLEAN += bin/${TARGET}.dbg
|
2015-05-16 19:38:05 +02:00
|
|
|
}
|
|
|
|
}
|
2014-10-04 08:55:52 +02:00
|
|
|
}
|
2014-04-25 14:58:14 +02:00
|
|
|
}
|