Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
494 B

package.path = package.path .. "../build/?.lua;../../build/scripts/?.lua"
require "Helpers"
require "Utils"
function clone_sdl()
local sdl = path.getabsolute(examplesdir .. "/SDL/SDL-2.0")
local repo = "https://github.com/spurious/SDL-mirror.git"
if os.isdir(sdl) and not os.isdir(sdl .. "/.git") then
error("SDL directory is not a git repository.")
end
if not os.isdir(sdl) then
git.clone(sdl, repo)
end
end
if _ACTION == "clone_sdl" then
clone_sdl()
os.exit()
end