Skip to content

Commit

Permalink
add lighthook lib repo. (#5600)
Browse files Browse the repository at this point in the history
* add meet lib repo

* Update xmake.lua

* Only windows is supported for the time being

* remove mingw msys

* add lighthook lib repo.

---------

Co-authored-by: star9029 <[email protected]>
  • Loading branch information
cngege and star-hengxing authored Oct 29, 2024
1 parent 7f5ad31 commit cd07b1e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/l/lighthook/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package("lighthook")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/SamuelTulach/LightHook")
set_description("Single-header, minimalistic, cross-platform hook library written in pure C ")
set_license("MIT")

add_urls("https://github.com/SamuelTulach/LightHook/archive/refs/tags/$(version).tar.gz",
"https://github.com/SamuelTulach/LightHook.git")

add_versions("2", "fae5bf8a3ea3d06377c10bcad9b4b8f3c1158598c8d64aa12409abdb701b095b")

on_install("windows", function (package)
os.cp("Source/LightHook.h", package:installdir("include","lighthook"))
end)

on_test(function (package)
assert(package:has_cfuncs("CreateHook", {includes = {"lighthook/LightHook.h"}}))
end)

0 comments on commit cd07b1e

Please sign in to comment.