2012-12-11 21:08:15 +00:00
|
|
|
#
|
|
|
|
# W A R N I N G
|
|
|
|
# -------------
|
|
|
|
#
|
|
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
|
|
# implementation detail. It may change from version to version
|
|
|
|
# without notice, or even be removed.
|
|
|
|
#
|
|
|
|
# We mean it.
|
|
|
|
#
|
|
|
|
|
2012-07-12 09:16:53 +00:00
|
|
|
QMAKE_RESOLVED_TARGET = $$absolute_path($$DESTDIR, $$OUT_PWD)/
|
2011-07-05 14:15:52 +00:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
contains(TEMPLATE, .*lib) {
|
2012-11-01 21:57:33 +00:00
|
|
|
!skip_target_version_ext:isEmpty(TARGET_VERSION_EXT):!isEmpty(VERSION) {
|
2011-07-05 14:15:52 +00:00
|
|
|
TARGET_VERSION_EXT = $$section(VERSION, ., 0, 0)
|
|
|
|
isEqual(TARGET_VERSION_EXT, 0):unset(TARGET_VERSION_EXT)
|
|
|
|
}
|
2011-09-16 06:14:03 +00:00
|
|
|
static:TARGET_EXT = .lib
|
|
|
|
else:TARGET_EXT = .dll
|
2011-07-05 14:15:52 +00:00
|
|
|
} else {
|
|
|
|
TARGET_EXT = .exe
|
|
|
|
}
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${TARGET}$${TARGET_VERSION_EXT}$${TARGET_EXT}
|
|
|
|
} else {
|
|
|
|
contains(TEMPLATE, .*lib):LIBPREFIX = lib
|
|
|
|
|
|
|
|
macx {
|
|
|
|
equals(TEMPLATE, lib) {
|
|
|
|
lib_bundle {
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${TARGET}.framework/$${TARGET}
|
|
|
|
} else {
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${LIBPREFIX}$${TARGET}
|
|
|
|
!plugin {
|
|
|
|
TEMP_VERSION = $$section(VERSION, ., 0, 0)
|
|
|
|
isEmpty(TEMP_VERSION):TEMP_VERSION = 1
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}.$${TEMP_VERSION}
|
|
|
|
}
|
2011-09-16 06:14:03 +00:00
|
|
|
static:QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}.$${QMAKE_EXTENSION_STATICLIB}
|
|
|
|
else:QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}.$${QMAKE_EXTENSION_SHLIB}
|
2011-07-05 14:15:52 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
app_bundle {
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${TARGET}.app/Contents/MacOS/$${TARGET}
|
|
|
|
} else {
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${TARGET}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
equals(TEMPLATE, lib) {
|
2011-09-16 06:14:03 +00:00
|
|
|
static {
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${LIBPREFIX}$${TARGET}.a
|
|
|
|
} else:plugin {
|
2011-07-05 14:15:52 +00:00
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${LIBPREFIX}$${TARGET}.so
|
|
|
|
} else {
|
|
|
|
TEMP_VERSION = $$VERSION
|
|
|
|
isEmpty(TEMP_VERSION):TEMP_VERSION = 1.0.0
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${LIBPREFIX}$${TARGET}.so.$${TEMP_VERSION}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
QMAKE_RESOLVED_TARGET = $${QMAKE_RESOLVED_TARGET}$${TARGET}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unset(TARGET_EXT)
|
|
|
|
unset(LIBPREFIX)
|
|
|
|
unset(TEMP_VERSION)
|
|
|
|
|