1#-------------------------------------------------
2#
3# Project created by QtCreator 2015-06-11T20:46:46
4#
5#-------------------------------------------------
6
7# File with common stuff for whole project
8include(../../../common.pri)
9
10QT += core widgets printsupport xmlpatterns concurrent xml
11
12# Name of the library
13TARGET = vpatterndb
14
15# We want create a library
16TEMPLATE = lib
17
18CONFIG += staticlib # Making static library
19
20# Since Q5.12 available support for C++17
21equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 11) {
22    CONFIG += c++17
23} else {
24    CONFIG += c++14
25}
26
27# Use out-of-source builds (shadow builds)
28CONFIG -= debug_and_release debug_and_release_target
29
30# The following define makes your compiler emit warnings if you use
31# any feature of Qt which has been marked as deprecated (the exact warnings
32# depend on your compiler). Please consult the documentation of the
33# deprecated API in order to know how to port your code away from it.
34DEFINES += QT_DEPRECATED_WARNINGS
35
36# You can also make your code fail to compile if you use deprecated APIs.
37# In order to do so, uncomment the following line.
38# You can also select to disable deprecated APIs only up to a certain version of Qt.
39#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
40
41# Since Qt 5.4.0 the source code location is recorded only in debug builds.
42# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
43DEFINES += QT_MESSAGELOGCONTEXT
44
45include(trmeasurements.pri)
46include(vpatterndb.pri)
47
48# This is static library so no need in "make install"
49
50# directory for executable file
51DESTDIR = bin
52
53# files created moc
54MOC_DIR = moc
55
56# objecs files
57OBJECTS_DIR = obj
58
59# Set using ccache. Function enable_ccache() defined in common.pri.
60$$enable_ccache()
61
62include(warnings.pri)
63
64CONFIG(release, debug|release){
65    # Release mode
66    !*msvc*:CONFIG += silent
67
68    !unix:*g++*{
69        QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
70    }
71
72    noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
73        # do nothing
74    } else {
75        !macx:!*msvc*{
76            # Turn on debug symbols in release mode on Unix systems.
77            # On Mac OS X temporarily disabled. TODO: find way how to strip binary file.
78            QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
79            QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
80            QMAKE_LFLAGS_RELEASE =
81        }
82    }
83}
84
85include (../libs.pri)
86