2015-07-10 11:49:37 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2015-07-07T14:35:12
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
# File with common stuff for whole project
|
|
|
|
include(../../../common.pri)
|
|
|
|
|
2019-04-05 12:56:44 +02:00
|
|
|
QT += core gui widgets network xml xmlpatterns printsupport svg concurrent
|
|
|
|
|
2015-07-10 11:49:37 +02:00
|
|
|
# Name of binary file
|
|
|
|
TARGET = tape
|
|
|
|
|
2023-01-25 17:09:45 +01:00
|
|
|
VERSION = 0.7.52
|
|
|
|
|
2015-07-10 11:49:37 +02:00
|
|
|
# We want create executable file
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
# Use out-of-source builds (shadow builds)
|
|
|
|
CONFIG -= debug_and_release debug_and_release_target
|
|
|
|
|
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
|
|
|
|
}
|
2015-07-10 11:49:37 +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
|
|
|
|
|
2015-07-10 11:49:37 +02: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
|
|
|
|
|
|
|
|
# Directory for executable file
|
|
|
|
DESTDIR = bin
|
|
|
|
|
|
|
|
# Directory for files created moc
|
|
|
|
MOC_DIR = moc
|
|
|
|
|
|
|
|
# Directory for objecs files
|
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
|
|
|
# Directory for files created rcc
|
|
|
|
RCC_DIR = rcc
|
|
|
|
|
|
|
|
# Directory for files created uic
|
|
|
|
UI_DIR = uic
|
|
|
|
|
|
|
|
# Suport subdirectories. Just better project code tree.
|
|
|
|
include(tape.pri)
|
|
|
|
|
2015-07-12 16:19:53 +02:00
|
|
|
RESOURCES += \
|
|
|
|
share/resources/tapeicon.qrc
|
|
|
|
|
2015-08-01 11:39:32 +02:00
|
|
|
DATA_RESOURCE = share/resources/diagrams.qrc # External Binary Resource
|
|
|
|
|
2015-11-18 13:42:25 +01:00
|
|
|
# The list helps to check that all files are exist.
|
|
|
|
# Don't forget to convert text to curves.
|
|
|
|
DIAGRAMS += \
|
|
|
|
$${PWD}/share/resources/diagrams/Ap1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ap2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Bp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Bp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Cp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Cp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Dp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Dp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Dp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ep1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ep2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Fp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Fp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Fp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp6.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp7.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp8.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Gp9.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp6.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp7.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp8.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp9.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp10.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp11.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp12.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Hp13.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ip1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ip2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ip3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ip4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ip5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ip6.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Ip7.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Jp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Jp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Jp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Jp4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Jp5.svg \
|
2016-04-08 12:21:18 +02:00
|
|
|
$${PWD}/share/resources/diagrams/Jp6.svg \
|
2015-11-18 13:42:25 +01:00
|
|
|
$${PWD}/share/resources/diagrams/Kp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp6.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp7.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp8.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp9.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp10.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Kp11.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp6.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp7.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp8.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp9.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Lp10.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Mp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Mp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Mp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Np1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Np2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Np3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Np4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Np5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op6.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op7.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op8.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op9.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op10.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Op11.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp3.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp4.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp5.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp6.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp7.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp8.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp9.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp10.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp11.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Pp12.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Qp1.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Qp2.svg \
|
|
|
|
$${PWD}/share/resources/diagrams/Qp3.svg
|
|
|
|
|
2015-12-03 18:49:47 +01:00
|
|
|
!exists($${OUT_PWD}/$${DESTDIR}/diagrams.rcc) {
|
|
|
|
diagrams.name = resource diagrams
|
|
|
|
diagrams.CONFIG += no_link target_predeps
|
|
|
|
diagrams.depends = $$DIAGRAMS # expects a list of files
|
|
|
|
diagrams.input = DATA_RESOURCE # expects the name of a variable
|
|
|
|
diagrams.output = ${QMAKE_FILE_BASE}.rcc
|
|
|
|
diagrams.commands = $$shell_path($$[QT_INSTALL_BINS]/rcc) -binary -no-compress ${QMAKE_FILE_IN} -o $${OUT_PWD}/$${DESTDIR}/${QMAKE_FILE_OUT}
|
2015-11-18 13:42:25 +01:00
|
|
|
|
|
|
|
QMAKE_EXTRA_COMPILERS += diagrams
|
2015-12-03 21:42:26 +01:00
|
|
|
}
|
2015-11-18 13:42:25 +01:00
|
|
|
|
|
|
|
QMAKE_CLEAN += $${OUT_PWD}/$${DESTDIR}/diagrams.rcc
|
|
|
|
|
2017-07-12 20:21:48 +02:00
|
|
|
# INSTALL_MULTISIZE_MEASUREMENTS and INSTALL_STANDARD_TEMPLATES inside tables.pri
|
2015-11-18 13:42:25 +01:00
|
|
|
include(../tables.pri)
|
|
|
|
copyToDestdir($$INSTALL_STANDARD_TEMPLATES, $$shell_path($${OUT_PWD}/$${DESTDIR}/tables/templates))
|
|
|
|
include(../translations.pri)
|
|
|
|
|
2015-11-26 14:00:04 +01:00
|
|
|
# Set "make install" command for Unix-like systems.
|
|
|
|
unix{
|
2020-07-11 09:52:53 +02:00
|
|
|
!macx{
|
2015-11-26 14:00:04 +01:00
|
|
|
# Path to bin file after installation
|
2020-07-13 15:07:45 +02:00
|
|
|
target.path = $$BINDIR
|
2015-11-26 14:00:04 +01:00
|
|
|
|
2020-07-11 09:52:53 +02:00
|
|
|
rcc_diagrams.path = $$PKGDATADIR
|
2015-11-26 14:00:04 +01:00
|
|
|
rcc_diagrams.files = $${OUT_PWD}/$${DESTDIR}/diagrams.rcc
|
|
|
|
rcc_diagrams.CONFIG = no_check_exist
|
|
|
|
|
|
|
|
INSTALLS += \
|
|
|
|
target \
|
|
|
|
rcc_diagrams
|
|
|
|
}
|
|
|
|
macx{
|
|
|
|
# Some macx stuff
|
|
|
|
QMAKE_MAC_SDK = macosx
|
|
|
|
|
2018-05-22 18:22:11 +02:00
|
|
|
# QMAKE_MACOSX_DEPLOYMENT_TARGET defined in common.pri
|
2016-07-23 11:54:00 +02:00
|
|
|
|
2018-03-10 16:09:36 +01:00
|
|
|
CONFIG(release, debug|release){
|
|
|
|
QMAKE_RPATHDIR += @executable_path/../Frameworks
|
|
|
|
|
|
|
|
# Path to resources in app bundle
|
|
|
|
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
|
|
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
|
|
|
MACOS_DIR = "Contents/MacOS"
|
|
|
|
# On macx we will use app bundle. Bundle doesn't need bin directory inside.
|
|
|
|
# See issue #166: Creating OSX Homebrew (Mac OS X package manager) formula.
|
|
|
|
target.path = $$MACOS_DIR
|
|
|
|
|
|
|
|
#languages added inside translations.pri
|
|
|
|
|
|
|
|
# Symlinks also good names for copying. Make will take origin file and copy them with using symlink name.
|
|
|
|
# For bundle this names more then enough. We don't need care much about libraries versions.
|
|
|
|
libraries.path = $$FRAMEWORKS_DIR
|
|
|
|
libraries.files += $${OUT_PWD}/../../libs/qmuparser/$${DESTDIR}/libqmuparser.2.dylib
|
|
|
|
libraries.files += $${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}/libvpropertyexplorer.1.dylib
|
|
|
|
|
|
|
|
# logo on macx.
|
|
|
|
ICON = $$PWD/../../../dist/Tape.icns
|
|
|
|
|
|
|
|
QMAKE_INFO_PLIST = $$PWD/../../../dist/macx/tape/Info.plist
|
|
|
|
|
|
|
|
# Copy to bundle multisize measurements files
|
|
|
|
multisize.path = $$RESOURCES_DIR/tables/multisize/
|
|
|
|
multisize.files = $$INSTALL_MULTISIZE_MEASUREMENTS
|
|
|
|
|
|
|
|
# Copy to bundle templates files
|
|
|
|
templates.path = $$RESOURCES_DIR/tables/templates/
|
|
|
|
templates.files = $$INSTALL_STANDARD_TEMPLATES
|
|
|
|
|
|
|
|
# Copy to bundle multisize measurements files
|
|
|
|
# We cannot add none exist files to bundle through QMAKE_BUNDLE_DATA. That's why we must do this manually.
|
|
|
|
QMAKE_POST_LINK += $$VCOPY $$quote($${OUT_PWD}/$${DESTDIR}/diagrams.rcc) $$quote($$shell_path($${OUT_PWD}/$$DESTDIR/$${TARGET}.app/$$RESOURCES_DIR/)) $$escape_expand(\\n\\t)
|
|
|
|
|
|
|
|
format.path = $$RESOURCES_DIR/
|
|
|
|
format.files += $$PWD/../../../dist/macx/i-measurements.icns
|
|
|
|
format.files += $$PWD/../../../dist/macx/s-measurements.icns
|
|
|
|
|
|
|
|
QMAKE_BUNDLE_DATA += \
|
|
|
|
templates \
|
|
|
|
multisize \
|
|
|
|
libraries \
|
|
|
|
format
|
|
|
|
}
|
2015-11-26 14:00:04 +01:00
|
|
|
}
|
2015-11-18 13:42:25 +01:00
|
|
|
}
|
|
|
|
|
2017-01-24 15:20:39 +01:00
|
|
|
win32 {
|
2017-01-24 15:12:43 +01:00
|
|
|
for(DIR, INSTALL_OPENSSL) {
|
|
|
|
#add these absolute paths to a variable which
|
|
|
|
#ends up as 'mkcommands = path1 path2 path3 ...'
|
|
|
|
openssl_path += $${PWD}/$$DIR
|
|
|
|
}
|
|
|
|
copyToDestdir($$openssl_path, $$shell_path($${OUT_PWD}/$$DESTDIR))
|
2017-01-24 15:20:39 +01:00
|
|
|
}
|
2017-01-24 15:12:43 +01:00
|
|
|
|
2015-07-10 13:14:55 +02:00
|
|
|
# Compilation will fail without this files after we added them to this section.
|
|
|
|
OTHER_FILES += \
|
2015-08-01 11:39:32 +02:00
|
|
|
share/resources/tapeicon/64x64/logo.ico \ # Tape's logo.
|
|
|
|
$$DATA_RESOURCE
|
2015-07-10 13:14:55 +02:00
|
|
|
|
2015-07-10 11:49:37 +02:00
|
|
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
2015-11-16 11:22:34 +01:00
|
|
|
$$enable_ccache()
|
2015-07-10 11:49:37 +02:00
|
|
|
|
2016-07-29 20:04:53 +02:00
|
|
|
include(warnings.pri)
|
|
|
|
|
2017-04-10 19:24:58 +02:00
|
|
|
CONFIG(release, debug|release){
|
2015-07-10 11:49:37 +02:00
|
|
|
# Release mode
|
2020-12-26 18:44:55 +01:00
|
|
|
!*msvc*:CONFIG += silent
|
2015-07-10 11:49:37 +02:00
|
|
|
DEFINES += V_NO_ASSERT
|
2017-07-05 10:35:32 +02:00
|
|
|
!unix:*g++*{
|
2015-07-10 11:49:37 +02:00
|
|
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
|
|
|
}
|
|
|
|
|
|
|
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
2015-10-22 16:35:54 +02:00
|
|
|
DEFINES += V_NO_DEBUG
|
2015-07-10 11:49:37 +02:00
|
|
|
} else {
|
|
|
|
# Turn on debug symbols in release mode on Unix systems.
|
|
|
|
# On Mac OS X temporarily disabled. Need find way how to strip binary file.
|
2017-07-05 10:35:32 +02:00
|
|
|
!macx:!*msvc*{
|
2015-07-10 11:49:37 +02:00
|
|
|
QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
|
|
|
|
QMAKE_LFLAGS_RELEASE =
|
|
|
|
}
|
|
|
|
}
|
2017-12-11 14:52:24 +01:00
|
|
|
} else {
|
|
|
|
# Breakpoints do not work if debug the app inside of bundle. In debug mode we turn off creating a bundle.
|
|
|
|
# Probably it will breake some dependencies. Version for Mac designed to work inside an app bundle.
|
|
|
|
CONFIG -= app_bundle
|
2015-07-10 13:14:55 +02:00
|
|
|
}
|
2015-07-10 11:49:37 +02:00
|
|
|
|
2017-04-10 19:24:58 +02:00
|
|
|
DVCS_HESH=$$FindBuildRevision()
|
|
|
|
message("Build revision:" $${DVCS_HESH})
|
|
|
|
DEFINES += "BUILD_REVISION=$${DVCS_HESH}" # Make available build revision number in sources.
|
|
|
|
|
2015-07-10 13:14:55 +02:00
|
|
|
# Path to recource file.
|
|
|
|
win32:RC_FILE = share/resources/tape.rc
|
2015-07-10 11:49:37 +02:00
|
|
|
|
2016-02-19 16:21:51 +01:00
|
|
|
noRunPath{ # For enable run qmake with CONFIG+=noRunPath
|
|
|
|
# do nothing
|
|
|
|
} else {
|
|
|
|
unix:!macx{
|
|
|
|
# suppress the default RPATH
|
|
|
|
# helps to run the program without Qt Creator
|
|
|
|
# see problem with path to libqmuparser and libpropertybrowser
|
|
|
|
QMAKE_LFLAGS_RPATH =
|
|
|
|
QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}"
|
|
|
|
}
|
2015-10-24 22:06:16 +02:00
|
|
|
}
|
|
|
|
|
2015-07-24 14:06:53 +02:00
|
|
|
# When the GNU linker sees a library, it discards all symbols that it doesn't need.
|
2015-08-11 15:41:03 +02:00
|
|
|
# Dependent library go first.
|
2015-07-24 14:06:53 +02:00
|
|
|
|
|
|
|
#VTools static library (depend on VWidgets, VMisc, VPatternDB)
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vtools/$${DESTDIR}/ -lvtools
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vtools
|
|
|
|
INCLUDEPATH += $$OUT_PWD/../../libs/vtools/$${UI_DIR} # For UI files
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vtools
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtools/$${DESTDIR}/vtools.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtools/$${DESTDIR}/libvtools.a
|
|
|
|
|
2015-07-15 09:16:59 +02:00
|
|
|
# VFormat static library (depend on VPatternDB, IFC)
|
2015-07-14 19:22:31 +02:00
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vformat/$${DESTDIR}/ -lvformat
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vformat
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vformat
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vformat/$${DESTDIR}/vformat.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vformat/$${DESTDIR}/libvformat.a
|
|
|
|
|
2021-02-06 14:52:21 +01:00
|
|
|
#VPatternDB static library (depend on vgeometry, vmisc, VLayout)
|
2015-07-13 12:48:29 +02:00
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vpatterndb/$${DESTDIR} -lvpatterndb
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vpatterndb
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vpatterndb
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/vpatterndb.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vpatterndb/$${DESTDIR}/libvpatterndb.a
|
|
|
|
|
2023-05-10 14:00:02 +02:00
|
|
|
# VLayout static library (depend on IFC, VGeometry, VWidgets)
|
2021-02-06 14:52:21 +01:00
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vlayout/$${DESTDIR}/ -lvlayout
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vlayout
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vlayout
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vlayout/$${DESTDIR}/vlayout.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vlayout/$${DESTDIR}/libvlayout.a
|
|
|
|
|
2023-05-10 14:00:02 +02:00
|
|
|
#VWidgets static library
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vwidgets/$${DESTDIR}/ -lvwidgets
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vwidgets
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vwidgets
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vwidgets/$${DESTDIR}/vwidgets.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vwidgets/$${DESTDIR}/libvwidgets.a
|
|
|
|
|
2016-07-15 12:14:48 +02:00
|
|
|
# Fervor static library (depend on VMisc, IFC)
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/fervor/$${DESTDIR}/ -lfervor
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/fervor
|
|
|
|
DEPENDPATH += $$PWD/../../libs/fervor
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/fervor/$${DESTDIR}/fervor.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/fervor/$${DESTDIR}/libfervor.a
|
|
|
|
|
2016-08-21 17:57:08 +02:00
|
|
|
# IFC static library (depend on QMuParser, VMisc)
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/ifc/$${DESTDIR}/ -lifc
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/ifc
|
|
|
|
DEPENDPATH += $$PWD/../../libs/ifc
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/ifc.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/ifc/$${DESTDIR}/libifc.a
|
|
|
|
|
2015-07-13 12:48:29 +02:00
|
|
|
# VGeometry static library (depend on ifc)
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/ -lvgeometry
|
2015-07-10 13:14:55 +02:00
|
|
|
|
2015-07-13 12:48:29 +02:00
|
|
|
INCLUDEPATH += $$PWD/../../libs/vgeometry
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vgeometry
|
2015-07-10 13:14:55 +02:00
|
|
|
|
2015-07-13 12:48:29 +02:00
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/vgeometry.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vgeometry/$${DESTDIR}/libvgeometry.a
|
|
|
|
|
2020-11-20 12:18:38 +01:00
|
|
|
#VMisc static library
|
|
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vmisc/$${DESTDIR}/ -lvmisc
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vmisc
|
|
|
|
DEPENDPATH += $$PWD/../../libs/vmisc
|
|
|
|
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/vmisc.lib
|
|
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vmisc/$${DESTDIR}/libvmisc.a
|
|
|
|
|
2015-07-15 09:16:59 +02:00
|
|
|
# QMuParser library
|
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser2
|
|
|
|
else:unix: LIBS += -L$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -lqmuparser
|
|
|
|
|
|
|
|
INCLUDEPATH += $${PWD}/../../libs/qmuparser
|
|
|
|
DEPENDPATH += $${PWD}/../../libs/qmuparser
|
|
|
|
|
2015-07-24 14:06:53 +02:00
|
|
|
# VPropertyExplorer library
|
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR} -lvpropertyexplorer
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR} -lvpropertyexplorer
|
|
|
|
else:unix: LIBS += -L$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR} -lvpropertyexplorer
|
|
|
|
|
|
|
|
INCLUDEPATH += $${PWD}/../../libs/vpropertyexplorer
|
|
|
|
DEPENDPATH += $${PWD}/../../libs/vpropertyexplorer
|
|
|
|
|
2019-11-28 15:42:06 +01:00
|
|
|
contains(DEFINES, APPIMAGE) {
|
|
|
|
unix:!macx: LIBS += -licudata -licui18n -licuuc
|
|
|
|
}
|
|
|
|
|
2019-11-29 18:55:27 +01:00
|
|
|
CONFIG(release, debug|release){
|
|
|
|
noStripDebugSymbols {
|
2015-07-10 11:49:37 +02:00
|
|
|
# do nothing
|
|
|
|
} else {
|
2019-11-29 18:55:27 +01:00
|
|
|
!macx:!*msvc*{
|
|
|
|
noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
|
|
|
win32:!*msvc*{
|
|
|
|
# Strip debug symbols.
|
|
|
|
QMAKE_POST_LINK += objcopy --strip-debug bin/${TARGET}
|
|
|
|
}
|
|
|
|
|
|
|
|
unix:!macx{
|
|
|
|
# Strip after you link all libaries.
|
|
|
|
QMAKE_POST_LINK += objcopy --strip-debug ${TARGET}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
win32:!*msvc*{
|
|
|
|
# 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}
|
|
|
|
|
|
|
|
QMAKE_DISTCLEAN += bin/${TARGET}.dbg
|
|
|
|
}
|
|
|
|
|
|
|
|
unix:!macx{
|
|
|
|
# Strip debug symbols.
|
|
|
|
QMAKE_POST_LINK += objcopy --only-keep-debug ${TARGET} ${TARGET}.dbg &&
|
|
|
|
QMAKE_POST_LINK += objcopy --strip-debug ${TARGET} &&
|
|
|
|
QMAKE_POST_LINK += objcopy --add-gnu-debuglink="${TARGET}.dbg" ${TARGET}
|
|
|
|
|
|
|
|
QMAKE_DISTCLEAN += ${TARGET}.dbg
|
|
|
|
}
|
2015-10-11 19:27:47 +02:00
|
|
|
}
|
2015-07-10 11:49:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-11-18 13:42:25 +01:00
|
|
|
|
2018-03-10 16:09:36 +01:00
|
|
|
CONFIG(release, debug|release){
|
|
|
|
macx{
|
|
|
|
# run macdeployqt to include all qt libraries in packet
|
|
|
|
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
|
|
|
|
}
|
2015-11-18 13:42:25 +01:00
|
|
|
}
|