vcpkg create
github template
#17837
Replies: 3 comments
-
For me, It's good to extend current template, however, I'm not sure if it's necessary to create a separate portfile_github.in.cmake, since they have many same functions such as vcpkg_configure_cmake, vcpkg_install_cmake, vcpkg_fixup_cmake_targets, and handling copyright, and other common variables. |
Beta Was this translation helpful? Give feedback.
-
@PhoebeHui Thanks for your reply! I figured a github specific one would be better so we could use |
Beta Was this translation helpful? Give feedback.
-
If anyone have interest with this, please handle my PR #9430. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Right now, the
vcpkg create
command only creates a template if your using a direct .zip download link. There exists no template for a github portfile.Proposed solution
When the
vcpkg create
command is called, it will check if its a github.com url. If it is, instead of using thescripts/template/portfile.in.cmake
template, it will use a new file,scripts/template/portfile_github.in.cmake
which will contain a simple github portfile solution.Additional context
I posted this issue because I want to implement this myself. I wanted to get the input/suggestions of the Microsoft employees that maintain the repository before I go start working on it. Let me know if this is something worth working on.
Beta Was this translation helpful? Give feedback.
All reactions