2008-12-05 21:18:47 +00:00
|
|
|
solution "PremakeTestbox"
|
|
|
|
configurations { "Debug", "Release" }
|
2009-03-25 23:04:32 +00:00
|
|
|
platforms { "x32", "x64" }
|
|
|
|
|
2009-01-08 19:28:45 +00:00
|
|
|
-- solution level configuration
|
2008-12-05 21:18:47 +00:00
|
|
|
|
|
|
|
configuration "Debug"
|
|
|
|
targetdir "bin/debug"
|
|
|
|
flags { "Symbols" }
|
|
|
|
defines { "_DEBUG", "DEBUG" }
|
|
|
|
|
|
|
|
configuration "Release"
|
|
|
|
targetdir "bin/release"
|
|
|
|
flags { "Optimize" }
|
|
|
|
defines { "NDEBUG" }
|
|
|
|
|
2009-01-08 19:28:45 +00:00
|
|
|
|
|
|
|
-- include all the projects
|
2008-12-05 21:18:47 +00:00
|
|
|
|
2009-01-08 19:28:45 +00:00
|
|
|
include "CppConsoleApp"
|
|
|
|
include "CppWindowedApp"
|
|
|
|
include "CppSharedLib"
|
|
|
|
include "CppStaticLib"
|
2009-01-30 16:18:18 +00:00
|
|
|
|
|
|
|
if _ACTION ~= "codeblocks" then
|
|
|
|
include "CsSharedLib"
|
|
|
|
include "CsConsoleApp"
|
|
|
|
end
|
|
|
|
|
2009-01-08 19:28:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
-- add to the built-in clean action
|
|
|
|
|
|
|
|
if _ACTION == "clean" then
|
|
|
|
os.rmdir("bin")
|
|
|
|
end
|
|
|
|
|
2008-12-05 21:18:47 +00:00
|
|
|
|
2008-12-22 22:57:22 +00:00
|
|
|
|
2009-01-08 19:28:45 +00:00
|
|
|
-- add a new install action
|
2008-12-05 21:18:47 +00:00
|
|
|
|
2009-01-08 19:28:45 +00:00
|
|
|
newaction {
|
|
|
|
trigger = "install",
|
|
|
|
description = "Install the project",
|
|
|
|
execute = function ()
|
|
|
|
os.copyfile("premake4.lua", "../premake4.lua")
|
|
|
|
end
|
2009-01-09 20:31:46 +00:00
|
|
|
}
|
|
|
|
|