2016-03-08 18:38:59 +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.
|
|
|
|
#
|
|
|
|
|
|
|
|
equals(TEMPLATE, subdirs): return()
|
|
|
|
|
2016-03-09 17:12:08 +00:00
|
|
|
# It's likely that these extra flags will be wrong for host builds,
|
|
|
|
# and the bootstrapped tools usually don't need them anyway.
|
|
|
|
host_build:force_bootstrap: return()
|
|
|
|
|
2016-03-08 18:38:59 +00:00
|
|
|
# The headersclean check needs defines and includes even for
|
|
|
|
# header-only modules.
|
|
|
|
DEFINES += $$EXTRA_DEFINES
|
|
|
|
INCLUDEPATH += $$EXTRA_INCLUDEPATH
|
|
|
|
|
|
|
|
# The other flags are relevant only for actual libraries.
|
|
|
|
equals(TEMPLATE, aux): return()
|
|
|
|
|
|
|
|
LIBS += $$EXTRA_LIBS
|
|
|
|
|
|
|
|
# Static libs need no rpaths
|
|
|
|
static: return()
|
|
|
|
|
2016-03-09 16:42:29 +00:00
|
|
|
for (rp, EXTRA_RPATHS) {
|
|
|
|
absrp = $$absolute_path($$rp, $$[QT_INSTALL_LIBS])
|
|
|
|
!isEqual(absrp, $$rp) {
|
|
|
|
isEmpty(QMAKE_REL_RPATH_BASE)|!contains(INSTALLS, target): \
|
|
|
|
rp = $$absrp
|
|
|
|
else: \
|
|
|
|
rp = $$relative_path($$absrp, $$qtRelativeRPathBase())
|
|
|
|
}
|
|
|
|
QMAKE_RPATHDIR += $$rp
|
|
|
|
}
|