On Tue, 14 May 2019 at 23:11, Christian Gagneraud <chg...@gmail.com> wrote: > > On Tue, 14 May 2019 at 22:51, Иван Комиссаров <abba...@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@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@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 _______________________________________________ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs