aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/memorymodule
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/memorymodule
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/memorymodule')
-rw-r--r--vcpkg/ports/memorymodule/portfile.cmake43
-rw-r--r--vcpkg/ports/memorymodule/vcpkg.json22
2 files changed, 65 insertions, 0 deletions
diff --git a/vcpkg/ports/memorymodule/portfile.cmake b/vcpkg/ports/memorymodule/portfile.cmake
new file mode 100644
index 0000000..af5fade
--- /dev/null
+++ b/vcpkg/ports/memorymodule/portfile.cmake
@@ -0,0 +1,43 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO fancycode/MemoryModule
+ REF 5f83e41c3a3e7c6e8284a5c1afa5a38790809461
+ SHA512 6d42bd80dfeaf7bc662adafe7d6a7d7301eff5ea53bb59fce7e9c1a6ee22d31d2ab5696afc0a92c1501aa4161a60366418bfc3bed7ed2dcb6cae24243f4fa6d4
+ HEAD_REF master
+)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ unicode UNICODE
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+ OPTIONS
+ -DTESTSUITE=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_build(TARGET MemoryModule)
+
+file(INSTALL "${SOURCE_PATH}/MemoryModule.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+if(EXISTS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/MemoryModule.lib")
+ file(INSTALL
+ "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/MemoryModule.lib"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib"
+ )
+endif()
+
+if(EXISTS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/MemoryModule.lib")
+ file(INSTALL
+ "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/MemoryModule.lib"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/lib"
+ )
+endif()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/memorymodule/vcpkg.json b/vcpkg/ports/memorymodule/vcpkg.json
new file mode 100644
index 0000000..3d7c422
--- /dev/null
+++ b/vcpkg/ports/memorymodule/vcpkg.json
@@ -0,0 +1,22 @@
+{
+ "name": "memorymodule",
+ "version-date": "2019-12-31",
+ "port-version": 3,
+ "description": "Library to load a DLL from memory",
+ "homepage": "https://github.com/fancycode/MemoryModule",
+ "supports": "!linux & !osx & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ],
+ "default-features": [
+ "unicode"
+ ],
+ "features": {
+ "unicode": {
+ "description": "Compile with UNICODE support"
+ }
+ }
+}