From a24a87d1ce5b6857568fb80d76a464ff50b19b5d Mon Sep 17 00:00:00 2001 From: benny WU Date: Sun, 7 Jul 2024 17:41:09 +0800 Subject: [PATCH] add macdylibbundler package --- packages/m/macdylibbundler/port/xmake.lua | 13 +++++++++++++ packages/m/macdylibbundler/xmake.lua | 23 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 packages/m/macdylibbundler/port/xmake.lua create mode 100644 packages/m/macdylibbundler/xmake.lua diff --git a/packages/m/macdylibbundler/port/xmake.lua b/packages/m/macdylibbundler/port/xmake.lua new file mode 100644 index 00000000000..df023053759 --- /dev/null +++ b/packages/m/macdylibbundler/port/xmake.lua @@ -0,0 +1,13 @@ +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") + + if is_plat("windows") and is_kind("shared") then + add_rules("utils.symbols.export_all", {export_classes = true}) + end diff --git a/packages/m/macdylibbundler/xmake.lua b/packages/m/macdylibbundler/xmake.lua new file mode 100644 index 00000000000..d65f550d0ec --- /dev/null +++ b/packages/m/macdylibbundler/xmake.lua @@ -0,0 +1,23 @@ +package("macdylibbundler") + set_homepage("https://github.com/auriamg/macdylibbundler") + set_description("dylibbundler is a small command-line programs that aims to make bundling") + set_license("MIT") + + add_urls("https://github.com/auriamg/macdylibbundler/archive/refs/tags/$(version).zip", + "https://github.com/auriamg/macdylibbundler.git") + + add_versions("1.0.5", "d48138fd6766c70097b702d179a657127f9aed3d083051c2d4fce145881a316e") + + + on_install("windows", "linux", "macosx" ,function (package) + os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua") + import("package.tools.xmake").install(package) + end) + + on_test(function (package) + assert(package:check_cxxsnippets({test = [[ + void test() { + collectSubDependencies(); + } + ]]}, {configs = {languages = "c++11"}, includes = "DylibBundler.h"})) + end) \ No newline at end of file