[Qt-creator] [request] Share some classes of QBS project manager plugin.
Tobias Hunger
tobias.hunger at digia.com
Tue Jul 30 15:31:25 CEST 2013
On 30.07.2013 12:34, Denis Shienkov wrote:
> Hello QtCreator developers..
>
> Whether it is planned to make available (through QBSPROJECTMANAGER_EXPORT) some classes of qbsprojectmanager plug-in?
The usual approach is to keep things private till somebody needs them.
> For me interests access to classes qbsbuildconfiguration and qbsbuildconfigurationwidget. I would like to provide opportunity to insert into a page
> of "build settings" of the project a widget with the user-friendly display of used flags of an optimisations and so forth etc.
Optimization settings should in my opinion be handled by Qbs. In fact it
has settings in the cpp module for exactly that.
> I.e. something like this:
>
> http://postimg.org/image/p157151fl/
I do not think that is the right approach: Those flags are compiler
specific. Where do you get the options and their descriptions from (-Ox
is gcc specific, MSVC uses something different IIRC)? Hardcoding values
into creator makes no sense IMHO.
Having a UI to set the qbs optimization setting (along with the other
properties) is something I do want to see.
> PS: I have thoughts to create a certain plug-in for QtCreator for embedded MCU projects (like as Keil, IAR, CooCox, etc IDE's.)
> And for this specifics it is desirable to have the user-friendly set of a tabs with display of settings of the compiler, etc
> (because it is so accepted and it is habitual way for a embedded MCU's developers).
How those settings are applied depends a lot on the build system. I am
not sure it makes sense to put those into the build settings in the
first place.
Maybe you could define those optimization levels on the toolchains
directly and offer only a combobox to select between the optimizations a
tool chain offers? That still leaves the problem of making sure those
flags will take effect in the different build systems.
> Or, maybe, I am mistaken and exist other way to make it?
If this is something qbs specific, then you can always implement it as
part of the qbs plugin:-)
Best Regards,
Tobias
--
Tobias Hunger, Senior Software Engineer - Digia, Qt
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius
Sitz der Gesellschaft: Berlin. USt-IdNr: DE 286 306 868
Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list