[Qbs] How to explicitly prohibit the use of qt-framework in project

Карелин Павел hkarel at yandex.ru
Tue Oct 20 21:48:55 CEST 2020



20.10.2020 09:04, Richard Weickelt пишет:
> Hi,
>
> you may try
>
>      qbs build ...  moduleProviders.Qt.qmakeFilePaths:/invalid
Yes, it works. But is it possible to do such a disconnection from the 
project itself?
The fact is that I am developing a demo project, and I would like some 
products to be disabled when building, if the user does not have 
qt-framework installed.

>
> to configure a non-existing location. You can also set this property in your profile if you like.
>
>
> -----Original Message-----
> From: "Карелин Павел" <hkarel at yandex.ru>
> To: qbs at qt-project.org
> Sent: Mon, 19 Oct 2020 20:26
> Subject: [Qbs] How to explicitly prohibit the use of qt-framework in project
>
> Hi !
>
> I need to check the build of the project for the case where qt-framework
> is not installed
> For this I have created the following construction:
>
> Depends { name: "Qt"; submodules: ["core", "network"]; required: false}
> condition: Qt.core.present
>
> Then in QtC I created a profile without qt-framework, and I tried to
> build the project. ... and the project was built.
> It turned out that QBS found qt-framework on my system (Linux Kubuntu).
>
> Question: to make the QBS strictly follow the the build profile, and
> does not look for qt-framework where they are not asked for it?
>
> I use QBS 1.16
>
> --
> BR, Pavel Karelin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20201020/e4d70e12/attachment.html>


More information about the Qbs mailing list