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

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Schneider <oliver@assarbad.net>2014-01-03 09:02:06 +0400
committerOliver Schneider <oliver@assarbad.net>2014-01-03 09:02:06 +0400
commitf206eacbcf6ee194bcc1f6aa8b0cd78620b1d8f3 (patch)
tree4727d96fa7daaaa8dfce7ee81b9e8c258a39d4c6 /premake4.lua
parent7467fa942fd579f6c80af41ef0d7dbe7f75c31c3 (diff)
- Make sure the new macro names are properly used
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua16
1 files changed, 14 insertions, 2 deletions
diff --git a/premake4.lua b/premake4.lua
index 83d43cf..c684f0e 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -73,6 +73,18 @@ do
end
end]]
end
+local function transformMacroNames(action, input)
+ local new_map = { vs2010 = 0, vs2012 = 0, vs2013 = 0 }
+ local replacements = { PlatformName = "Platform", ConfigurationName = "Configuration" }
+ if new_map[action] ~= nil then
+ for k,v in pairs(replacements) do
+ if input:find(k) then
+ input = input:gsub(k, v)
+ end
+ end
+ end
+ return input
+end
solution ("windirstat")
configurations {"Debug", "Release"}
@@ -80,7 +92,7 @@ solution ("windirstat")
location ('.')
project ("windirstat")
- local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ local int_dir = transformMacroNames(action, "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)")
uuid ("BD11B94C-6594-4477-9FDF-2E24447D1F14")
language ("C++")
kind ("WindowedApp")
@@ -188,7 +200,7 @@ solution ("windirstat")
for nm,guid in pairs(resource_dlls) do
premake.CurrentContainer = oldcurr
prj = project(nm)
- local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ local int_dir = transformMacroNames(action, "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)")
uuid (guid)
language ("C++")
kind ("WindowedApp")