add macdylibbundler package (#4596)

* add macdylibbundler package

* delete the part of windows, because this repo just support linux and macos

* delete the part of mingw

* Update xmake.lua

* Delete packages/m/macdylibbundler/port/xmake.lua

* Update xmake.lua

---------

Co-authored-by: benny WU <benny066567@163.com>
Co-authored-by: ruki <waruqi@gmail.com>
pull/4603/head
benny066567 5 months ago committed by GitHub
parent cc091a1009
commit b9a31280a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 29
      packages/m/macdylibbundler/xmake.lua

@ -0,0 +1,29 @@
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("linux", "macosx", "android", function (package)
io.writefile("xmake.lua", [[
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")]])
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)
Loading…
Cancel
Save