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

Smirnov Vladimir mapron at yandex.ru
Sat Apr 18 12:19:31 CEST 2015

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.

More information about the Qbs mailing list