2014-04-25 10:58:33 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2013-06-18T12:36:43
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Compilation main binary file
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# File with common stuff for whole project
|
2014-05-15 11:29:12 +02:00
|
|
|
include(../../Valentina.pri)
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Here we don't see "network" library, but, i think, "printsupport" depend on this library, so we still need this
|
|
|
|
# library in installer.
|
2014-04-25 10:58:33 +02:00
|
|
|
QT += core gui widgets xml svg printsupport xmlpatterns
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# We want create executable file
|
2014-04-25 10:58:33 +02:00
|
|
|
TEMPLATE = app
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Name of binary file
|
2014-04-25 10:58:33 +02:00
|
|
|
TARGET = valentina
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Use out-of-source builds (shadow builds)
|
2014-04-25 10:58:33 +02:00
|
|
|
CONFIG -= debug_and_release debug_and_release_target
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# We use C++11 standard
|
|
|
|
CONFIG += c++11
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Directory for executable file
|
2014-04-25 10:58:33 +02:00
|
|
|
DESTDIR = bin
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Directory for files created moc
|
2014-04-25 10:58:33 +02:00
|
|
|
MOC_DIR = moc
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Directory for objecs files
|
2014-04-25 10:58:33 +02:00
|
|
|
OBJECTS_DIR = obj
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Directory for files created rcc
|
2014-04-25 10:58:33 +02:00
|
|
|
RCC_DIR = rcc
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Directory for files created uic
|
2014-04-25 10:58:33 +02:00
|
|
|
UI_DIR = uic
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Suport subdirectories. Just better project code tree.
|
2014-04-25 10:58:33 +02:00
|
|
|
include(container/container.pri)
|
|
|
|
include(dialogs/dialogs.pri)
|
|
|
|
include(exception/exception.pri)
|
|
|
|
include(geometry/geometry.pri)
|
|
|
|
include(tools/tools.pri)
|
|
|
|
include(widgets/widgets.pri)
|
|
|
|
include(xml/xml.pri)
|
2014-06-09 19:39:18 +02:00
|
|
|
include(undocommands/undocommands.pri)
|
2014-07-14 20:16:00 +02:00
|
|
|
include(visualization/visualization.pri)
|
2014-09-25 17:44:06 +02:00
|
|
|
include(core/core.pri)
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# This include path help promoute VMainGraphicsView on main window. Without it compiler can't find path to custom view
|
2014-08-12 13:30:20 +02:00
|
|
|
INCLUDEPATH += "$${PWD}/widgets"
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Some source files
|
2014-04-25 10:58:33 +02:00
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
|
|
|
mainwindow.cpp \
|
|
|
|
tablewindow.cpp \
|
|
|
|
stable.cpp \
|
2014-05-13 10:08:37 +02:00
|
|
|
version.cpp \
|
2014-05-22 10:08:12 +02:00
|
|
|
options.cpp
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Some header files
|
2014-04-25 10:58:33 +02:00
|
|
|
HEADERS += \
|
|
|
|
mainwindow.h \
|
|
|
|
options.h \
|
|
|
|
tablewindow.h \
|
|
|
|
stable.h \
|
|
|
|
version.h
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Main forms
|
2014-04-25 10:58:33 +02:00
|
|
|
FORMS += \
|
|
|
|
mainwindow.ui \
|
|
|
|
tablewindow.ui
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Resource files. This files will be included in binary.
|
2014-04-25 10:58:33 +02:00
|
|
|
RESOURCES += \
|
2014-10-27 15:29:31 +01:00
|
|
|
share/resources/icon.qrc \ # All other icons except cursors and Windows theme.
|
|
|
|
share/resources/cursor.qrc \ # Tools cursor icons.
|
|
|
|
share/resources/theme.qrc \ # Windows theme icons.
|
|
|
|
share/resources/schema.qrc \ # Schemas for validation xml files.
|
|
|
|
share/resources/measurements.qrc # For measurements files that we save as resource.
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Compilation will fail without this files after we added them to this section.
|
2014-05-11 19:22:11 +02:00
|
|
|
OTHER_FILES += \
|
2014-10-27 15:29:31 +01:00
|
|
|
share/resources/valentina.rc \ # For Windows system.
|
|
|
|
share/resources/icon/64x64/icon64x64.ico # Valentina's logo.
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Add here path to new translation file with name "valentina_*_*.ts" if you want to add new language.
|
|
|
|
# Same paths in variable INSTALL_TRANSLATIONS.
|
|
|
|
|
|
|
|
# File valentina.ts we use in transifex.com. It is empty translation file only with english inside. transifex.com use
|
|
|
|
# this file like base for new language. Don't add path to valentina.ts to INSTALL_TRANSLATIONS variable.
|
|
|
|
# When adding a translation here, also add it in the macx part.
|
2014-04-25 10:58:33 +02:00
|
|
|
TRANSLATIONS += share/translations/valentina.ts \
|
2014-09-09 15:11:50 +02:00
|
|
|
share/translations/valentina_ru_RU.ts \
|
|
|
|
share/translations/valentina_uk_UA.ts \
|
|
|
|
share/translations/valentina_de_DE.ts \
|
|
|
|
share/translations/valentina_cs_CZ.ts \
|
2014-04-25 10:58:33 +02:00
|
|
|
share/translations/valentina_he_IL.ts \
|
2014-09-09 15:11:50 +02:00
|
|
|
share/translations/valentina_fr_FR.ts \
|
|
|
|
share/translations/valentina_it_IT.ts \
|
|
|
|
share/translations/valentina_nl_NL.ts
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Set using ccache. Function enable_ccache() defined in Valentina.pri.
|
|
|
|
$$enable_ccache()
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Set precompiled headers. Function set_PCH() defined in Valentina.pri.
|
|
|
|
$$set_PCH()
|
2014-04-25 10:58:33 +02:00
|
|
|
|
|
|
|
CONFIG(debug, debug|release){
|
2014-10-27 15:29:31 +01:00
|
|
|
# Debug mode
|
2014-04-25 10:58:33 +02:00
|
|
|
unix {
|
2014-10-27 15:29:31 +01:00
|
|
|
#Turn on compilers warnings.
|
2014-04-25 10:58:33 +02:00
|
|
|
*-g++{
|
2014-06-02 09:43:27 +02:00
|
|
|
QMAKE_CXXFLAGS += \
|
2014-10-27 15:29:31 +01:00
|
|
|
# Key -isystem disable checking errors in system headers.
|
2014-06-02 09:43:27 +02:00
|
|
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
|
|
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
|
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
2014-10-27 15:29:31 +01:00
|
|
|
$$GCC_DEBUG_CXXFLAGS # See Valentina.pri for more details.
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
2014-06-01 09:35:13 +02:00
|
|
|
clang*{
|
|
|
|
QMAKE_CXXFLAGS += \
|
2014-10-27 15:29:31 +01:00
|
|
|
# Key -isystem disable checking errors in system headers.
|
2014-06-02 09:43:27 +02:00
|
|
|
-isystem "$${OUT_PWD}/$${UI_DIR}" \
|
|
|
|
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
|
|
|
|
-isystem "$${OUT_PWD}/$${RCC_DIR}" \
|
2014-10-27 15:29:31 +01:00
|
|
|
$$CLANG_DEBUG_CXXFLAGS # See Valentina.pri for more details.
|
2014-06-01 09:35:13 +02:00
|
|
|
}
|
2014-04-25 10:58:33 +02:00
|
|
|
} else {
|
2014-10-27 15:29:31 +01:00
|
|
|
*-g++{
|
|
|
|
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See Valentina.pri for more details.
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
|
|
|
}
|
2014-06-25 14:26:44 +02:00
|
|
|
|
2014-06-26 18:08:17 +02:00
|
|
|
#Calculate revision number only in release mode. Change revision number each time requare recompilation
|
2014-06-25 14:26:44 +02:00
|
|
|
#precompiled headers file.
|
2014-06-26 18:08:17 +02:00
|
|
|
DEFINES += "LOC_REV=0"
|
2014-04-25 10:58:33 +02:00
|
|
|
}else{
|
2014-10-27 15:29:31 +01:00
|
|
|
# Release mode
|
2014-04-25 10:58:33 +02:00
|
|
|
DEFINES += QT_NO_DEBUG_OUTPUT
|
2014-06-26 19:50:37 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Turn on debug symbols in release mode on Unix systems.
|
|
|
|
# On Mac OS X temporarily disabled. Need find way how to strip binary file.
|
|
|
|
unix:!macx:QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
|
2014-09-24 19:51:06 +02:00
|
|
|
|
2014-06-25 14:26:44 +02:00
|
|
|
#local revision number for using in version
|
2014-06-26 19:50:37 +02:00
|
|
|
HG_REV=$$system(hg parents --template '{rev}')
|
|
|
|
isEmpty(HG_REV){
|
2014-10-27 15:29:31 +01:00
|
|
|
HG_REV = 0 # if we can't find local revision left 0.
|
2014-06-25 14:26:44 +02:00
|
|
|
}
|
2014-10-27 15:29:31 +01:00
|
|
|
DEFINES += "LOC_REV=$${HG_REV}" # Make available local revision number in sources.
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Some extra information about Qt. Can be usefull.
|
2014-04-25 10:58:33 +02:00
|
|
|
message(Qt version: $$[QT_VERSION])
|
|
|
|
message(Qt is installed in $$[QT_INSTALL_PREFIX])
|
|
|
|
message(Qt resources can be found in the following locations:)
|
|
|
|
message(Documentation: $$[QT_INSTALL_DOCS])
|
|
|
|
message(Header files: $$[QT_INSTALL_HEADERS])
|
|
|
|
message(Libraries: $$[QT_INSTALL_LIBS])
|
|
|
|
message(Binary files (executables): $$[QT_INSTALL_BINS])
|
|
|
|
message(Plugins: $$[QT_INSTALL_PLUGINS])
|
|
|
|
message(Data files: $$[QT_INSTALL_DATA])
|
|
|
|
message(Translation files: $$[QT_INSTALL_TRANSLATIONS])
|
|
|
|
message(Settings: $$[QT_INSTALL_SETTINGS])
|
|
|
|
message(Examples: $$[QT_INSTALL_EXAMPLES])
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Path to recource file.
|
2014-04-25 10:58:33 +02:00
|
|
|
win32:RC_FILE = share/resources/valentina.rc
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Set "make install" command for Unix-like systems.
|
|
|
|
unix{
|
|
|
|
isEmpty(PREFIX){
|
|
|
|
PREFIX = $$DEFAULT_PREFIX
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
2014-10-27 15:29:31 +01:00
|
|
|
|
2014-11-05 10:27:23 +01:00
|
|
|
# Keep path to all files with standard measurements we support right now
|
|
|
|
INSTALL_STANDARD_MEASHUREMENTS += share/resources/tables/standard/GOST_man_ru.vst
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Prefix for binary file.
|
2014-10-16 13:02:58 +02:00
|
|
|
unix:!macx{
|
2014-10-27 15:29:31 +01:00
|
|
|
# Add to this variable all translation files that you want install with program.
|
|
|
|
# For generation *.qm file first you need create *.ts. See section TRANSLATIONS.
|
|
|
|
INSTALL_TRANSLATIONS += \
|
|
|
|
share/translations/valentina_ru_RU.qm \
|
|
|
|
share/translations/valentina_uk_UA.qm \
|
|
|
|
share/translations/valentina_de_DE.qm \
|
|
|
|
share/translations/valentina_cs_CZ.qm \
|
|
|
|
share/translations/valentina_he_IL.qm \
|
|
|
|
share/translations/valentina_fr_FR.qm \
|
|
|
|
share/translations/valentina_it_IT.qm \
|
|
|
|
share/translations/valentina_nl_NL.qm
|
|
|
|
|
2014-11-05 10:27:23 +01:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
|
|
|
|
DATADIR =$$PREFIX/share
|
|
|
|
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
|
|
|
|
|
|
|
|
# Path to bin file after installation
|
|
|
|
target.path = $$PREFIX/bin
|
|
|
|
|
|
|
|
# .desctop file
|
|
|
|
desktop.path = $$DATADIR/applications/
|
|
|
|
desktop.files += ../../dist/$${TARGET}.desktop
|
|
|
|
|
|
|
|
# logo
|
|
|
|
pixmaps.path = $$DATADIR/pixmaps/
|
|
|
|
pixmaps.files += ../../dist/$${TARGET}.png
|
|
|
|
|
|
|
|
# Path to translation files after installation
|
|
|
|
translations.path = $$DATADIR/$${TARGET}/translations/
|
|
|
|
translations.files = $$INSTALL_TRANSLATIONS
|
|
|
|
|
|
|
|
# Path to standard measurement after installation
|
|
|
|
standard.path = $$DATADIR/$${TARGET}/tables/standard/
|
|
|
|
standard.files = $$INSTALL_STANDARD_MEASHUREMENTS
|
|
|
|
|
|
|
|
INSTALLS += \
|
|
|
|
target \
|
|
|
|
desktop \
|
|
|
|
pixmaps \
|
|
|
|
translations \
|
|
|
|
standard
|
|
|
|
}
|
2014-11-05 10:27:23 +01:00
|
|
|
}
|
|
|
|
macx{
|
2014-10-27 15:29:31 +01:00
|
|
|
# Some macx stuff
|
2014-11-05 10:27:23 +01:00
|
|
|
QMAKE_MAC_SDK = macosx
|
2014-10-27 15:29:31 +01:00
|
|
|
|
2014-11-07 09:25:53 +01:00
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
2014-10-27 15:29:31 +01:00
|
|
|
# Path to resources in app bundle
|
|
|
|
RESOURCES_DIR = "Contents/Resources"
|
2014-11-05 10:27:23 +01:00
|
|
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
2014-10-27 15:29:31 +01:00
|
|
|
# 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 = $$PREFIX/
|
|
|
|
|
|
|
|
# Copy in bundle translation files.
|
|
|
|
exists(share/translations/valentina_ru_RU.qm){
|
|
|
|
TRANSLATION_ru_RU.files += \
|
|
|
|
share/translations/valentina_ru_RU.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_ru_RU.path = "$$RESOURCES_DIR/translations/ru_RU.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_ru_RU
|
|
|
|
}
|
|
|
|
|
|
|
|
exists(share/translations/valentina_uk_UA.qm){
|
|
|
|
TRANSLATION_uk_UA.files += \
|
|
|
|
share/translations/valentina_uk_UA.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_uk_UA.path = "$$RESOURCES_DIR/translations/uk_UA.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_uk_UA
|
|
|
|
}
|
|
|
|
|
|
|
|
exists(share/translations/valentina_de_DE.qm){
|
|
|
|
TRANSLATION_de_DE.files += \
|
|
|
|
share/translations/valentina_de_DE.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_de_DE.path = "$$RESOURCES_DIR/translations/de_DE.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_de_DE
|
|
|
|
}
|
|
|
|
|
|
|
|
exists(share/translations/valentina_cs_CZ.qm){
|
|
|
|
TRANSLATION_cs_CZ.files += \
|
|
|
|
share/translations/valentina_cs_CZ.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_cs_CZ.path = "$$RESOURCES_DIR/translations/cs_CZ.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_cs_CZ
|
|
|
|
}
|
|
|
|
|
|
|
|
exists(share/translations/valentina_he_IL.qm){
|
|
|
|
TRANSLATION_he_IL.files += \
|
|
|
|
share/translations/valentina_he_IL.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_he_IL.path = "$$RESOURCES_DIR/translations/he_IL.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_he_IL
|
|
|
|
}
|
|
|
|
|
|
|
|
exists(share/translations/valentina_fr_FR.qm){
|
|
|
|
TRANSLATION_fr_FR.files += \
|
|
|
|
share/translations/valentina_fr_FR.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_fr_FR.path = "$$RESOURCES_DIR/translations/fr_FR.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_fr_FR
|
|
|
|
}
|
|
|
|
|
|
|
|
exists(share/translations/valentina_it_IT.qm){
|
|
|
|
TRANSLATION_it_IT.files += \
|
|
|
|
share/translations/valentina_it_IT.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_it_IT.path = "$$RESOURCES_DIR/translations/it_IT.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_it_IT
|
|
|
|
}
|
|
|
|
|
|
|
|
exists(share/translations/valentina_nl_NL.qm){
|
|
|
|
TRANSLATION_nl_NL.files += \
|
|
|
|
share/translations/valentina_nl_NL.qm \
|
|
|
|
share/translations/Localizable.strings
|
|
|
|
TRANSLATION_nl_NL.path = "$$RESOURCES_DIR/translations/nl_NL.lproj"
|
|
|
|
QMAKE_BUNDLE_DATA += TRANSLATION_nl_NL
|
|
|
|
}
|
2014-11-19 04:10:57 +01:00
|
|
|
qmuparser.path = $$FRAMEWORKS_DIR
|
|
|
|
qmuparser.files = $${OUT_PWD}/../libs/qmuparser/$${DESTDIR}/
|
|
|
|
vpropertyexplorer.path = $$FRAMEWORKS_DIR
|
|
|
|
vpropertyexplorer.files = $${OUT_PWD}/../libs/vpropertyexplorer/$${DESTDIR}/
|
|
|
|
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# logo on macx.
|
2014-11-07 09:25:53 +01:00
|
|
|
ICON = ../../dist/Valentina.icns
|
2014-11-05 10:27:23 +01:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Copy to bundle standard measurements files
|
|
|
|
standard.path = $$RESOURCES_DIR/tables/standard/
|
|
|
|
standard.files = $$INSTALL_STANDARD_MEASHUREMENTS
|
|
|
|
|
|
|
|
QMAKE_BUNDLE_DATA += \
|
|
|
|
standard \
|
2014-11-19 04:10:57 +01:00
|
|
|
qmuparser \
|
|
|
|
vpropertyexplorer
|
2014-11-05 10:27:23 +01:00
|
|
|
|
|
|
|
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Run generation *.qm file for available *.ts files each time you run qmake.
|
2014-04-25 10:58:33 +02:00
|
|
|
!isEmpty(TRANSLATIONS): {
|
|
|
|
for(_translation_name, TRANSLATIONS) {
|
|
|
|
_translation_name_qm = $$section(_translation_name,".", 0, 0).qm
|
|
|
|
|
2014-08-26 17:06:14 +02:00
|
|
|
system($$shell_path($$[QT_INSTALL_BINS]/lrelease) $$shell_path($${PWD}/$$_translation_name) -qm $$shell_path($${PWD}/$$_translation_name_qm))
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for(DIR, INSTALL_TRANSLATIONS) {
|
|
|
|
#add these absolute paths to a variable which
|
|
|
|
#ends up as 'mkcommands = path1 path2 path3 ...'
|
2014-08-26 17:06:14 +02:00
|
|
|
tr_path += $${PWD}/$$DIR
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Make possible run program even you do not install it. Seek files in local directory.
|
2014-08-26 17:06:14 +02:00
|
|
|
copyToDestdir($$tr_path, $$shell_path($${OUT_PWD}/$$DESTDIR/translations))
|
2014-04-25 10:58:33 +02:00
|
|
|
|
|
|
|
for(DIR, INSTALL_STANDARD_MEASHUREMENTS) {
|
|
|
|
#add these absolute paths to a variable which
|
|
|
|
#ends up as 'mkcommands = path1 path2 path3 ...'
|
2014-08-26 17:06:14 +02:00
|
|
|
st_path += $${PWD}/$$DIR
|
2014-04-25 10:58:33 +02:00
|
|
|
}
|
|
|
|
|
2014-08-26 17:06:14 +02:00
|
|
|
copyToDestdir($$st_path, $$shell_path($${OUT_PWD}/$$DESTDIR/tables/standard))
|
2014-04-25 10:58:33 +02:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# QMuParser library
|
2014-08-26 17:06:14 +02:00
|
|
|
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
|
2014-04-25 14:58:14 +02:00
|
|
|
|
2014-08-26 17:06:14 +02:00
|
|
|
INCLUDEPATH += $${PWD}/../libs/qmuparser
|
|
|
|
DEPENDPATH += $${PWD}/../libs/qmuparser
|
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# VPropertyExplorer library
|
2014-08-26 17:06:14 +02:00
|
|
|
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
|
2014-09-24 19:51:06 +02:00
|
|
|
|
2014-11-05 10:27:23 +01:00
|
|
|
|
2014-10-27 15:29:31 +01:00
|
|
|
# Strip after you link all libaries.
|
2014-09-24 19:51:06 +02:00
|
|
|
CONFIG(release, debug|release){
|
2014-10-05 23:07:20 +02:00
|
|
|
unix:!macx{
|
2014-10-27 15:29:31 +01:00
|
|
|
# Strip debug symbols.
|
2014-10-05 23:07:20 +02:00
|
|
|
QMAKE_POST_LINK += objcopy --only-keep-debug $(TARGET) $(TARGET).debug &&
|
|
|
|
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) &&
|
|
|
|
QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
|
2014-10-04 08:55:52 +02:00
|
|
|
}
|
2014-09-24 19:51:06 +02:00
|
|
|
}
|
2014-11-05 10:27:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
macx{
|
|
|
|
# run macdeployqt to include all qt libraries in packet
|
|
|
|
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
|
|
|
|
}
|