170 lines
5.6 KiB
Prolog
170 lines
5.6 KiB
Prolog
#-------------------------------------------------
|
|
#
|
|
# Project created by QtCreator 2016-08-04T16:33:17
|
|
#
|
|
#-------------------------------------------------
|
|
|
|
QT += testlib widgets xml printsupport
|
|
|
|
QT -= gui
|
|
|
|
TARGET = TranslationsTest
|
|
|
|
# File with common stuff for whole project
|
|
include(../../../common.pri)
|
|
|
|
# CONFIG += testcase adds a 'make check' which is great. But by default it also
|
|
# adds a 'make install' that installs the test cases, which we do not want.
|
|
# Can configure it not to do that with 'no_testcase_installs'
|
|
CONFIG += testcase no_testcase_installs
|
|
|
|
# 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
|
|
|
|
# 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
|
|
}
|
|
|
|
# Use out-of-source builds (shadow builds)
|
|
CONFIG -= app_bundle debug_and_release debug_and_release_target
|
|
|
|
TEMPLATE = app
|
|
|
|
# directory for executable file
|
|
DESTDIR = bin
|
|
|
|
# Directory for files created moc
|
|
MOC_DIR = moc
|
|
|
|
# objecs files
|
|
OBJECTS_DIR = obj
|
|
|
|
DEFINES += SRCDIR=\\\"$$PWD/\\\"
|
|
|
|
SOURCES += \
|
|
qttestmainlambda.cpp \
|
|
tst_measurementregexp.cpp \
|
|
tst_qmuparsererrormsg.cpp \
|
|
tst_tstranslation.cpp \
|
|
tst_buitinregexp.cpp \
|
|
tst_abstractregexp.cpp \
|
|
tst_tslocaletranslation.cpp \
|
|
tst_abstracttranslation.cpp
|
|
|
|
*msvc*:SOURCES += stable.cpp
|
|
|
|
HEADERS += \
|
|
stable.h \
|
|
tst_measurementregexp.h \
|
|
tst_qmuparsererrormsg.h \
|
|
tst_tstranslation.h \
|
|
tst_buitinregexp.h \
|
|
tst_abstractregexp.h \
|
|
tst_tslocaletranslation.h \
|
|
tst_abstracttranslation.h
|
|
|
|
# Set using ccache. Function enable_ccache() defined in common.pri.
|
|
$$enable_ccache()
|
|
|
|
DEFINES += TS_DIR=\\\"$${PWD}/../../../share/translations\\\"
|
|
|
|
include(warnings.pri)
|
|
|
|
CONFIG(release, debug|release){
|
|
# Release mode
|
|
!*msvc*:CONFIG += silent
|
|
DEFINES += V_NO_ASSERT
|
|
!unix:*g++*{
|
|
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
|
|
}
|
|
|
|
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. Need find way how to strip binary file.
|
|
!macx:!*msvc*{
|
|
QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
|
|
QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
|
|
QMAKE_LFLAGS_RELEASE =
|
|
}
|
|
}
|
|
}
|
|
|
|
#VTest static library (depend on VGeometry)
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vtest/$${DESTDIR} -lvtest
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vtest
|
|
DEPENDPATH += $$PWD/../../libs/vtest
|
|
|
|
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtest/$${DESTDIR}/vtest.lib
|
|
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../../libs/vtest/$${DESTDIR}/libvtest.a
|
|
|
|
# VLayout static library (depend on IFC, VGeometry, VPatternDB)
|
|
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
|
|
|
|
#VPatternDB static library (depend on vgeometry, vmisc)
|
|
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
|
|
|
|
## VGeometry static library (depend on ifc)
|
|
unix|win32: LIBS += -L$$OUT_PWD/../../libs/vgeometry/$${DESTDIR} -lvgeometry
|
|
|
|
INCLUDEPATH += $$PWD/../../libs/vgeometry
|
|
DEPENDPATH += $$PWD/../../libs/vgeometry
|
|
|
|
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
|
|
|
|
# IFC static library (depend on QMuParser)
|
|
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
|
|
|
|
#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
|
|
|
|
# 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
|
|
|
|
contains(DEFINES, APPIMAGE) {
|
|
unix:!macx: LIBS += -licudata -licui18n -licuuc
|
|
}
|