diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/sokol | |
Diffstat (limited to 'vcpkg/ports/sokol')
| -rw-r--r-- | vcpkg/ports/sokol/portfile.cmake | 17 | ||||
| -rw-r--r-- | vcpkg/ports/sokol/vcpkg.json | 7 |
2 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/sokol/portfile.cmake b/vcpkg/ports/sokol/portfile.cmake new file mode 100644 index 0000000..be80a3a --- /dev/null +++ b/vcpkg/ports/sokol/portfile.cmake @@ -0,0 +1,17 @@ +# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO floooh/sokol
+ REF d98c8b92c25070f13d0491f5fade1d9d2ca885ad
+ SHA512 bb49dc3da366e70c7b6b16ebd490f9b2c88c496b278f1b9651321b3aab0977db92707d3955c2cb2654d8032647429ac90aa585de36644380112d988eac877cd0
+ HEAD_REF master
+)
+
+file(GLOB SOKOL_INCLUDE_FILES "${SOURCE_PATH}/*.h")
+file(COPY ${SOKOL_INCLUDE_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+file(GLOB SOKOL_UTIL_INCLUDE_FILES "${SOURCE_PATH}/util/*.h")
+file(COPY ${SOKOL_UTIL_INCLUDE_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/util")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/sokol/vcpkg.json b/vcpkg/ports/sokol/vcpkg.json new file mode 100644 index 0000000..2394bb6 --- /dev/null +++ b/vcpkg/ports/sokol/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "sokol", + "version-date": "2023-10-07", + "description": "Minimal cross-platform standalone C headers", + "homepage": "https://github.com/floooh/sokol", + "license": "Zlib" +} |