xmake.lua 1.1 KB

1234567891011121314151617181920212223242526272829
  1. package("macdylibbundler")
  2. set_homepage("https://github.com/auriamg/macdylibbundler")
  3. set_description("dylibbundler is a small command-line programs that aims to make bundling")
  4. set_license("MIT")
  5. add_urls("https://github.com/auriamg/macdylibbundler/archive/refs/tags/$(version).zip",
  6. "https://github.com/auriamg/macdylibbundler.git")
  7. add_versions("1.0.5", "d48138fd6766c70097b702d179a657127f9aed3d083051c2d4fce145881a316e")
  8. on_install("linux", "macosx", "android", function (package)
  9. io.writefile("xmake.lua", [[
  10. add_rules("mode.debug", "mode.release")
  11. target("macdylibbundler")
  12. set_kind("$(kind)")
  13. set_languages("c++11")
  14. add_files("src/*.cpp")
  15. add_includedirs("src")
  16. add_headerfiles("src/*.h")]])
  17. import("package.tools.xmake").install(package)
  18. end)
  19. on_test(function (package)
  20. assert(package:check_cxxsnippets({test = [[
  21. void test() {
  22. collectSubDependencies();
  23. }
  24. ]]}, {configs = {languages = "c++11"}, includes = "DylibBundler.h"}))
  25. end)