forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[install_rules] Allow for stanzas to install files in different packa…
…ges. In some cases, it is convenient for stanzas to produce objects that will be installed under different packages. For example, in Coq we may want to install the costly native files in a `foo-native` package, or distributions such as Debian like to split packages in `-doc`, `-dev`, and `-dbg` variants. This PR modifies the code so this is possible. This code is cherry-picked from ocaml#4750 (which would be the first user of the feature), but I am submitting separately as I think the change deserves more discussion. For example, this implies that `Dune_file.stanza_package stanza` is not canonical anymore. Likely, a better modelling would be to introduce the notion of "sub-package". The code changes themselves don't make me super-happy, consider them a draft. If you folks are OK with the idea, I can improve it so the common case of one stanza installing files only for one package is better optimized. Signed-off-by: Emilio Jesus Gallego Arias <[email protected]>
- Loading branch information
Showing
1 changed file
with
48 additions
and
46 deletions.
There are no files selected for viewing
This file contains 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