From face963aab2642ea2611d646c053627bafb0d330 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 10 Jun 2010 16:47:16 +0000 Subject: scripts: Added projects for Code::Blocks, Codelite and XCode git-svn-id: http://pugixml.googlecode.com/svn/trunk@507 99668b35-9821-0410-8761-19e4c4f06640 --- scripts/premake4.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'scripts/premake4.lua') diff --git a/scripts/premake4.lua b/scripts/premake4.lua index 873497c..3a11567 100644 --- a/scripts/premake4.lua +++ b/scripts/premake4.lua @@ -1,11 +1,11 @@ +local action = premake.action.current() + if string.startswith(_ACTION, "vs") then -- We need debugging symbols for all configurations, but runtime library depends on official Symbols flag, so hack it function premake.vs200x_vcproj_symbols(cfg) return 3 end - local action = premake.action.current() - if action then -- Disable solution generation function action.onsolution(sln) @@ -17,6 +17,18 @@ if string.startswith(_ACTION, "vs") then premake.generate(prj, "%%_" .. _ACTION .. ".vcproj", premake.vs200x_vcproj) end end +elseif _ACTION == "codeblocks" then + action.onsolution = nil + + function action.onproject(prj) + premake.generate(prj, "%%_" .. _ACTION .. ".cbp", premake.codeblocks_cbp) + end +elseif _ACTION == "codelite" then + action.onsolution = nil + + function action.onproject(prj) + premake.generate(prj, "%%_" .. _ACTION .. ".project", premake.codelite_project) + end end solution "pugixml" -- cgit v1.2.3