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 13, 2024
1 parent 7bd5f1c commit 7974877
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/l/libmem/port/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ target("libmem")
set_kind("$(kind)")

if is_plat("windows") and is_kind("shared") then
add_rules("utils.symbols.export_all", {export_classes = true})
end
add_rules("utils.symbols.export_all", {export_classes = true, export_filter = function (symbol)
if symbol:find("libmem", 1, true) then
return true
end
end})
end
if is_kind("shared") then
add_defines("LM_EXPORT")
end

add_packages("capstone", "keystone")

Expand Down Expand Up @@ -54,5 +61,3 @@ target("libmem")
add_files("internal/winutils/*.c")
add_files("src/win/*.c")
end

add_defines("LM_EXPORT")

0 comments on commit 7974877

Please sign in to comment.