2008-11-13 00:54:41 +00:00
|
|
|
if (target == "vs2002" or target == "vs2003") then
|
|
|
|
error(
|
|
|
|
"\nBecause of compiler limitations, Visual Studio 2002 and 2003 aren't able to\n" ..
|
|
|
|
"build this version of Premake. Use the free Visual Studio Express instead.", 0)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2008-06-17 18:45:11 +00:00
|
|
|
project.name = "Premake4"
|
|
|
|
|
2008-10-31 18:38:05 +00:00
|
|
|
project.configs = { "Release", "Debug" }
|
|
|
|
|
2008-06-17 18:45:11 +00:00
|
|
|
-- Output directories
|
|
|
|
|
|
|
|
project.config["Debug"].bindir = "bin/debug"
|
|
|
|
project.config["Release"].bindir = "bin/release"
|
|
|
|
|
|
|
|
|
|
|
|
-- Packages
|
|
|
|
|
|
|
|
dopackage("src")
|
|
|
|
|
|
|
|
|
|
|
|
-- Cleanup code
|
|
|
|
|
|
|
|
function doclean(cmd, arg)
|
|
|
|
docommand(cmd, arg)
|
|
|
|
os.rmdir("bin")
|
|
|
|
end
|