Add a `dependencies` keyword argument to bindgen
Allows passing dependency objects to the rust.bindgen method. This is useful when the header you're generating bindings for includes system headers, and needs to pass include flags to clang from said dependencies. In addition we can create correct ordering for generated sources in an internal_dependency for the bindgen call
This includes https://github.com/mesonbuild/meson/pull/11062, but that PR should be merged first because it needs backport, while the rest of this doesn't.
Codecov Report
Merging #11024 (e9caa8b) into master (3a4aa10) will decrease coverage by
9.25%. The diff coverage isn/a.
:exclamation: Current head e9caa8b differs from pull request most recent head d49e6bc. Consider uploading reports for the commit d49e6bc to get more accurate results
@@ Coverage Diff @@
## master #11024 +/- ##
==========================================
- Coverage 68.58% 59.33% -9.26%
==========================================
Files 412 207 -205
Lines 87861 44941 -42920
Branches 20728 9288 -11440
==========================================
- Hits 60261 26664 -33597
+ Misses 23093 16049 -7044
+ Partials 4507 2228 -2279
| Impacted Files | Coverage Δ | |
|---|---|---|
| scripts/run_tool.py | 0.00% <0.00%> (-100.00%) |
:arrow_down: |
| scripts/test_loaded_modules.py | 0.00% <0.00%> (-100.00%) |
:arrow_down: |
| scripts/clangtidy.py | 0.00% <0.00%> (-93.34%) |
:arrow_down: |
| modules/cuda.py | 0.00% <0.00%> (-72.64%) |
:arrow_down: |
| scripts/uninstall.py | 0.00% <0.00%> (-71.88%) |
:arrow_down: |
| mconf.py | 15.41% <0.00%> (-70.84%) |
:arrow_down: |
| templates/cstemplates.py | 35.48% <0.00%> (-64.52%) |
:arrow_down: |
| scripts/coverage.py | 0.00% <0.00%> (-64.36%) |
:arrow_down: |
| ast/introspection.py | 15.25% <0.00%> (-63.56%) |
:arrow_down: |
| templates/javatemplates.py | 36.66% <0.00%> (-63.34%) |
:arrow_down: |
| ... and 298 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Turns out we actually need this one in mesa already as once valgrind is enabled, we have to pull in the dep to resolve build errors.