Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored Oct 11, 2024
1 parent 3467a94 commit 55ac60e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/l/libmem/port/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
add_rules("mode.debug", "mode.release")
set_languages("c++17")

add_requires("capstone", "keystone")
add_packages("capstone", "keystone")

target("libmem")
set_kind("$(kind)")
add_packages("capstone", "keystone")

add_includedirs("include")
add_includedirs(
Expand Down Expand Up @@ -35,12 +36,12 @@ target("libmem")
local prefix = path.join("src", is_plat("linux") and "linux" or "freebsd")
add_files(path.join(prefix, "ptrace", "*.c"))
add_files(path.join(prefix, "*.c"))

add_files(path.join(prefix, "ptrace", arch, "*.c"))

elseif is_plat("windows", "mingw") then
add_syslinks("user32", "psapi", "ntdll", "shell32", "ole32")
if is_plat("mingw") then
add_links("uuid")
add_syslinks("uuid")
end
add_files("internal/winutils/*.c")
add_files("src/win/*.c")
Expand Down

0 comments on commit 55ac60e

Please sign in to comment.