From 7a2bb4bd74499e60b0cd40b2872209c0a04b65da Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 8 Jul 2024 12:16:42 +0800 Subject: [PATCH] Update xmake.lua --- packages/m/macdylibbundler/xmake.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/m/macdylibbundler/xmake.lua b/packages/m/macdylibbundler/xmake.lua index ef0d16bd9f4..8066137c3eb 100644 --- a/packages/m/macdylibbundler/xmake.lua +++ b/packages/m/macdylibbundler/xmake.lua @@ -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) @@ -19,4 +26,4 @@ package("macdylibbundler") collectSubDependencies(); } ]]}, {configs = {languages = "c++11"}, includes = "DylibBundler.h"})) - end) \ No newline at end of file + end)