2014-08-26 17:06:14 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2014-08-26T14:18:08
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
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
|
|
|
|
|
|
|
# Library use widgets
|
2017-06-05 18:47:25 +02:00
|
|
|
QT += core widgets
|
2014-08-26 17:06:14 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# We don't need gui library.
|
2014-08-26 17:06:14 +02:00
|
|
|
QT -= gui
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Name of library
|
2014-08-26 17:06:14 +02:00
|
|
|
TARGET = vpropertyexplorer
|
2014-10-27 15:29:31 +01:00
|
|
|
|
|
|
|
# We want create library
|
2014-08-26 17:06:14 +02:00
|
|
|
TEMPLATE = lib
|
|
|
|
|
2019-05-28 16:41:15 +02:00
|
|
|
# Since Q5.12 available support for C++17
|
|
|
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 11) {
|
|
|
|
CONFIG += c++17
|
|
|
|
} else {
|
|
|
|
CONFIG += c++14
|
|
|
|
}
|
2014-08-26 17:06:14 +02:00
|
|
|
|
2018-03-22 18:57:56 +01:00
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any feature of Qt which has been marked as deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
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-08-26 17:06:14 +02:00
|
|
|
DEFINES += VPROPERTYEXPLORER_LIBRARY
|
|
|
|
|
2014-08-26 20:31:28 +02:00
|
|
|
# directory for executable file
|
|
|
|
DESTDIR = bin
|
|
|
|
|
|
|
|
# files created moc
|
|
|
|
MOC_DIR = moc
|
|
|
|
|
|
|
|
# objecs files
|
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
2016-07-23 13:48:16 +02:00
|
|
|
# Allow MAC OS X to find library inside a bundle
|
|
|
|
macx:QMAKE_SONAME_PREFIX = @rpath
|
|
|
|
|
2014-12-03 15:11:57 +01:00
|
|
|
include(vpropertyexplorer.pri)
|
2014-08-26 17:06:14 +02:00
|
|
|
|
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-08-26 17:06:14 +02:00
|
|
|
INSTALLS += target
|
|
|
|
}
|
2014-08-26 20:31:28 +02:00
|
|
|
|
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-09-20 18:05:21 +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
|
2017-07-05 10:35:32 +02:00
|
|
|
!*msvc*:CONFIG += silent
|
2014-09-24 19:51:06 +02:00
|
|
|
|
2017-07-05 10:35:32 +02:00
|
|
|
!unix:*g++*{
|
2014-11-13 13:14:00 +01:00
|
|
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
|
|
|
}
|
|
|
|
|
2016-07-20 14:40:33 +02:00
|
|
|
checkWarnings{
|
|
|
|
unix:include(warnings.pri)
|
|
|
|
}
|
|
|
|
|
2019-11-29 18:55:27 +01:00
|
|
|
noStripDebugSymbols {
|
|
|
|
# do nothing
|
|
|
|
} else {
|
|
|
|
!macx:!*msvc*{
|
|
|
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
|
|
|
# Strip after you link all libaries.
|
|
|
|
QMAKE_POST_LINK += objcopy --strip-debug bin/${TARGET}
|
2015-05-16 19:38:05 +02:00
|
|
|
} else {
|
2019-11-29 18:55:27 +01:00
|
|
|
# Strip after you link all libaries.
|
|
|
|
# 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 =
|
|
|
|
|
2015-05-16 19:38:05 +02:00
|
|
|
# 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
|
|
|
|
2019-11-29 18:55:27 +01:00
|
|
|
QMAKE_DISTCLEAN += bin/${TARGET}.dbg
|
|
|
|
}
|
2015-05-16 19:38:05 +02:00
|
|
|
}
|
2014-10-04 08:55:52 +02:00
|
|
|
}
|
2014-09-11 18:52:02 +02:00
|
|
|
}
|
2016-08-09 15:55:46 +02:00
|
|
|
|
|
|
|
include (../libs.pri)
|