blob: d4b5a47b2a3677d26065596427e042fbd699c382 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
TEMPLATE = lib
QT += network
TARGET = QtAssistantClient
isEmpty(QT_MAJOR_VERSION) {
VERSION=4.3.0
} else {
VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
}
CONFIG += qt warn_on
mac|win32:CONFIG += debug_and_release
mac:unix:CONFIG += explicitlib
CONFIG -= dll
HEADERS = qassistantclient.h \
qassistantclient_global.h
SOURCES = qassistantclient.cpp
DESTDIR = ../../../../lib
DLLDESTDIR = ../../../../bin
unix {
QMAKE_CFLAGS += $$QMAKE_CFLAGS_SHLIB
QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_SHLIB
}
DEFINES += QT_ASSISTANT_CLIENT_LIBRARY
contains(CONFIG, static) {
DEFINES += QT_ASSISTANT_CLIENT_STATIC
}
#load up the headers info
CONFIG += qt_install_headers
HEADERS_PRI = $$QT_BUILD_TREE/include/QtAssistant/headers.pri
include($$HEADERS_PRI)|clear(HEADERS_PRI)
#mac frameworks
mac:!static:contains(QT_CONFIG, qt_framework) {
TARGET = QtAssistant # Change the name to match the headers
QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
CONFIG += lib_bundle qt_no_framework_direct_includes qt_framework
CONFIG(debug, debug|release) {
!build_pass:CONFIG += build_all
} else { #release
!debug_and_release|build_pass {
CONFIG -= qt_install_headers #no need to install these as well
FRAMEWORK_HEADERS.version = Versions
FRAMEWORK_HEADERS.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
FRAMEWORK_HEADERS.path = Headers
}
QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
}
}
TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #done towards the end
target.path=$$[QT_INSTALL_LIBS]
INSTALLS += target
win32 {
dlltarget.path=$$[QT_INSTALL_BINS]
INSTALLS += dlltarget
}
qt_install_headers {
assistant_headers.files = $$SYNCQT.HEADER_FILES $$SYNCQT.HEADER_CLASSES
assistant_headers.path = $$[QT_INSTALL_HEADERS]/QtAssistant
INSTALLS += assistant_headers
}
unix {
CONFIG += create_pc
QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS]
QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS]/QtAssistant
QMAKE_PKGCONFIG_CFLAGS = -I$$[QT_INSTALL_HEADERS]
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_REQUIRES += QtNetwork
}
|