don't abuse $$fromfile() for inspecting entire projects
a project can rightfully expect a sane environment. $$fromfile() does not necessarily provide that. so instead use include() with a target namespace. Change-Id: I8d6d30ab1b760d4930c9b4453bc92f8f8ad0b0ae Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>bb10
parent
65b42dd4c8
commit
672e5a4e88
|
|
@ -90,8 +90,8 @@ for(subname, SRC_SUBDIRS) {
|
|||
subdir = $$replace(subdir, $$reg_src, $$QT_BUILD_TREE)
|
||||
subdir = $$replace(subdir, /, $$QMAKE_DIR_SEP)
|
||||
subdir = $$replace(subdir, \\\\, $$QMAKE_DIR_SEP)
|
||||
SUB_TEMPLATE = $$fromfile($$subpro, TEMPLATE)
|
||||
!isEqual(subname, src_tools_bootstrap):if(isEqual(SUB_TEMPLATE, lib) | isEqual(SUB_TEMPLATE, subdirs)):!separate_debug_info {
|
||||
include($$subpro, SUB)
|
||||
!isEqual(subname, src_tools_bootstrap):if(isEqual(SUB.TEMPLATE, lib) | isEqual(SUB.TEMPLATE, subdirs)):!separate_debug_info {
|
||||
#debug
|
||||
debug-$${subtarget}.depends = $${subdir}$${QMAKE_DIR_SEP}$(MAKEFILE) $$EXTRA_DEBUG_TARGETS
|
||||
debug-$${subtarget}.commands = (cd $$subdir && $(MAKE) -f $(MAKEFILE) debug)
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ for(subname, TOOLS_SUBDIRS) {
|
|||
subdir = $$replace(subdir, $$reg_src, $$QT_BUILD_TREE)
|
||||
subdir = $$replace(subdir, /, $$QMAKE_DIR_SEP)
|
||||
subdir = $$replace(subdir, \\\\, $$QMAKE_DIR_SEP)
|
||||
SUB_TEMPLATE = $$fromfile($$subpro, TEMPLATE)
|
||||
!isEqual(subname, src_tools_bootstrap):if(isEqual(SUB_TEMPLATE, lib) | isEqual(SUB_TEMPLATE, subdirs)):!separate_debug_info {
|
||||
include($$subpro, SUB)
|
||||
!isEqual(subname, src_tools_bootstrap):if(isEqual(SUB.TEMPLATE, lib) | isEqual(SUB.TEMPLATE, subdirs)):!separate_debug_info {
|
||||
#debug
|
||||
debug-$${subtarget}.depends = $${subdir}$${QMAKE_DIR_SEP}$(MAKEFILE) $$EXTRA_DEBUG_TARGETS
|
||||
debug-$${subtarget}.commands = (cd $$subdir && $(MAKE) -f $(MAKEFILE) debug)
|
||||
|
|
|
|||
Loading…
Reference in New Issue