summaryrefslogtreecommitdiff
path: root/scripts/premake4.lua
diff options
context:
space:
mode:
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"