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/mio | |
Diffstat (limited to 'vcpkg/ports/mio')
| -rw-r--r-- | vcpkg/ports/mio/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/mio/vcpkg.json | 17 |
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/mio/portfile.cmake b/vcpkg/ports/mio/portfile.cmake new file mode 100644 index 0000000..a835b20 --- /dev/null +++ b/vcpkg/ports/mio/portfile.cmake @@ -0,0 +1,23 @@ +# header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mandreyel/mio
+ REF 8b6b7d878c89e81614d05edca7936de41ccdd2da + SHA512 444131d4839f2244dd88722f5bfad2cfa47336e2a4405518a2ff8f0d80f2755321d7d627f8d5b890864a5dc3f3f810a1c7dd6588ff3e9039a6ef7d010e0f2f06 + HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -Dmio.tests=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/mio)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+# Handle copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/mio/vcpkg.json b/vcpkg/ports/mio/vcpkg.json new file mode 100644 index 0000000..5d991a1 --- /dev/null +++ b/vcpkg/ports/mio/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "mio", + "version-date": "2023-03-03", + "description": "Cross-platform header-only C++11 library for memory mapped file IO.", + "homepage": "https://github.com/mandreyel/mio", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |