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 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 70 QtCore/qstring.h 67 QtCore/qstringlist.h 54 QtCore/qdir.h 40 QtCore/qfileinfo.h 39 QtCore/qvariant.h 37 QtCore/qhash.h 30 QtCore/qprocess.h 28 QtCore/qshareddata.h 28 QtCore/qobject.h 26 QtScript/qscriptvalue.h 25 QtCore/qlist.h 25 QtCore/qcoreapplication.h 24 QtCore/qfile.h 20 QtScript/qscriptengine.h 20 QtCore/qglobal.h 18 QtCore/qmap.h 17 QtCore/qdebug.h 14 QtCore/qbytearray.h 13 QtCore/qtimer.h 12 QtCore/qtextstream.h 11 QtCore/qregexp.h 11 QtCore/qdiriterator.h 10 QtScript/qscriptable.h 8 QtCore/qt_windows.h 7 QtCore/quuid.h 7 QtCore/qdatastream.h 6 QtCore/qsettings.h 5 QtScript/qscriptvalueiterator.h 5 QtScript/qscriptclass.h 5 QtCore/qtemporaryfile.h 4 QtScript/qscriptcontext.h 4 QtCore/qthread.h 4 QtCore/qloggingcategory.h 4 QtCore/qcryptographichash.h 3 QtCore/qmetatype.h 3 QtCore/qjsonobject.h 3 QtCore/qjsondocument.h 3 QtCore/qflags.h 3 QtCore/qdatetime.h 2 QtScript/qscriptstring.h 2 QtScript/qscriptprogram.h 2 QtScript/qscriptclasspropertyiterator.h 2 QtNetwork/qlocalsocket.h 2 QtGui/qtextcursor.h 2 QtCore/qxmlstream.h 2 QtCore/qvarlengtharray.h 2 QtCore/qlibrary.h 2 QtCore/qjsonarray.h 2 QtCore/qeventloop.h 2 QtCore/qelapsedtimer.h 2 QtCore/qabstractitemmodel.h 1 QtXml/qdom.h 1 QtWidgets/qmessagebox.h 1 QtWidgets/qmenu.h 1 QtWidgets/qmenubar.h 1 QtWidgets/qmainwindow.h 1 QtWidgets/qapplication.h 1 QtWidgets/qaction.h 1 QtNetwork/qsslcertificate.h 1 QtNetwork/qsslcertificateextension.h 1 QtNetwork/qlocalserver.h 1 QtGui/qtextobject.h 1 QtGui/qtextdocument.h 1 QtGui/qkeysequence.h 1 QtGui/qevent.h 1 QtGui/qbrush.h 1 QtCore/qvector.h 1 QtCore/qurl.h 1 QtCore/qtextcodec.h 1 QtCore/qtemporarydir.h 1 QtCore/qregularexpression.h 1 QtCore/qpoint.h 1 QtCore/qpair.h 1 QtCore/qnumeric.h 1 QtCore/qlockfile.h 1 QtCore/qiodevice.h 1 QtCore/qendian.h 1 QtCore/qcommandlineparser.h 1 QtCore/qcommandlineoption.h 1 QtCore/qbytearraymatcher.h 1 QtCore/qbytearraylist.h 1 QtCore/private/qcore_mac_p.h chgans@chgans-pc:~/Projects/qt-creator/src/shared/qbs$ find src/ -name '*.[hc]*' | wc -l 482 Chris _______________________________________________ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs