Re: [Qbs] Exporting Dependencies on generated files

2021-11-04 Thread Christian Kandeler

On 11/4/21 11:22, Björn Schäpers wrote:
we have a static library which uses Protobuf, thus generates the 
headers, and compiles the code directly into it.


Static Library {
  ...
  Export {
    Depends { name: "cpp" }
    Depends { name: "protobuf.cpp" }
    cpp.systemIncludePaths: [product.protobuf.cpp.outputDir]
  }
}

And some products which depend on that, but qbs does not order files 
of the dependent products which include the generated headers after 
the generation of these.


Is there a way to ideally make the files which include to depend on 
the header generation, or at least block all actions on the dependent 
product wait until the static library is build?


This should work if you include "hpp" in the type of the generating product.


Christian

___
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs


[Qbs] Exporting Dependencies on generated files

2021-11-04 Thread Björn Schäpers

Hi there,

we have a static library which uses Protobuf, thus generates the headers, and 
compiles the code directly into it.


Static Library {
  ...
  Export {
Depends { name: "cpp" }
Depends { name: "protobuf.cpp" }
cpp.systemIncludePaths: [product.protobuf.cpp.outputDir]
  }
}

And some products which depend on that, but qbs does not order files of the 
dependent products which include the generated headers after the generation of 
these.


Is there a way to ideally make the files which include to depend on the header 
generation, or at least block all actions on the dependent product wait until 
the static library is build?


If not, where would I have to look to implement stuff like that?

Kind Regards,
Björn.
___
Qbs mailing list
Qbs@qt-project.org
https://lists.qt-project.org/listinfo/qbs