rib / gputop

A GPU profiling tool
160 stars 37 forks source link

meson: fix race condition when building #192

Closed 1ace closed 6 years ago

1ace commented 6 years ago

declare_dependency()'s sources field lists "sources to add to targets (or generated header files that should be built before sources including them are built)".

We don't want to add source files, as they'll fail to link in other compilation units, so we need to just extract the headers and give that list to the dep's sources.

djdeath commented 6 years ago

Pushed a similar fix I had locally. Thanks a lot for tracking this.