Skip to content

Commit

Permalink
add macdylibbundler package
Browse files Browse the repository at this point in the history
  • Loading branch information
benny-12 committed Jul 7, 2024
1 parent 1e43082 commit a24a87d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/m/macdylibbundler/port/xmake.lua
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions packages/m/macdylibbundler/xmake.lua
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit a24a87d

Please sign in to comment.