现在,vcpkg-sample-library已打包为端口,下一步是将其添加到 vcpkg 特选注册表。 请参阅将端口添加到 vcpkg 注册表。 有关详细信息,请参阅: 端口 维护人员指南 其他资源 培训 模块 利用GitHub Actions 发布到 GitHub Packages - Training 使用GitHub 包自动且安全地发布代码库或 Docker 映像。
vcpkg的buildtrees,packages和downloads都是缓存目录,在空间不够的时候可以删除,在github action中我们为了节约缓存空间也可以把这些文件夹剔除掉。 -name:Restore vcpkg and its artifacts.uses:actions/cache@v2id:vcpkg-cachewith:path:|${{ env.VCPKG_ROOT }}${{ github.workspace }}/build/vcpkg_installed!${...
执行vcpkg install [packages] 时会默认从GitHub下载源码包到downloads目录中,进行版本校验后再构建安装。但GitHub官网访问过慢,经常下载安装失败,考虑镜像加速。 内常用的镜像网站是https://hub.fastgit.org/,只要把url中的“github.com”替换为“hub.fastgit.org”即可,下载时可用:git clonehttps://hub.fastgit.or...
curl:x86-windows openssl:x64-windows * vcpkg-cmake:x64-windows * vcpkg-cmake-config:x64-windows * vcpkg-cmake-get-vars:x64-windows zlib:x86-windows Additional packages (*) need to be exported to complete this operation. Exporting package vcpkg-cmake:x64-windows... Exporting package vcpkg...
packages - 在不同的安装之间用于暂存的内部文件夹。 ports -用于描述每个库的目录、版本和下载位置的文件。如有需要,可添加自己的端口。 scripts - 由 vcpkg 使用的脚本(CMake、PowerShell)。 toolsrc - vcpkg 和相关组件的 C++ 源代码。 triplets - 包含每个受支持目标平台(如 x86-windows 或 x64-uwp)的设...
The following packages will be built and installed: jsoncpp[core]:x86-windows Starting package 1/1: jsoncpp:x86-windows Building package jsoncpp[core]:x86-windows... -- CURRENT_INSTALLED_DIR=H:/Repos/vcpkg/installed/x86-windows -- DOWNLOADS=H:/Repos/vcpkg/downloads ...
每個埠必須在資料夾中${CURRENT_PACKAGES_DIR}/share/${PORT}提供名為copyright的檔案。 如果套件的授權內容可在其原始程式檔內使用,則應該透過呼叫vcpkg_install_copyright()來建立此檔案。vcpkg_install_copyright如有必要,也會配套多個著作權檔案。 cmake ...
file(INSTALL ${SOURCE_PATH}/FindBaumer.cmake DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") # relocate the directory for cmake to find FindXXX.cmake file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") ...
39 new portswere added to the open-source registry. If you are unfamiliar with the term ‘port’, they are packages that are built from source and are typically C/C++ libraries. 957 updateswere made to existing ports. As always, we validate each change...
The following packages will be built and installed: * brotli[core]:x86-windows -> 1.0.9#4 * bzip2[core,tool]:x86-windows -> 1.0.8#3 * freetype[brotli,bzip2,core,png,zlib]:x86-windows -> 2.12.1#3 * libpng[core]:x86-windows -> 1.6.39 msdfgen[core]:x86-windows -> 1.9.2...