--Add command line option for running premake with this script: -- Use: --prjname "MyProject" to name the project, defaults to: ProjectName newoption { trigger = "prjname", description = "Choosen project name.", value = "MyProject", } if not _OPTIONS["prjname"] then _OPTIONS["prjname"] = "ProjectName" end PRJNAME = _OPTIONS["prjname"] PATH_MYTOOLS = "C:/Dev/Personal/Undefined/" if _ACTION == "clean" then os.rmdir("Build/Debug") os.rmdir("Build/Release") end solution(PRJNAME) location "../../Project" configurations { "Debug", "Release" } project (PRJNAME) location "../../Project" language "C++" kind "WindowedApp" files { "../../Source/**.h", "../../Source/**.cpp" } includedirs { PATH_MYTOOLS .. "InternalCombustion/include", PATH_MYTOOLS .. "DebugToolSet/include", PATH_MYTOOLS .. "GameMath/include", } libdirs { PATH_MYTOOLS .. "InternalCombustion/lib", PATH_MYTOOLS .. "DebugToolSet/lib", } configuration "Debug*" targetdir "../../Project/obj/Debug" defines { "WIN32", "_DEBUG", "DEBUG", "_WINDOWS" } flags { "Symbols", "WinMain" } debugdir "../../../Run" --debugargs { "--nosplash", "--other" } postbuildcommands { "..\\Tools\\auto\\postbuilddbg.bat" } configuration "Release*" targetdir "../../Project/obj/Release" defines { "WIN32", "NDEBUG", "_WINDOWS" } flags { "Optimize", "WinMain" } debugdir "..\\..\\..\\Run" --debugargs { "--nosplash", "--other" } postbuildcommands { "..\\Tools\\auto\\postbuild.bat" }