Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
luadebug authored Oct 6, 2024
1 parent 5ac6151 commit c52b158
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/l/libmem/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package("libmem")

set_homepage("https://github.com/rdbo/libmem")
set_description("Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)")
set_license("AGPL-3.0-only")
set_license("AGPL-3.0")

add_urls("https://github.com/rdbo/libmem.git", {submodules = true})
add_versions("5.0.2", "f55856f8174664c3e6b2d6f543f39cc4427c3840")
add_versions("5.0.2", "99adea3e86bd3b83985dce9076adda16968646ebd9d9316c9f57e6854aeeab9c")
add_deps("cmake")

-- Installation instructions
on_install(function (package)
Expand Down Expand Up @@ -142,7 +143,8 @@ package("libmem")
add_deps("libmem")
end
]])

table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
-- Use xmake to build and install libmem
import("package.tools.xmake").install(package, configs)
end)
end)

0 comments on commit c52b158

Please sign in to comment.