1
|
# This pro file will build QsLog as a shared library
|
2
|
include(QsLog.pri)
|
3
|
|
4
|
TARGET = QsLog
|
5
|
VERSION = "2.0.0"
|
6
|
QT -= gui
|
7
|
CONFIG -= console
|
8
|
CONFIG -= app_bundle
|
9
|
CONFIG += shared
|
10
|
TEMPLATE = lib
|
11
|
|
12
|
DESTDIR = $$PWD/build-QsLogShared
|
13
|
OBJECTS_DIR = $$DESTDIR/obj
|
14
|
MOC_DIR = $$DESTDIR/moc
|
15
|
|
16
|
win32 {
|
17
|
DEFINES += QSLOG_IS_SHARED_LIBRARY
|
18
|
}
|
19
|
|
20
|
unix:!macx {
|
21
|
# make install will install the shared object in the appropriate folders
|
22
|
headers.files = QsLog.h QsLogDest.h QsLogLevel.h
|
23
|
headers.path = /usr/include/$(QMAKE_TARGET)
|
24
|
|
25
|
other_files.files = *.txt
|
26
|
other_files.path = /usr/local/share/$(QMAKE_TARGET)
|
27
|
|
28
|
contains(QT_ARCH, x86_64) {
|
29
|
target.path = /usr/lib64
|
30
|
} else {
|
31
|
target.path = /usr/lib
|
32
|
}
|
33
|
|
34
|
INSTALLS += headers target other_files
|
35
|
}
|