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-08 05:50:23 +0400
committerOliver Schneider <oliver@assarbad.net>2014-01-08 05:50:23 +0400
commit44c6ed703c60cdd91c454572e91092ef49ab84b9 (patch)
treeaded61c878750c9980315cf4ecb7544f9da333ef /premake4.lua
parentcfc74bbfcd3ca32860171b610c55c644c33e8076 (diff)
Get rid of some obsolete stuff
Also now naming the intermediate folder without referring to the platform or configuration (we only have a single one)
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua29
1 files changed, 1 insertions, 28 deletions
diff --git a/premake4.lua b/premake4.lua
index 0d10a70..14a98d0 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -1,33 +1,6 @@
-- The below is used to insert the .vs(2005|2008|2010|2012|2013) into the file names for projects and solutions
local action = _ACTION or ""
do
- -- This is mainly to support older premake4 builds
- if not premake.project.getbasename then
- print "Magic happens ..."
- -- override the function to establish the behavior we'd get after patching Premake to have premake.project.getbasename
- premake.project.getbasename = function(prjname, pattern)
- return pattern:gsub("%%%%", prjname)
- end
- -- obviously we also need to overwrite the following to generate functioning VS solution files
- premake.vstudio.projectfile = function(prj)
- local pattern
- if prj.language == "C#" then
- pattern = "%%.csproj"
- else
- pattern = iif(_ACTION > "vs2008", "%%.vcxproj", "%%.vcproj")
- end
-
- local fname = premake.project.getbasename(prj.name, pattern)
- fname = path.join(prj.location, fname)
- return fname
- end
- -- we simply overwrite the original function on older Premake versions
- premake.project.getfilename = function(prj, pattern)
- local fname = premake.project.getbasename(prj.name, pattern)
- fname = path.join(prj.location, fname)
- return path.getrelative(os.getcwd(), fname)
- end
- end
-- Name the project files after their VS version
local orig_getbasename = premake.project.getbasename
premake.project.getbasename = function(prjname, pattern)
@@ -250,7 +223,7 @@ solution ("windirstat")
for nm,guid in pairs(resource_dlls) do
premake.CurrentContainer = oldcurr
prj = project(nm)
- local int_dir = "intermediate/" .. action .. "_$(" .. transformMN("Platform") .. ")_$(" .. transformMN("Configuration") .. ")" .. nm
+ local int_dir = "intermediate/" .. action .. "_" .. nm
uuid (guid)
language ("C++")
kind ("SharedLib")