Skip to content

Instantly share code, notes, and snippets.

@hugoam
Last active October 19, 2018 20:46
Show Gist options
  • Save hugoam/a964fd0ee2f95e3096464eb2c0f92e8f to your computer and use it in GitHub Desktop.
Save hugoam/a964fd0ee2f95e3096464eb2c0f92e8f to your computer and use it in GitHub Desktop.
minimal toy build scripts
toy.all = table.union(mud.mud, toy.toy)
game = mud_module(nil, "game", path.join(GAME_DIR, "src"), "game", nil, nil, nil, toy.all)
toy_shell("game", { game })
-- add project specific configuration here
solution "game"
configurations {
"Debug",
"Release",
}
platforms {
"x32",
"x64"
}
language "C++"
PROJECT_DIR = path.getabsolute("..")
GAME_DIR = path.getabsolute("..")
BUILD_DIR = path.join(path.getabsolute(".."), "build")
dofile(path.join(PROJECT_DIR, "toy/scripts/toolchain.lua"))
dofile(path.join(PROJECT_DIR, "toy/scripts/toy.lua"))
group "bin"
dofile "game.lua"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment