[Interest] How to exclude files from lupdate in .pro?
Oleg Evseev
ev.mipt at gmail.com
Wed Dec 27 11:45:55 CET 2017
Nice, thanks a lot!
2017-12-27 13:36 GMT+03:00 alexander golks <alex at golks.de>:
> Am Wed, 27 Dec 2017 12:47:01 +0300
> schrieb Oleg Evseev <ev.mipt at gmail.com>:
>
> > Hi all,
> >
> > According to documentation in qt there is a workaround lupdate_only{...}
> -
> > conditional statement so the lupdate tool sees some file (for example
> .qml
> > files) but the C++ compiler ignores them.
> >
> > I wonder if there is a opposite workaround some conditional statement (or
> > something else) so the lupdate tool doesn't check some file/dirs, but the
> > C++ compiler still see them.
> >
> > For example scanning
> > INCLUDEPATH += "c:/boost_1_64_0/"
> >
> > by lupdate takes too much time.
> >
> > ---
> > With regards, Oleg.
>
> hi,
>
> we use TR_EXCLUDE to exclude qt headers and sources:
>
> lupdate_only{
> message("excluding $(QTDIR)/../Src/qtbase/*")
> TR_EXCLUDE += $(QTDIR)/../Src/qtbase/*
> message("excluding $(QTDIR)/include/*")
> TR_EXCLUDE += $(QTDIR)/include/*
> }
>
> alex
>
> --
> /*
> * printk("starfire_translate: Are you kidding me?\n");
> * linux-2.6.19/arch/sparc64/kernel/starfire.c
> */
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171227/aece0204/attachment.html>
More information about the Interest
mailing list