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