File: tools.pro

package info (click to toggle)
libguytools2 2.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 288 kB
  • sloc: cpp: 2,615; ansic: 288; makefile: 45; sh: 4
file content (35 lines) | stat: -rw-r--r-- 1,074 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
TEMPLATE = lib
DESTDIR  = ./lib
TARGET  = guytools

include( ./libguytools_version.pro.inc )

# The following line allows the software to see its own version
# (just for logging purpose). Many slashes and quotes... look at
# result of it during compilation
DEFINES += "LIBGUYTOOLS_VERSION=\\\""$$VERSION"\\\""

# Use the standard Qt configuration but remove the GUI part, as we do not need it.
CONFIG  += qt
QT      -= gui

CONFIG  += warn_on thread release
DEFINES += TOCFG_COMPILE_FOR_USE_WITHOUT_TOOLBOX

DEPENDPATH  += ./include
INCLUDEPATH += ./include

QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
QMAKE_LFLAGS   *= $(shell dpkg-buildflags --get LDFLAGS)

QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing   # Switch off warning "dereferencing type-punned pointer will break strict-aliasing rules"
QMAKE_CXXFLAGS_WARN_ON += -fmessage-length=0     # Tell g++ not to split messages into different lines
QMAKE_CXXFLAGS_RELEASE += -O3

SOURCES += toollog.cpp
SOURCES += toolerror.cpp
SOURCES += toolsysinfo.cpp
SOURCES += toolsignal.cpp
SOURCES += toolcfg.cpp