-
Notifications
You must be signed in to change notification settings - Fork 33
vcpkg notes
mohammedzakikochargi edited this page Mar 15, 2023
·
16 revisions
- Open vcpkg/ports/<package_name>/
- . update the vcpkg_from_github() function in portfile.cmake file
- Update the REPO Name with the target 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 vcpkg_from_github() function in portfile.cmake 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.
- Also delete buildtrees, downloads, packages and installed folders in ApraPipes/vcpkg/ .
- If Above point 8 does not work try to delete archives in C:\Users\developer\AppData\Local\vcpkg\
References: https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/