[Qbs] Donation to QBS developers/maintainers/contributes
Christian Gagneraud
chgans at gmail.com
Tue May 14 13:35:49 CEST 2019
On Tue, 14 May 2019 at 23:11, Christian Gagneraud <chgans at gmail.com> wrote:
>
> On Tue, 14 May 2019 at 22:51, Иван Комиссаров <abbapoh at gmail.com> wrote:
> >
> > I wonder how hard is to implement pure c++ "declarative" library. Afaik, qtdeclarative originally used v8 JavaScript engine which got replaced with Qt-ish engine to avoid conversions to/from Qt types. Maybe, it's possible to go the opposite direction and remove Qt dependency in the first place?
> > Except for GUI and script module, I don't think there's a lot of Qt stuff.
>
> chgans at chgans-pc:~/Projects/qt-creator/src/shared/qbs$ find src/ -name
> '*.[hc]*' | xargs sed -ne 's, *# *include *<\(Q[^/>.]*\)[/>].*$,\1,gp'
> | sort | uniq -c | sort -nr
> 673 QtCore
> 76 QtScript
> 7 QtGui
> 6 QtWidgets
> 5 QtNetwork
> 1 QtXml
The above is the number of #include in all cpp and h files, per Qt
module. As you can see dependency on QtCore is quite heavy.
And here is the number of cpp/h files using QtScript, per directory:
chgans at chgans-pc:~/Projects/qt-creator/src/shared/qbs$ git grep -l
QtScript src/ | egrep '.(cpp|h)' | xargs dirname | sort | uniq -c |
sort -nr
17 src/lib/corelib/buildgraph
14 src/lib/corelib/jsextensions
12 src/lib/corelib/language
3 src/lib/corelib/tools
Ideally you would like to see only jsextensions and language
Chris
More information about the Qbs
mailing list