Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 8, 2024
1 parent 1041327 commit 7a2bb4b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/m/macdylibbundler/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ package("macdylibbundler")
add_versions("1.0.5", "d48138fd6766c70097b702d179a657127f9aed3d083051c2d4fce145881a316e")

on_install("linux", "macosx", "android", function (package)
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
io.writefile([[
add_rules("mode.debug", "mode.release")
target("macdylibbundler")
set_kind("$(kind)")
set_languages("c++11")
add_files("src/*.cpp")
add_includedirs("src")
add_headerfiles("src/*.h")]], "xmake.lua")
import("package.tools.xmake").install(package)
end)

Expand All @@ -19,4 +26,4 @@ package("macdylibbundler")
collectSubDependencies();
}
]]}, {configs = {languages = "c++11"}, includes = "DylibBundler.h"}))
end)
end)

0 comments on commit 7a2bb4b

Please sign in to comment.