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-07-03 17:26:36 +00:00
|
|
|
CONFIG += qt warn_on 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-09-17 23:33:03 +00:00
|
|
|
!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
|
2012-07-03 17:26:36 +00:00
|
|
|
|
|
|
|
target.path = $$[QT_INSTALL_BINS]
|
|
|
|
INSTALLS += target
|
|
|
|
|
|
|
|
# If we are doing a prefix build, create a "module" pri which enables
|
|
|
|
# qtPrepareTool() to work with the non-installed build.
|
|
|
|
!build_pass:!exists($$[QT_INSTALL_PREFIX]/.qmake.cache) {
|
|
|
|
|
|
|
|
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-09-14 13:38:56 +00:00
|
|
|
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
|
|
|
|
|
|
|
}
|