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-03 17:26:36 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
|
2012-10-26 17:59:09 +00:00
|
|
|
load(qt_build_paths)
|
|
|
|
DESTDIR = $$MODULE_BASE_OUTDIR/bin
|
|
|
|
|
2012-12-14 18:17:20 +00:00
|
|
|
CONFIG += console
|
2012-07-10 18:53:52 +00:00
|
|
|
isEmpty(QMAKE_INFO_PLIST): CONFIG -= app_bundle
|
2012-07-03 17:26:36 +00:00
|
|
|
|
2012-11-15 13:49:19 +00:00
|
|
|
host_build {
|
2012-11-19 16:19:12 +00:00
|
|
|
!build_pass: CONFIG += release
|
2012-11-15 13:49:19 +00:00
|
|
|
QT = bootstrap-private
|
|
|
|
target.path = $$[QT_HOST_BINS]
|
|
|
|
} else {
|
|
|
|
!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
|
|
|
|
target.path = $$[QT_INSTALL_BINS]
|
|
|
|
}
|
2012-07-03 17:26:36 +00:00
|
|
|
INSTALLS += target
|
|
|
|
|
2012-11-15 13:49:19 +00:00
|
|
|
load(qt_targets)
|
|
|
|
|
2012-07-03 17:26:36 +00:00
|
|
|
# If we are doing a prefix build, create a "module" pri which enables
|
|
|
|
# qtPrepareTool() to work with the non-installed build.
|
2013-01-28 19:25:33 +00:00
|
|
|
!build_pass:prefix_build {
|
2012-07-03 17:26:36 +00:00
|
|
|
|
|
|
|
isEmpty(MODULE):MODULE = $$TARGET
|
|
|
|
|
|
|
|
MODULE_DEPENDS = $$replace(QT, -private$, )
|
|
|
|
|
2012-10-23 20:15:43 +00:00
|
|
|
load(qt_build_paths)
|
2012-07-03 17:26:36 +00:00
|
|
|
|
2012-07-10 18:53:52 +00:00
|
|
|
load(resolve_target)
|
2012-08-08 09:33:26 +00:00
|
|
|
cmd = $$shell_path($$QMAKE_RESOLVED_TARGET)
|
2012-11-22 12:46:37 +00:00
|
|
|
!host_build: qtAddTargetEnv(cmd)
|
2012-07-10 18:53:52 +00:00
|
|
|
|
2012-10-24 13:03:49 +00:00
|
|
|
TOOL_PRI = $$MODULE_QMAKE_OUTDIR/mkspecs/modules/qt_tool_$${MODULE}.pri
|
2012-07-03 17:26:36 +00:00
|
|
|
|
2012-08-08 09:33:26 +00:00
|
|
|
TOOL_PRI_CONT = "QT_TOOL.$${MODULE}.command = $$val_escape(cmd)"
|
2012-07-03 17:26:36 +00:00
|
|
|
write_file($$TOOL_PRI, TOOL_PRI_CONT)|error("Aborting.")
|
|
|
|
|
|
|
|
# Then, inject the new tool into the current cache state
|
|
|
|
!contains(QMAKE_INTERNAL_INCLUDED_FILES, $$TOOL_PRI) { # before the actual include()!
|
|
|
|
added = $$TOOL_PRI
|
|
|
|
cache(QMAKE_INTERNAL_INCLUDED_FILES, add transient, added)
|
|
|
|
unset(added)
|
|
|
|
}
|
|
|
|
include($$TOOL_PRI)
|
2012-09-06 17:05:22 +00:00
|
|
|
cache(QT_TOOL.$${MODULE}.command, transient)
|
2012-07-03 17:26:36 +00:00
|
|
|
|
|
|
|
}
|