summaryrefslogtreecommitdiff
path: root/scripts/premake4.lua
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-10 16:47:16 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-06-10 16:47:16 +0000
commitface963aab2642ea2611d646c053627bafb0d330 (patch)
tree38cbb026d0675311b8a28cfe7cd6cab4ee179eab /scripts/premake4.lua
parent158236b1da3be07360aa4af66575e72cabf2ecf9 (diff)
scripts: Added projects for Code::Blocks, Codelite and XCode
git-svn-id: http://pugixml.googlecode.com/svn/trunk@507 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'scripts/premake4.lua')
-rw-r--r--scripts/premake4.lua16
1 files changed, 14 insertions, 2 deletions
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"