Update polyhook2 to 2024.8.1 (#5567)

* Update polyhook2 to 2024.8.1

* Update polyhook2 to 2024.8.1
pull/5719/head
killcerr 5 months ago committed by GitHub
parent 9d4b631e48
commit 1784650664
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      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")

Loading…
Cancel
Save