aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/wil
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/wil
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/wil')
-rw-r--r--vcpkg/ports/wil/portfile.cmake30
-rw-r--r--vcpkg/ports/wil/vcpkg.json17
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/wil/portfile.cmake b/vcpkg/ports/wil/portfile.cmake
new file mode 100644
index 0000000..4d424df
--- /dev/null
+++ b/vcpkg/ports/wil/portfile.cmake
@@ -0,0 +1,30 @@
+#header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Microsoft/wil
+ REF "v${VERSION}"
+ SHA512 9691939bfa1229ad1890e72bea801df60ee46f307591aee816ed771d225ed62b4caaf5d2ecefcbf200a41ee68f53823ec43a97c3a2d1a632aa3fcf18b35e4996
+ HEAD_REF master
+)
+
+# WIL is header-only, so we don't need to build it in both modes
+set(VCPKG_BUILD_TYPE release)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DWIL_BUILD_TESTS=OFF
+ -DWIL_BUILD_PACKAGING=ON
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/WIL)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+# Install natvis files
+file(INSTALL "${SOURCE_PATH}/natvis/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/natvis")
+
+# Install copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") \ No newline at end of file
diff --git a/vcpkg/ports/wil/vcpkg.json b/vcpkg/ports/wil/vcpkg.json
new file mode 100644
index 0000000..311f3b8
--- /dev/null
+++ b/vcpkg/ports/wil/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "wil",
+ "version": "1.0.250325.1",
+ "description": "The Windows Implementation Libraries (WIL) is a header-only C++ library created to make life easier for developers on Windows through readable type-safe C++ interfaces for common Windows coding patterns.",
+ "homepage": "https://github.com/microsoft/wil",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}