aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sproto/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/sproto/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/sproto/portfile.cmake')
-rw-r--r--vcpkg/ports/sproto/portfile.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/sproto/portfile.cmake b/vcpkg/ports/sproto/portfile.cmake
new file mode 100644
index 0000000..10b02ae
--- /dev/null
+++ b/vcpkg/ports/sproto/portfile.cmake
@@ -0,0 +1,28 @@
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cloudwu/sproto
+ REF 63df1ad8be4a7b295d389afaca7019e86f70d39c
+ SHA512 5613a04e6197b6fa00828f457aeee0270a7f4d300df609d62e405123f3623516c5761bd2c6b0b8e21be12aa30ca3288ae6307121bf8461535ad8c3efe9a750a2
+ HEAD_REF master
+ PATCHES add-symbol-exports.patch
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/sproto-config.cmake.in" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_build()
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "share/unofficial-sproto" PACKAGE_NAME "unofficial-sproto")