Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a dependencies keyword argument to bindgen #11024

Merged
merged 3 commits into from Dec 10, 2022

Conversation

dcbaker
Copy link
Member

@dcbaker dcbaker commented Nov 10, 2022

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 #11062, but that PR should be merged first because it needs backport, while the rest of this doesn't.

@dcbaker dcbaker added the module:rust Specific to the Rust module label Nov 10, 2022
@codecov
Copy link

codecov bot commented Nov 10, 2022

Codecov Report

Merging #11024 (e9caa8b) into master (3a4aa10) will decrease coverage by 9.25%.
The diff coverage is n/a.

❗ 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%) ⬇️
scripts/test_loaded_modules.py 0.00% <0.00%> (-100.00%) ⬇️
scripts/clangtidy.py 0.00% <0.00%> (-93.34%) ⬇️
modules/cuda.py 0.00% <0.00%> (-72.64%) ⬇️
scripts/uninstall.py 0.00% <0.00%> (-71.88%) ⬇️
mconf.py 15.41% <0.00%> (-70.84%) ⬇️
templates/cstemplates.py 35.48% <0.00%> (-64.52%) ⬇️
scripts/coverage.py 0.00% <0.00%> (-64.36%) ⬇️
ast/introspection.py 15.25% <0.00%> (-63.56%) ⬇️
templates/javatemplates.py 36.66% <0.00%> (-63.34%) ⬇️
... 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.

@karolherbst
Copy link
Contributor

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.

@dcbaker dcbaker marked this pull request as ready for review November 16, 2022 21:52
@dcbaker dcbaker force-pushed the submit/bindgen-dependencies branch 2 times, most recently from 2a61c0b to 0d79ab6 Compare November 18, 2022 18:12
@jpakkane jpakkane merged commit dbb33aa into mesonbuild:master Dec 10, 2022
@dcbaker dcbaker deleted the submit/bindgen-dependencies branch December 11, 2022 04:43
PedroHLC pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Jan 30, 2023
This bumps the meson requierement to 1.0 because it requires
mesonbuild/meson#11024

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7688
Fixes: 20c90fe ("rusticl: added")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19778>
PedroHLC pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Jan 31, 2023
This bumps the meson requierement to 1.0 because it requires
mesonbuild/meson#11024

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7688
Fixes: 20c90fe ("rusticl: added")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19778>
(cherry picked from commit 4b841cf)

Conflicts:
	.gitlab-ci/image-tags.yml
PedroHLC pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Jan 31, 2023
This bumps the meson requierement to 1.0 because it requires
mesonbuild/meson#11024

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7688
Fixes: 20c90fe ("rusticl: added")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19778>
(cherry picked from commit 4b841cf)

Conflicts:
	.gitlab-ci/image-tags.yml

Stable:
    - Create a custom CI tag for 23.0, as we're lacking some patches
      necessary to use the same CI images as main, and I don't want to
      pull that many CI changes into the stable branch
PedroHLC pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Jan 31, 2023
This bumps the meson requierement to 1.0 because it requires
mesonbuild/meson#11024

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7688
Fixes: 20c90fe ("rusticl: added")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19778>
(cherry picked from commit 4b841cf)

Conflicts:
	.gitlab-ci/image-tags.yml

Stable:
    - Create a custom CI tag for 23.0, as we're lacking some patches
      necessary to use the same CI images as main, and I don't want to
      pull that many CI changes into the stable branch
PedroHLC pushed a commit to chaotic-cx/mesa-mirror that referenced this pull request Feb 2, 2023
This bumps the meson requierement to 1.0 because it requires
mesonbuild/meson#11024

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7688
Fixes: 20c90fe ("rusticl: added")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19778>
(cherry picked from commit 4b841cf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:rust Specific to the Rust module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants