Replies: 6 comments
-
I would say probably that the existing hack is, unfortunately, the best thing to do: {
"name": "myproject",
"version-string": "...",
"default-features": [ "default-features" ],
"features": [
{
"name": "default-features",
"dependencies": [
{
"name": "myproject",
"features": [ "client", "client-ext" ],
"platform": "x86 & windows & v141"
},
{
"name": "myproject",
"features": [ "server" ],
"platform": "!(x86 & windows & v141)"
}
]
},
{
"name": "client",
"description": "..."
},
{
"name": "client-ext",
"description": "..."
},
{
"name": "server",
"description": "..."
}
]
} this is how we solve it in control files, anyways. I know this sucks, but we haven't yet done the engineering work to fix it. |
Beta Was this translation helpful? Give feedback.
-
@strega-nil thanks - as long as it works, it's okay as a temporary solution, no worries :) However, my second question was/is: When I'm in a terminal (powershell) at |
Beta Was this translation helpful? Give feedback.
-
The triplet can be defined via the [ed. note: sorry that all of the flags are passed differently, I hope to work on this soon] |
Beta Was this translation helpful? Give feedback.
-
Thanks! I'm having problems with the VCPKG_PLATFORM_TOOLSET, though:
When I change from |
Beta Was this translation helpful? Give feedback.
-
You can't; adding new things to platform-expression will require changes to |
Beta Was this translation helpful? Give feedback.
-
@BillyONeal That's inconvenient for me as I differentiate on the VCPKG_PLATFORM_TOOLSET. Could this be added to platform-expressions, please? :) An alternative is to be able to specify the whole triplet. |
Beta Was this translation helpful? Give feedback.
-
When asking a question please also include where you looked for an answer (so we can update the documentation if needed).
I'm investigating the new manifest feature (@strega-nil?), and have the following use case:
My example project
myproject
has three features:client
client-ext
(depends on client) andserver
(depends on both client and client-ext). Default should beserver
which builds/installs all of the dependencies. However, for some configurations (custom triplets) like x86-windows-v141 only the client-ext feature (which means all dependencies for client and client-ext) should be built/installed.I could not understand from the documentation how the
vcpkg install
with avcpkg.json
file handles this scenario?Beta Was this translation helpful? Give feedback.
All reactions