Debian Codegraph @

tools.pro

raw
1 # ****************************************************************************
2 # Project: libguytools
3 # ****************************************************************************
4 # Programmer: Guy Voncken
5 # Police Grand-Ducale
6 # Service de Police Judiciaire
7 # Section Nouvelles Technologies
8 # ****************************************************************************
9 # Module: Log utility
10 # ****************************************************************************
11
12 # Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
13 # 2018, 2019
14 # Guy Voncken
15 #
16 # This file is part of libguytools.
17 #
18 # libguytools is free software: you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation, either version 2 of the License, or
21 # (at your option) any later version.
22 #
23 # libguytools is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 # GNU General Public License for more details.
27 #
28 # You should have received a copy of the GNU General Public License
29 # along with libguytools. If not, see <http://www.gnu.org/licenses/>.
30
31 TEMPLATE = lib
32 DESTDIR = ./lib
33 TARGET = guytools
34
35 include( ./libguytools_version.pro.inc )
36
37 # The following line allows the software to see its own version
38 # (just for logging purpose). Many slashes and quotes... look at
39 # result of it during compilation
40 DEFINES += "LIBGUYTOOLS_VERSION=\\\""$$VERSION"\\\""
41
42 # Use the standard Qt configuration but remove the GUI part, as we do not need it.
43 CONFIG += qt
44 QT -= gui
45 CONFIG += c++14
46
47 CONFIG += warn_on thread release
48 DEFINES += TOCFG_COMPILE_FOR_USE_WITHOUT_TOOLBOX
49
50 DEPENDPATH += ./include
51 INCLUDEPATH += ./include
52
53 QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
54 QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS)
55
56 QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing # Switch off warning "dereferencing type-punned pointer will break strict-aliasing rules"
57 QMAKE_CXXFLAGS_WARN_ON += -fmessage-length=0 # Tell g++ not to split messages into different lines
58 QMAKE_CXXFLAGS_RELEASE += -O3
59
60 SOURCES += toollog.cpp
61 SOURCES += toolerror.cpp
62 SOURCES += toolsysinfo.cpp
63 SOURCES += toolsignal.cpp
64 SOURCES += toolcfg.cpp
65
66