Skip to content

Add option --minimal-dependencies  #19173

@autoantwort

Description

@autoantwort

Is your feature request related to a problem? Please describe.
When I install qtbase with a target triplet != host triplet, it also installs qtbase with all default features for the host system (in manifest and classic mode), but the host dependency states that only qtbase[core] is needed. So I build one hour host dependencies that I will never need.

Proposed solution
For host dependencies respect "default-features": false, for non host dependencies add an option --minimal-dependencies so that "default-features": false is even respected for the target triplet.

Describe alternatives you've considered
None

Additional context
For cross compiling it even breaks my build because some of the dependencies does not build on the host system.
You can workaround this issue by adding a dependency to every port that is installed for the host target and set "default-features": false, but this is very tedious.

Previous Discussion
#11602 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:vcpkg-featureThe issue is a new capability of the tool that doesn’t already exist and we haven’t committed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions