blob: d073a94058fd238d59675f134490b5b95999ba0d (
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
|
defineReplace(targetSubDir) {
CONFIG(debug, debug|release): return(debug)
else: return(release)
}
# Only use force_independent for non-developer build
!contains(QT_CONFIG, private_tests): CONFIG += force_independent
!sharedlib {
win32: CONFIG -= build_all
else: CONFIG -= debug_and_release
}
!qtHaveModule(enginio) {
# The module is not installed, try finding the pri file.
module_pri = mkspecs/modules/qt_lib_enginio.pri
exists($$PWD/$$module_pri): include($$PWD/$$module_pri) # in-source build
else: exists($$OUT_PWD/../enginio-qt/$$module_pri): include($$OUT_PWD/../enginio-qt/$$module_pri) # shadow build
else: error("Enginio client library module pri not found.")
}
QT += core network enginio
!sharedlib: win32 {
COPY_DLL_CMD = \"$${QT.enginio.libs}/$${QT.enginio.name}$$qtPlatformTargetSuffix().dll\" \"$$OUT_PWD/$$targetSubDir()\"
COPY_DLL_CMD = $$replace(COPY_DLL_CMD, /, \\)
QMAKE_POST_LINK += $${QMAKE_COPY} $${COPY_DLL_CMD} &
}
|