[QBS] Why we need add qtbase for the default path?

Loaden loaden at gmail.com
Tue Apr 10 13:22:20 CEST 2012


Thanks!
For now I just hard code to fix it as temp solution.
Maybe some one want to know.

diff --git a/share/qbs/modules/qt/QtModule.qbs
> b/share/qbs/modules/qt/QtModule.qbs
> index 20f0c47..67a8d4a 100644
> --- a/share/qbs/modules/qt/QtModule.qbs
> +++ b/share/qbs/modules/qt/QtModule.qbs
> @@ -13,7 +13,7 @@ Module {
>      property string incPath: qtcore.path ?
> FileInfo.joinPaths(qtcore.path, repository, "include") : qtcore.incPath
>      property string libPath: qtcore.libPath
>      property string qtLibInfix: qtcore.libInfix
> -    property string repository: qtcore.versionMajor === 5 ? 'qtbase' :
> undefined
> +    property string repository: qtcore.versionMajor === 5 ? undefined :
> undefined
>      property string internalQtModuleName: 'Qt' + qtModuleName
>      property string internalLibraryName:
> QtFunctions.getLibraryName(internalQtModuleName + qtLibInfix,
> qtcore.versionMajor, qbs.targetOS, cpp.debugInformation)
>
> diff --git a/share/qbs/modules/qt/core/qtcore.qbs
> b/share/qbs/modules/qt/core/qtcore.qbs
> index 92d06f6..cb5deb6 100644
> --- a/share/qbs/modules/qt/core/qtcore.qbs
> +++ b/share/qbs/modules/qt/core/qtcore.qbs
> @@ -10,7 +10,7 @@ Module {
>      property string namespace
>      property string libInfix: ""
>      property string path
> -    property string repository: versionMajor === 5 ? "qtbase" : undefined
> +    property string repository: versionMajor === 5 ? undefined : undefined
>      property string binPath: path ? FileInfo.joinPaths(path, repository,
> "bin") : undefined
>      property string incPath: path ? FileInfo.joinPaths(path, repository,
> "include") : undefined
>      property string libPath: path ? FileInfo.joinPaths(path, repository,
> "lib") : undefined
> @@ -19,7 +19,7 @@ Module {
>      property var versionMajor: versionParts[0]
>      property var versionMinor: versionParts[1]
>      property var versionPatch: versionParts[2]
> -    property string mkspecsPath: path ? FileInfo.joinPaths(path,
> 'qtbase',  "mkspecs") : undefined
> +    property string mkspecsPath: path ? FileInfo.joinPaths(path,
> undefined,  "mkspecs") : undefined
>      property string generatedFilesDir: 'GeneratedFiles/' + product.name// ### TODO: changing this property does not change the path in the rule
> ATM.
>      property string libraryInfix: cpp.debugInformation ? 'd' : ''
>      cpp.defines: {



2012/4/10 Joerg Bornemann <joerg.bornemann at nokia.com>

> On 10/04/2012 11:48, ext Loaden wrote:
>
>> The issue still exist.
>>
>
> Yes. You might want to watch https://bugreports.qt-project.**
> org/browse/QBS-102 <https://bugreports.qt-project.org/browse/QBS-102> to
> get notified about changes.
>
>
> BR,
>
> Jörg
>



-- 
Regards
Loaden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20120410/7ea321d6/attachment.html>


More information about the Qbs mailing list