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: "Карелин Павел" <hka...@yandex.ru>
To: qbs@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

_______________________________________________
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs

Reply via email to