2013-02-25 14:42:06 +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.
|
|
|
|
#
|
|
|
|
|
|
|
|
defineReplace(cmakeModuleName) {
|
|
|
|
_module = $$1
|
|
|
|
_name = $$eval(QT.$${_module}.name)
|
|
|
|
cmake_module_name = $$replace(_name, ^Qt, )
|
|
|
|
return ($$cmake_module_name)
|
|
|
|
}
|
|
|
|
|
|
|
|
defineReplace(cmakeModuleList) {
|
|
|
|
variable = $$1
|
|
|
|
out =
|
|
|
|
for(v, variable) {
|
|
|
|
out += $$cmakeModuleName($$v)
|
|
|
|
}
|
|
|
|
return ($$join(out, ";"))
|
|
|
|
}
|
2013-04-17 12:55:36 +00:00
|
|
|
|
|
|
|
defineReplace(cmakeTargetPath) {
|
|
|
|
SYSR = $$[QT_SYSROOT]
|
|
|
|
!isEmpty(SYSR): path = $$relative_path($$1, $$[QT_SYSROOT])
|
|
|
|
else: path = $$1
|
2013-07-23 07:43:15 +00:00
|
|
|
return($$clean_path(/$$path))
|
2013-04-17 12:55:36 +00:00
|
|
|
}
|
2013-04-11 20:45:14 +00:00
|
|
|
|
|
|
|
defineReplace(cmakeTargetPaths) {
|
|
|
|
variable = $$1
|
|
|
|
out =
|
|
|
|
for(v, variable) {
|
|
|
|
out += \"$$cmakeTargetPath($$v)\"
|
|
|
|
}
|
|
|
|
return ($$join(out, " "))
|
|
|
|
}
|
2013-04-16 11:38:19 +00:00
|
|
|
|
|
|
|
defineReplace(cmakePortablePaths) {
|
|
|
|
variable = $$1
|
|
|
|
out =
|
|
|
|
for(v, variable) {
|
2013-06-07 11:22:51 +00:00
|
|
|
out += $$[QT_SYSROOT]$$cmakeTargetPath($$v)
|
2013-04-16 11:38:19 +00:00
|
|
|
}
|
2013-04-22 20:00:10 +00:00
|
|
|
return ($$join(out, ";"))
|
2013-04-16 11:38:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defineReplace(cmakeProcessLibs) {
|
|
|
|
variable = $$1
|
|
|
|
out =
|
|
|
|
for(v, variable) {
|
2013-06-21 12:50:06 +00:00
|
|
|
if(!equals(v, -framework):!contains(v, -L.*)) {
|
2013-04-16 11:38:19 +00:00
|
|
|
v ~= s,^-l,,
|
|
|
|
v ~= s,^-lib,,
|
|
|
|
v ~= s,.lib$,,
|
|
|
|
out += $$v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ($$join(out, ";"))
|
|
|
|
}
|
2013-07-23 08:23:08 +00:00
|
|
|
|
|
|
|
defineReplace(cmakeRelativePath) {
|
|
|
|
path = $$relative_path($$1, $$2)
|
|
|
|
return($$replace(path, ([^/])$, \\1/))
|
|
|
|
}
|