[Qbs] Generated header files used by multiple products

NIkolai Marchenko enmarantispam at gmail.com
Wed Feb 7 10:55:04 CET 2018


You can make a separate product generating those files and depend on it in
two others

On Wed, Feb 7, 2018 at 12:00 PM, Christian Gudrian <
christian.gudrian at aucos.de> wrote:

> Hello!
>
> In our project we are using a custom module to generate header files with
> classes that descend from QObject.
>
> If a single product depends on this generator module everything works as
> expected.  A second product, however, may not as well depend on the
> generator module, as Qbs complains about duplicate output artifacts.
> Without the explicit dependency to the generator module the second product
> compiles nonetheless (as the header files have already been generated).
> But now it's the linker that complains about missing symbols from the moc
> generated source files.
>
> How to share generated header files across products while pertaining moc
> awareness?
>
> Christian
>
> --
> Christian Gudrian
> AUCOS AG, Matthiashofstraße 47
> <https://maps.google.com/?q=Matthiashofstra%C3%9Fe+47&entry=gmail&source=g>–49,
> 52064 Aachen, Germany
> _______________________________________________
> 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/20180207/16863c98/attachment.html>


More information about the Qbs mailing list