-
Notifications
You must be signed in to change notification settings - Fork 22
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
Supporting manifest mode #41
Comments
An example for a very simple approach can be seen here: GiGainfosystems@ccdf745 Again, I do not know if that is a good approach, but it seems to work for the small examples that I've been trying. |
I don't know much about vcpkg's manifest mode, and haven't used it before, but I just read the online docs for it and I think I understand what you are trying to do. I think it helps to differentiate the purpose and function of the It sounds like the mode of operation you are using is to do the Regarding |
You are correct. I haven't used I have also just noticed that |
I just did a quick experiment with vcpkg manifest mode running:
and that seems to works fine without a need for this crate nor |
From a conversation over on Of course, manifest mode is very important for this as well :) |
Just FYI I still have an eye on this but I'm currently enjoying my holidays so it'll take a bit until I'll respond more thoroughly 👍 |
Sorry for taking a while to come back to this. Do I understand correctly that these flags would have to be set for each individual library/dependency? If that is the case then I don't think that this crate or |
You should only need to set However, this crate provides integration with packages that don't provide .pc files. I think it could also be useful for a crate to mediate knowledge of a vcpkg instance for other packages; for example, would it be possible to automatically add the |
Hey everyone 👋
I was looking into vcpkg and how it could work with cargo and Rust and found this crate. I like how easily the integration works with the
build.rs
file, but since I would like to use the "version" feature of vcpkg. Yet versions are only supported in the manifest mode in which dependencies are read from the manifest file and then being installed in the project directory.I had a look at the code and noticed that, to support manifest mode, the paths like e.g.
status_path
,lib_path
,bin_path
etc. need to be changed. Hardcoding a different root directory seemed to easily allow me to use this crate even in manifest mode.Now I would like to discuss how to go about this. In manifest mode, a
vcpkg.json
file exists in the root of the Rust project. Would it make sense to check the existence of such a file and then automatically make the adjustments to the paths? Or should the user set an environment variable to let the crate now that it should look for packages in the project directory first? Or maybe it should always check the project directory first?I'm hoping that we can make this crate even better! If we find a valid approach I can give it a go to implement it myself and then create a pull request.
Best regards,
Björn
The text was updated successfully, but these errors were encountered: