use bindir instead of libdir when launching tools on windows, take 2
this makes build dirs consistent with install dirs, which fixes launching tests, examples, and build tools in some configs. unfortunately, this makes prefix builds slower and their build dirs bigger due to the DLLDESTDIR implementation being stupid (QTBUG-11435), but i'm not inclined to fix that now. it isn't actually worse than for non-prefix builds, so whatever. Task-number: QTBUG-54438 Change-Id: Idbd034620e95cb23f7699d243678c4e9fa6353ac Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>bb10
parent
a456739786
commit
5dbcced3bf
|
|
@ -183,8 +183,10 @@ defineTest(qtAddTargetEnv) {
|
|||
deps = $$replace($$2, -private$, _private)
|
||||
deps = $$resolve_depends(deps, "QT.", ".depends" ".run_depends")
|
||||
!isEmpty(deps) {
|
||||
libs = libs
|
||||
deppath.CONFIG = prepend
|
||||
equals(QMAKE_HOST.os, Windows) {
|
||||
libs = bins
|
||||
deppath.CONFIG = always_prepend
|
||||
deppath.name = PATH
|
||||
} else:contains(QMAKE_HOST.os, Linux|FreeBSD|OpenBSD|NetBSD|DragonFly|SunOS|HP-UX|QNX|GNU) {
|
||||
|
|
@ -204,9 +206,9 @@ defineTest(qtAddTargetEnv) {
|
|||
ptypes =
|
||||
for(dep, deps) {
|
||||
isEmpty(3): \
|
||||
deppath += $$shell_path($$eval(QT.$${dep}.libs))
|
||||
deppath += $$shell_path($$eval(QT.$${dep}.$$libs))
|
||||
else: \
|
||||
deppath += $$system_path($$eval(QT.$${dep}.libs))
|
||||
deppath += $$system_path($$eval(QT.$${dep}.$$libs))
|
||||
ptypes += $$eval(QT.$${dep}.plugin_types)
|
||||
}
|
||||
deppath.value = $$unique(deppath)
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ header_module {
|
|||
TEMPLATE = lib
|
||||
}
|
||||
DESTDIR = $$MODULE_BASE_OUTDIR/lib
|
||||
win32:!prefix_build: DLLDESTDIR = $$MODULE_BASE_OUTDIR/bin
|
||||
DLLDESTDIR = $$MODULE_BASE_OUTDIR/bin
|
||||
|
||||
CONFIG += qmake_cache target_qt
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue