Allow only building python tools and/or only building C library and tools
Allow only building python tools and/or only building C library and tools
See mesons_options.txt
for the new options controlling this.
N.B. The diff will seem bigger on Gitlab. Try
git show --patienc --find-copies-hardere \
--ignore-all-space --color-moved-ws=ignore-all-space
to cut down the noise.
The biggest source of churn python and C tools now have separate subdirectories and
meson.build
files to make the new conditions easier. The alternative
would be spliting the file into two long if...endif
blocks.
I tested everything with native builds, ensuring that testing works with building each component in isolation as controlled by the new flags, and added CI to ensure nothing bitrots.
https://github.com/NixOS/nixpkgs/pull/88222 is an example of how I use these patches. There is still more to do there, but at least I build g-i itself in all the combinations I'll need to (what remains is "wrapper" packages that are of no interest to upstream).
Closes #337