Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 option --minimal-dependencies #19173

Closed
autoantwort opened this issue Jul 27, 2021 · 1 comment
Closed

Add option --minimal-dependencies #19173

autoantwort opened this issue Jul 27, 2021 · 1 comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Comments

@autoantwort
Copy link
Contributor

autoantwort commented Jul 27, 2021

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)

@JackBoosY JackBoosY added requires:discussion category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed labels Jul 28, 2021
@JackBoosY
Copy link
Contributor

@ras0219-msft what do you think about this?

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
Projects
None yet
Development

No branches or pull requests

4 participants