My private vcpkg registry for ports that have not been published upstream.
-
ports
librocket- v1.3.0.0 (upstream)nomlib- WIP (v0.13.x)
-
templates
vcpkg-configuration.json.tmplvcpkg.json.tmpl
- see also
NOTE(JEFF): This note assumes manifest mode and should be done at the
top-level of the project with the vcpkg.json manifest.
# Package the installed dependencies in a zip archive at export.zip
## static library archives, .a|.dll.a
vcpkg export --output-dir=. --zip --output=x64-mingw-static --host-triplet=x64-mingw-static## dynamic (shared) libraries, .dll|.lib|.dylib
vcpkg export --output-dir=. --zip --output=x64-mingw-dynamic --host-triplet=x64-mingw-dynamic# specify the dependency input path (a dir) - existing vcpkg_installed
# dir with vcpkg deps
vcpkg export --zip --output-dir=. --host-triplet=x64-mingw-static --x-install-root=c:/temp/debug-win/vcpkg_installed# reuse
CMAKE_TOOLCHAIN_FILE=./x64-mingw-dynamic/vcpkg/scripts/buildsystems/vcpkg.cmakevcpkg edit librocket --vcpkg-root .# plain text output
vcpkg depend-info nomlib --x-overlay-ports=/home/jeff/Projects/vcpkg-ports.git/ports# Visual hierarchy of dependency tree for a port
vcpkg depend-info <port-name> --format=tree
#vcpkg depend-info nomlib --format=tree --x-overlay-ports=/home/jeff/Projects/vcpkg-ports.git/portsNOTE(JEFF): This feature is now available on Linux as of
2026-07-27-98d7cb0cf1 (ish).
vcpkg print-usage <port>NOTE(JEFF): This command is only applicable for when you are using vcpkg on the Windows platform.
Initialize env similar to what is setup for you when you use the developer console on Windows; this shortcut is available once you have installed the Visual Studio Build Tools.
# similar to vcvarsall.bat
vcpkg env# The directory path of the given overlay ports should be adjusted for your
# site
vcpkg remove <port> --x-overlay-ports=$HOME/Projects/vcpkg-ports.git/ports
vcpkg install <port> --x-overlay-ports=$HOME/Projects/vcpkg-ports.git/portsAfter any modifications made to a port manifest -- vcpkg.json -- one should
always validate the changes using the format-manifest command of vcpkg.
vcpkg format-manifest <port>
# vcpkg format-manifest ports/librocket/vcpkg.jsonThis is a common error message and vcpkg should always warn you about doing
this anytime the manifest file fails validation, such as when you are updating
the port version.
vcpkg --x-builtin-ports-root=./ports --x-builtin-registry-versions-dir=./versions x-add-version --all --verboseA version suffix distinguishing revisions to the packaging files. An integer.
Defaults to 0.
The port-version should be incremented whenever a new version of the port
is published that does not change the upstream source version. When the
upstream source version is changed, the version field should change and
the port-version should be reset to 0 (or removed).
See versioning for more details.
Add the following to your vcpkg-configuration.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg-configuration.schema.json",
"default-registry": {
"kind": "git",
"repository": "https://github.com/Microsoft/vcpkg",
"baseline": "xxx"
},
"registries": [
{
"kind": "git",
"repository": "https://github.com/i8degrees/vcpkg-ports",
"baseline": "e9c2cd727241dddac5bd568a6f82ae0f7692597f",
"packages": [ "librocket" ]
}
]
}