Vcpkg port for msdf-atlas-gen? #66
DanielWeiner
started this conversation in
General
Replies: 2 comments
-
|
Would someone be able to make a PR with this into vcpkg repository? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have also written a custom port for msdf-atlas-gen. My reason for not making a PR to microsoft/vcpkg is that 1.3.0 is not formally released yet, and doesn't have a release tag. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm working on a project that uses vcpkg for dependency management and I thought it would be nice if this repo were to be made into a vcpkg port.
My solution in the meantime was to use overlay ports and make a custom portfile and vcpkg.json to be consumed by vcpkg.
I'll share my solution here because it could serve as a general idea of how the port could look.
My
portfile.cmake:vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Chlumsky/msdf-atlas-gen REF f6a1bc9f76cdaee40a4392e4b4c151cdc959bbb9 SHA512 d992258037d113fd3f44b1f5b6511993900b9572c3701aade1ad9af0e9bd7a7939f77f0c7e8a730111eaacbdd5425d5e241ad3f52129bf6639a0b128db895781 HEAD_REF master ) vcpkg_cmake_configure( SOURCE_PATH ${SOURCE_PATH} OPTIONS -DMSDF_ATLAS_BUILD_STANDALONE=OFF -DMSDF_ATLAS_NO_ARTERY_FONT=ON -DMSDF_ATLAS_MSDFGEN_EXTERNAL=ON -DMSDF_ATLAS_INSTALL=ON ) vcpkg_cmake_install() vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake) file( INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright ) file( COPY "${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}" DESTINATION "${CURRENT_PACKAGES_DIR}/share" ) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")My
vcpkg.json:{ "name": "msdf-atlas-gen", "version": "1.3.0", "description": "Multi-channel signed distance field atlas generator", "homepage": "https://github.com/Chlumsky/msdf-atlas-gen", "license": "MIT", "dependencies": [ "vcpkg-cmake-config", "vcpkg-cmake", "freetype", "tinyxml2", "libpng" ], "default-features": [ "geometry-preprocessing" ], "features": { "geometry-preprocessing": { "description": "Preprocessing of non-compliant vector geometry via the Skia library", "dependencies": [ { "name": "skia", "default-features": false } ] } } }Note that the above
vcpkg.jsonwas copy-pasted from the one at the root of this repo, with the additionalvcpkg-cmakeandvcpkg-cmake-configdependencies to make the portfile work.Beta Was this translation helpful? Give feedback.
All reactions