Skip to content

Commit

Permalink
Update polyhook2 to 2024.8.1 (#5567)
Browse files Browse the repository at this point in the history
* Update polyhook2 to 2024.8.1

* Update polyhook2 to 2024.8.1
  • Loading branch information
killcerr authored Oct 25, 2024
1 parent 9d4b631 commit 1784650
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/p/polyhook2/xmake.lua
Original file line number Diff line number Diff line change
@@ -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"})

Expand All @@ -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")
Expand Down

0 comments on commit 1784650

Please sign in to comment.