Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2008-11-13 03:54:41 +0300
committerstarkos <none@none>2008-11-13 03:54:41 +0300
commit4539b1e1b3336b52b77b11696f9664e5ebb0d1e4 (patch)
tree0de78294ad13a7a580075d8e88b1538555e52771 /premake4.lua
parentc257e9c746f096ca4294168a8a2c26de538eb36c (diff)
** Merged branches/vstudio (r539:562) Added Visual Studio support
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/premake4.lua b/premake4.lua
index 98f5d9c..988f138 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -2,6 +2,12 @@
-- Premake 4.x build configuration script
--
+if (_ACTION == "vs2002" or _ACTION == "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
+
solution "Premake4"
configurations { "Release", "Debug" }
@@ -10,7 +16,7 @@ solution "Premake4"
project "Premake4"
targetname "premake4"
language "C"
- kind "ConsoleExe"
+ kind "ConsoleApp"
flags { "No64BitChecks", "ExtraWarnings", "FatalWarnings" }
includedirs { "src/host/lua-5.1.2/src" }
@@ -52,7 +58,6 @@ project "Premake4"
function onclean()
os.rmdir("bin")
- os.rmdir("obj") -- get rid of this once "clean" is working properly
end
@@ -80,7 +85,7 @@ project "Premake4"
f:close()
local name = path.getbasename(fname)
- local dump = "_TEMPLATES."..name.."=premake.template.loadstring('"..name.."',[["..tmpl.."]])"
+ local dump = "_TEMPLATES."..name.."=premake.loadtemplatestring('"..name.."',[["..tmpl.."]])"
local len = string.len(dump)
out:write("\t\"")
for i=1,len do