From 6c4aab2e55142d89a5de82c3b47c26d2e9ef0df4 Mon Sep 17 00:00:00 2001 From: janwas Date: Sat, 13 Aug 2005 17:07:05 +0000 Subject: [PATCH] cleaned up a bit and activated W4 warnings on windows This was SVN commit r2608. --- build/premake/premake.lua | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/build/premake/premake.lua b/build/premake/premake.lua index 7861c8a9d5..cc1c291a86 100755 --- a/build/premake/premake.lua +++ b/build/premake/premake.lua @@ -45,10 +45,7 @@ function setuppackage (projectname) sourceroot = "../../../source/" librariesroot = "../../../libraries/" - - source_dirs = {} - - tconcat(source_dirs, { + source_dirs = { "ps", "ps/scripting", "ps/Network", @@ -70,7 +67,12 @@ function setuppackage (projectname) "maths/scripting", "renderer" - }) + "terrain", + "sound", + "scripting", + "i18n", + "tests" + } if (projectname ~= "sced") then tconcat(source_dirs, { "gui", @@ -82,18 +84,6 @@ function setuppackage (projectname) "tools/atlas/GameInterface/Handlers" }) end - tconcat(source_dirs, { - "terrain", - - "sound", - - "scripting", - - "i18n", - - "tests" - }) - if (projectname == "sced") then tconcat(source_dirs, { "tools/sced", "tools/sced/ui" @@ -120,7 +110,6 @@ function setuppackage (projectname) end package.includepaths = {} - foreach(include_dirs, function (i,v) tinsert(package.includepaths, sourceroot .. v) end) @@ -129,6 +118,7 @@ function setuppackage (projectname) if (OS == "windows") then package.buildflags = { "no-rtti" } + package.buildoptions = { "/W4" } else package.buildflags = { } end