1#-------------------------------------------------
2#
3# Project created by QtCreator 2015-06-15T15:24:19
4#
5#-------------------------------------------------
6
7# File with common stuff for whole project
8include(../../../common.pri)
9
10QT += widgets printsupport
11
12# Name of the library
13TARGET = vwidgets
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(vwidgets.pri)
46
47# This is static library so no need in "make install"
48
49# directory for executable file
50DESTDIR = bin
51
52# files created moc
53MOC_DIR = moc
54
55# objecs files
56OBJECTS_DIR = obj
57
58# Set using ccache. Function enable_ccache() defined in common.pri.
59$$enable_ccache()
60
61include(warnings.pri)
62
63CONFIG(release, debug|release){
64    # Release mode
65    !*msvc*:CONFIG += silent
66
67    !unix:*g++*{
68        QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
69    }
70
71    noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
72        # do nothing
73    } else {
74        !macx:!*msvc*{
75            # Turn on debug symbols in release mode on Unix systems.
76            # On Mac OS X temporarily disabled. TODO: find way how to strip binary file.
77            QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
78            QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
79            QMAKE_LFLAGS_RELEASE =
80        }
81    }
82}
83
84include (../libs.pri)
85