[QBS] Not applying moc to certain parts of the project

Sergey Semushin predelnik at gmail.com
Sat Apr 18 12:40:12 CEST 2015


Yeah that's reasonable. However I noticed that QtMocScanner takes a lot of
time even after touching just single file, anyway I need to investigate it
more thoroughly and figure out why this happens. Anyway, thank you.

Best regards, Sergey Semushin

2015-04-18 13:19 GMT+03:00 Smirnov Vladimir <mapron at yandex.ru>:

> On 18.04.2015 18:00, qbs-request at qt-project.org wrote:
> > I noticed that scanning
> > for files in need of moc takes large amount of time
>
> cpp_scanner in QBS scans cpp and .h files for parsing include directives
> first of all.  As it does that, it also fetches Q_OBJECT and so tokens. I
> don't think that disabling it somehow by condition increase parsing
> dramatically.
>
> moc as is will be applied only to that files, where Q_OBJECT macro found.
>
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150418/525a74e7/attachment.html>


More information about the Qbs mailing list