post.bmk 580 B

123456789101112131415161718192021222324252627282930313233
  1. # post build script
  2. #
  3. #
  4. @define copyDLL
  5. if bmk.Platform() == "macos" then
  6. framework = "SDL2.framework"
  7. # frameworks folder exists?
  8. folder = %exepath% .. "/../Frameworks"
  9. if sys.FileType(folder) == 0 then
  10. sys.CreateDir(folder)
  11. end
  12. # framework exists?
  13. if sys.FileType(folder .. "/" .. framework) == 0 then
  14. # assumes Sparkle.framework.zip is in the module folder.
  15. zip = utils.ModulePath("sdl.sdl") .. "/lib/macos/" .. framework .. ".zip"
  16. os.execute("unzip -qq " .. zip .. " -d " .. folder)
  17. end
  18. end
  19. @end
  20. #copy the shared objects
  21. copyDLL