Skip to content
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

Documentation: Simple switching between different vcpkg instances, or tags of your custom library #3021

Open
Fleischner opened this issue Mar 13, 2018 · 0 comments
Labels
category:documentation To resolve the issue, documentation will need to be updated

Comments

@Fleischner
Copy link

We use a very simple system to tag our vcpkg custom build library:

  • As vcpkg internally generates build artifacts with global paths we use always the same global vcpkg 'work directory' and switch to different library versions by using windows hard links.
  • Tagging is done by coping the whole vcpkg directory (either with complete build-tree, or cleaned up to save space)

As a sample, we use the following directory structure for our vcpkg:
c:\code\vcpkg <- this is the work directory and a hard-link to one of the following directories:
c:\code\vcpkg_trunk <- current development branch
c:\code\vcpkg_v201703 <- tagged library with time stamp
c:\code\vcpkg_...

Each tagged library version has an batch file to set it as active library:

LinkAsActive.bat:
#Uncomment and edit the following line as needed.
#mklink /J c:\code\vcpkg c:\code\vcpkg_...


Missing vcpkg features:

  • Easy way to restore build-tree with all source directories (source code is needed for debugging)
@NancyLi1013 NancyLi1013 added the category:documentation To resolve the issue, documentation will need to be updated label Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:documentation To resolve the issue, documentation will need to be updated
Projects
None yet
Development

No branches or pull requests

2 participants