[Qbs] Cpp application with external build command but working code model
Christian Kandeler
Christian.Kandeler at qt.io
Thu Nov 27 11:52:50 CET 2025
I think a patch introducing a property to the cpp module that conditionally disables all rules would be acceptable.
________________________________________
From: Qbs <qbs-bounces at qt-project.org> on behalf of Richard Weickelt <richard at weickelt.de>
Sent: Thursday, November 27, 2025 10:21 AM
To: qbs at qt-project.org
Subject: Re: [Qbs] Cpp application with external build command but working code model
On 11/27/25 09:32, Christian Kandeler via Qbs wrote:
> Why can't you use a different product type?
Because I also want to debug the executable in QtCreator and that requires
the product to be of type application.
I am working around the problem by doing what you suggest and adding a
second non-cpp product of type application which copies the .elf files from
the ESP build folder into Qbs' build folder. It also seems like
"application" must be the output of a rule and cannot be attached to source
artifacts via Group.
Another use-case would be post processing of ELF files produced by the
linker. In that case we don't want to use the linker output directly, but
still need the product type to be application. The limitation of the
2-product work-around is that one cannot easily re-use it as a single item
"Esp32Application".
_______________________________________________
Qbs mailing list
Qbs at qt-project.org
https://lists.qt-project.org/listinfo/qbs
More information about the Qbs
mailing list