diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-09-30 12:07:41 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-09-30 14:25:45 +0200 |
commit | fdd6cb3195c7845a2b8f32445ab3e38bb951ed60 (patch) | |
tree | 1080ef50eecf058b63a72f45686bab163b5da011 /share/qbs/modules/cpp | |
parent | a8fdce0655c7e490c0e96b19c40308c4a1582656 (diff) |
Change property types from "string" to "path" where applicable.
Change-Id: I09cb3d854d8bd0e95760eae8c0e9a06d760498b4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'share/qbs/modules/cpp')
-rw-r--r-- | share/qbs/modules/cpp/CppModule.qbs | 2 | ||||
-rw-r--r-- | share/qbs/modules/cpp/DarwinGCC.qbs | 6 | ||||
-rw-r--r-- | share/qbs/modules/cpp/GenericGCC.qbs | 8 | ||||
-rw-r--r-- | share/qbs/modules/cpp/windows-mingw.qbs | 2 | ||||
-rw-r--r-- | share/qbs/modules/cpp/windows-msvc.qbs | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/share/qbs/modules/cpp/CppModule.qbs b/share/qbs/modules/cpp/CppModule.qbs index f6ca753c1..239e11fd8 100644 --- a/share/qbs/modules/cpp/CppModule.qbs +++ b/share/qbs/modules/cpp/CppModule.qbs @@ -83,7 +83,7 @@ Module { property pathList frameworkPaths property pathList systemFrameworkPaths property string compilerName - property string compilerPath: compilerName + property path compilerPath: compilerName property stringList compilerWrapper property string staticLibraryPrefix property string dynamicLibraryPrefix diff --git a/share/qbs/modules/cpp/DarwinGCC.qbs b/share/qbs/modules/cpp/DarwinGCC.qbs index 5c4f70010..bdcaa2082 100644 --- a/share/qbs/modules/cpp/DarwinGCC.qbs +++ b/share/qbs/modules/cpp/DarwinGCC.qbs @@ -95,9 +95,9 @@ UnixGCC { return dict; } - readonly property string platformInfoPlist: platformPath ? [platformPath, "Info.plist"].join("/") : undefined - readonly property string sdkSettingsPlist: sysroot ? [sysroot, "SDKSettings.plist"].join("/") : undefined - readonly property string toolchainInfoPlist: toolchainInstallPath ? [toolchainInstallPath, "../../ToolchainInfo.plist"].join("/") : undefined + readonly property path platformInfoPlist: platformPath ? [platformPath, "Info.plist"].join("/") : undefined + readonly property path sdkSettingsPlist: sysroot ? [sysroot, "SDKSettings.plist"].join("/") : undefined + readonly property path toolchainInfoPlist: toolchainInstallPath ? [toolchainInstallPath, "../../ToolchainInfo.plist"].join("/") : undefined Rule { multiplex: true diff --git a/share/qbs/modules/cpp/GenericGCC.qbs b/share/qbs/modules/cpp/GenericGCC.qbs index 28ef1719b..95105ef0b 100644 --- a/share/qbs/modules/cpp/GenericGCC.qbs +++ b/share/qbs/modules/cpp/GenericGCC.qbs @@ -11,11 +11,11 @@ CppModule { property stringList transitiveSOs property string toolchainPrefix - property string toolchainInstallPath + property path toolchainInstallPath compilerName: 'g++' property string archiverName: 'ar' - property string sysroot: qbs.sysroot - property string platformPath + property path sysroot: qbs.sysroot + property path platformPath property string toolchainPathPrefix: { var path = '' @@ -30,7 +30,7 @@ CppModule { } compilerPath: toolchainPathPrefix + compilerName - property string archiverPath: { return toolchainPathPrefix + archiverName } + property path archiverPath: { return toolchainPathPrefix + archiverName } property bool createSymlinks: true diff --git a/share/qbs/modules/cpp/windows-mingw.qbs b/share/qbs/modules/cpp/windows-mingw.qbs index 81a7659fa..1c563478e 100644 --- a/share/qbs/modules/cpp/windows-mingw.qbs +++ b/share/qbs/modules/cpp/windows-mingw.qbs @@ -16,7 +16,7 @@ GenericGCC { compilerDefines: ['__GNUC__', 'WIN32', '_WIN32'] property string windresName: 'windres' - property string windresPath: { return toolchainPathPrefix + windresName } + property path windresPath: { return toolchainPathPrefix + windresName } setupBuildEnvironment: { var v = new ModUtils.EnvironmentVariable("PATH", ";", true); diff --git a/share/qbs/modules/cpp/windows-msvc.qbs b/share/qbs/modules/cpp/windows-msvc.qbs index ff34148a5..effe15a04 100644 --- a/share/qbs/modules/cpp/windows-msvc.qbs +++ b/share/qbs/modules/cpp/windows-msvc.qbs @@ -19,8 +19,8 @@ CppModule { compilerName: "cl.exe" property bool generateManifestFiles: true - property string toolchainInstallPath - property string windowsSDKPath + property path toolchainInstallPath + property path windowsSDKPath property string architecture: qbs.architecture || "x86" staticLibraryPrefix: "" dynamicLibraryPrefix: "" |