From 17846506643c83415a67802530f1acf66935b95b Mon Sep 17 00:00:00 2001 From: killcerr <93478098+killcerr@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:33:49 +0800 Subject: [PATCH] Update polyhook2 to 2024.8.1 (#5567) * Update polyhook2 to 2024.8.1 * Update polyhook2 to 2024.8.1 --- packages/p/polyhook2/xmake.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/p/polyhook2/xmake.lua b/packages/p/polyhook2/xmake.lua index ec15fbf1a94..949e705b352 100644 --- a/packages/p/polyhook2/xmake.lua +++ b/packages/p/polyhook2/xmake.lua @@ -1,11 +1,12 @@ package("polyhook2") set_homepage("https://github.com/stevemk14ebr/PolyHook_2_0") - set_description("C++17, x86/x64 Hooking Libary v2.0") + set_description("C++20, x86/x64 Hooking Libary v2.0") set_license("MIT") add_urls("https://github.com/stevemk14ebr/PolyHook_2_0.git") add_versions("2023.7.15", "0d4d90e35ecc8ead9940c23cd29e7d8952b1bcb6") + add_versions("2024.8.1", "19e7cec8cce4a0068f6db04b6d3680c078183002") add_configs("shared_deps", {description = "Use shared library for dependency", default = false, type = "boolean"}) @@ -16,7 +17,7 @@ package("polyhook2") table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) table.insert(configs, "-DPOLYHOOK_BUILD_SHARED_LIB=" .. (package:config("shared") and "ON" or "OFF")) if package:is_plat("windows") then - local static_runtime = package:config("vs_runtime"):startswith("MT") + local static_runtime = package:has_runtime("MT", "MTd") table.insert(configs, "-DPOLYHOOK_BUILD_STATIC_RUNTIME=" .. (static_runtime and "ON" or "OFF")) if not static_runtime then table.insert(configs, "-DPOLYHOOK_BUILD_SHARED_ASMTK=ON")