aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cwalk
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cwalk')
-rw-r--r--vcpkg/ports/cwalk/portfile.cmake22
-rw-r--r--vcpkg/ports/cwalk/vcpkg.json16
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/cwalk/portfile.cmake b/vcpkg/ports/cwalk/portfile.cmake
new file mode 100644
index 0000000..df713f1
--- /dev/null
+++ b/vcpkg/ports/cwalk/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO likle/cwalk
+ REF "v${VERSION}"
+ SHA512 d29c83bb350a5477e450cdb86b1edf7232296aed67680345a84fee967ff414d5c997ac313e38620b51cda21398cc5d19c8130fe999ecd6b0161e81b3566f5516
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DENABLE_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cwalk)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/cwalk/vcpkg.json b/vcpkg/ports/cwalk/vcpkg.json
new file mode 100644
index 0000000..8e34f60
--- /dev/null
+++ b/vcpkg/ports/cwalk/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "cwalk",
+ "version": "1.2.9",
+ "description": "Path library for C/C++. Cross-Platform for Windows, MacOS and Linux. Supports UNIX and Windows path styles on those platforms.",
+ "homepage": "https://likle.github.io/cwalk/",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}