-
Notifications
You must be signed in to change notification settings - Fork 33
vcpkg notes
mohammedzakikochargi edited this page Mar 15, 2023
·
16 revisions
Upgrade vcpkg port to use thirdparty library.
- Open vcpkg/ports/<package_name>/ .
- update the vcpkg_from_github() function in portfile.cmake file .
- In the function update the REPO Name required repo (ex: Apra-Labs/openh264) .
- Update REF to the required commit to extract the source code .
- calcaulate sha512 value for the above commit .
- changes the HEAD_REF to the target branch name of given repo .
- Update the version-date and port version in vcpkg/ports/<package_name>/vcpkg.json file.
- Update the baseline and port version in vcpkg/version/baseline.json file .
- commit the following vcpkg code.(Needs to be done)
- Now generate git-tree hash using the command: git rev-parse HEAD:ports/<package_name>
- Update git-tree with above generated hash, version-date and port-version in vcpkg/versions//package_name.json file
- commit and push the code the vcpkg code .
- Update Aprapipes/base/vcpkg.json file: Change the builtin-baseline with the latest commit ID of vcpkg, also change the vcpkg submodule point to the latest commit.
References: https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/