diff options
| author | Takahiro Hashimoto <kenya888@gmail.com> | 2014-01-17 16:46:13 +0900 |
|---|---|---|
| committer | Robin Burchell <robin+qt@viroteck.net> | 2014-01-17 23:01:28 +0100 |
| commit | 1183b517e81b84c049acf84132cc436e823fcad5 (patch) | |
| tree | 40bd5e9c8370569adbba453f3242e7016ef8dfec /examples/messagingaccounts | |
| parent | 67cb17056360382565d6cb3272080193bfa3105e (diff) | |
Detection of libraries built as framework or dylib on Mac
This makes build system detect if Qt libraries are built as framework or not and
add correct flags to LIBS.
Change-Id: Ifb0d2ed87f5d624966395bce39959ce53f1dee89
Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com>
Reviewed-by: Tasuku Suzuki <stasuku@gmail.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'examples/messagingaccounts')
| -rw-r--r-- | examples/messagingaccounts/messagingaccounts.pro | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/examples/messagingaccounts/messagingaccounts.pro b/examples/messagingaccounts/messagingaccounts.pro index 09de123f..06966e93 100644 --- a/examples/messagingaccounts/messagingaccounts.pro +++ b/examples/messagingaccounts/messagingaccounts.pro @@ -4,12 +4,22 @@ CONFIG += qmfclient qmfmessageserver equals(QT_MAJOR_VERSION, 4){ TARGET = messagingaccounts - LIBS += -lqmfmessageserver -lqmfclient + + macx:contains(QT_CONFIG, qt_framework) { + LIBS += -framework qmfmessageserver -framework qmfclient + } else { + LIBS += -lqmfmessageserver -lqmfclient + } } equals(QT_MAJOR_VERSION, 5){ TARGET = messagingaccounts5 QT += widgets - LIBS += -lqmfmessageserver5 -lqmfclient5 + + macx:contains(QT_CONFIG, qt_framework) { + LIBS += -framework qmfmessageserver5 -framework qmfclient5 + } else { + LIBS += -lqmfmessageserver5 -lqmfclient5 + } } DEPENDPATH += . |
