| 1 |
# |
| 2 |
# W A R N I N G |
| 3 |
# ------------- |
| 4 |
# |
| 5 |
# This file is not part of the Qt API. It exists purely as an |
| 6 |
# implementation detail. It may change from version to version |
| 7 |
# without notice, or even be removed. |
| 8 |
# |
| 9 |
# We mean it. |
| 10 |
# |
| 11 |
|
| 12 |
staticlib: \ |
| 13 |
CONFIG += static |
| 14 |
else: dll: \ |
| 15 |
CONFIG += shared |
| 16 |
|
| 17 |
CONFIG(static, static|shared) { |
| 18 |
CONFIG -= shared dll |
| 19 |
contains(TEMPLATE, ".*lib"): CONFIG += staticlib |
| 20 |
} else { |
| 21 |
CONFIG -= static staticlib |
| 22 |
contains(TEMPLATE, ".*lib"): CONFIG += dll |
| 23 |
} |
| 24 |
|
| 25 |
!macx-xcode: \ |
| 26 |
addExclusiveBuilds(shared, static) |
| 27 |
|
| 28 |
CONFIG(debug, debug|release) { |
| 29 |
CONFIG -= release |
| 30 |
!force_debug_plist:debug_and_release: \ |
| 31 |
CONFIG += no_plist |
| 32 |
} else { |
| 33 |
CONFIG -= debug |
| 34 |
} |
| 35 |
|
| 36 |
!macx-xcode { |
| 37 |
addExclusiveBuilds(debug, release) |
| 38 |
} else { |
| 39 |
# The Xcode generator always generates project files with |
| 40 |
# debug and release configurations, regardless of whether |
| 41 |
# or not debug_and_release is active. |
| 42 |
for(build, $$list(debug release)) { |
| 43 |
suffix = |
| 44 |
contains(QT_CONFIG, debug_and_release) { |
| 45 |
equals(build, debug): \ |
| 46 |
suffix = _debug |
| 47 |
} else { |
| 48 |
contains(QT_CONFIG, debug): \ |
| 49 |
suffix = _debug |
| 50 |
} |
| 51 |
|
| 52 |
library_suffix_$${build}.name = $$QMAKE_XCODE_LIBRARY_SUFFIX_SETTING |
| 53 |
library_suffix_$${build}.value = $$suffix |
| 54 |
library_suffix_$${build}.build = $$build |
| 55 |
QMAKE_MAC_XCODE_SETTINGS += library_suffix_$${build} |
| 56 |
|
| 57 |
CONFIG *= xcode_dynamic_library_suffix |
| 58 |
} |
| 59 |
} |