Repository navigation
docs: a build plugin names the libraries its modules import in [dependencies] (mcpp 2026.10.11.1) - #520
Merged
Conversation
…dencies] (mcpp 2026.10.11.1) From mcpp 2026.10.11.1 (mcpp-community/mcpp#797) a build plugin's [dependencies] are compiled with it for the build programs that use it, and reexport = true hands one on to their build.mcpp. A plugin built on mcpp.plugins' plugins-core names it there. The [build-dependencies] entry with host-module = true, the spelling before that release, is read as a dependency as well, reported as deprecated, and no longer read from mcpp 2027.1. A [build-dependencies] edge gives the build program the library without host-module = true.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mcpp 2026.10.11.1 (mcpp-community/mcpp#797, #798, #800) compiles a build plugin's
[dependencies]with it, in the build programs' graph.What changes for a plugin author
mcpp.plugins'plugins-corenames it in[dependencies].reexport = truepasses the library on to the consumers'build.mcpp.[build-dependencies]withhost-module = trueis still read as a dependency of the plugin, reported as deprecated (plugin-imports-from-build-dependencies), and no longer read from mcpp 2027.1.[build-dependencies]edge gives the build program the package's library withouthost-module = true. The explicit key stays valid.Updated:
docs/package-types.md§I and its zh counterpart.Not changed: toml++.
marzer.tomlpluspluskeeps its Form A descriptor and relative include. mcpp 2026.10.11.1 would accept<toml++/toml.hpp>and a Form Blibkey, but releases before it compile a build program's module without the package's include directories, and the index floor does not move for one package. Measured with 2026.10.11.1: the package in both tables, imported by the target and bybuild.mcpp, builds and runs.