remove pointless conditionals and expansions from qtLibraryTarget()
this function is called only from library TEMPLATEs, and always with exactly one word as the only argument. Change-Id: I6282e3826791f89e6cf89dde625c8166e4e56028 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
218179ce2f
commit
67f20d66e4
@ -19,10 +19,7 @@ defineReplace(qtLibraryTarget) {
|
||||
MAJOR_VERSION = $$section(VERSION, ., 0, 0)
|
||||
LIBRARY_NAME ~= s,^Qt,Qt$$MAJOR_VERSION,
|
||||
}
|
||||
unset(LIBRARY_SUFFIX)
|
||||
contains(TEMPLATE, .*lib):LIBRARY_SUFFIX = $$qtPlatformTargetSuffix()
|
||||
isEmpty(LIBRARY_SUFFIX):return($$LIBRARY_NAME)
|
||||
else:return($$member(LIBRARY_NAME, 0)$$LIBRARY_SUFFIX)
|
||||
return($$LIBRARY_NAME$$qtPlatformTargetSuffix())
|
||||
}
|
||||
|
||||
defineTest(qtAddLibrary) {
|
||||
|
Loading…
Reference in New Issue
Block a user