1
CONFIG(debug,debug|release) {
2
    DEFINES += QMF_ENABLE_LOGGING
3
}
4
5
6
win32 | macx {
7
8
    RELEASEMODE=unspecified
9
10
    !build_pass {
11
12
        win32 {
13
            contains(CONFIG_WIN,debug) {
14
                RELEASEMODE=debug
15
            } else:contains(CONFIG_WIN,release) {
16
                RELEASEMODE=release
17
            }
18
        }
19
20
        # In Windows we want to build libraries in debug and release mode if the user
21
        # didn't select a version, and if Qt is built in debug_and_release.
22
        # This avoids problems for third parties as qmake builds debug mode by default
23
        # Silently disable unsupported configurations
24
25
        # MacOSX always builds debug and release libs when using mac framework
26
27
        CONFIG -= debug release debug_and_release build_all
28
29
        contains(RELEASEMODE,unspecified) {
30
            contains(QT_CONFIG,debug):contains(QT_CONFIG,release) | if(macx:contains(QT_CONFIG,qt_framework):contains(TEMPLATE,.*lib)) {
31
                CONFIG += debug_and_release build_all
32
            } else {
33
                contains(QT_CONFIG,debug): CONFIG+=debug
34
                contains(QT_CONFIG,release): CONFIG+=release
35
            }
36
        } else {
37
            CONFIG += $$RELEASEMODE
38
        }
39
    }
40
41
    
42
43
    #suffix changes
44
45
    contains(TEMPLATE,.*lib) {
46
        TARGET=$$qtLibraryTarget($${TARGET})
47
    } 
48
49
    win32 {
50
        contains(TEMPLATE,.*app) {
51
            CONFIG(debug,debug|release):TARGET=$$join(TARGET,,,d)
52
        }
53
54
        # If we are building both debug and release configuration, ensure
55
        # debug binaries load debug versions of their dependents
56
57
        CONFIG(debug,debug|release) {
58
            DEFINES += LOAD_DEBUG_VERSION
59
        }
60
    }
61
62
}
63
64
INSTALLS += target
65
66
DESTDIR=build
67
68
plugin {
69
    DEFINES += PLUGIN_INTERNAL
70
}
71
72
# build QMF libraries as frameworks on OSX, omitting plugins.
73
74
mac:contains(QT_CONFIG,qt_framework):!plugin {
75
    CONFIG += lib_bundle absolute_library_soname
76
    FRAMEWORK_HEADERS.version = Versions
77
    FRAMEWORK_HEADERS.files = $${PUBLIC_HEADERS}
78
    FRAMEWORK_HEADERS.path = Headers
79
    QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
80
}
81
82
qmfclient:qtAddLibrary(qmfclient)
83
qmfmessageserver:qtAddLibrary(qmfmessageserver)
84
qmfutil:qtAddLibrary(qmfutil)
85
86
QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden