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>2018-04-04 22:33:25 +0300
committerOliver Schneider <oliver@assarbad.net>2018-04-04 22:33:25 +0300
commitbe6e92200abf37d38167c8b7a288fb7cd1e0cc13 (patch)
treef9793d1c5b91213a6e3471bcd66abf59870902a8
parent802e1942c78dc3aa3975567b2fe85ec249033fb0 (diff)
Cleanup of premake4.lua and added VS2017 build directory to .hgignore
-rw-r--r--.hgignore1
-rw-r--r--premake4.lua26
2 files changed, 1 insertions, 26 deletions
diff --git a/.hgignore b/.hgignore
index 3af0851..e03080e 100644
--- a/.hgignore
+++ b/.hgignore
@@ -28,3 +28,4 @@ build/**
**.VC.opendb
*.aps
windirstat/res/*/wds_release_wdsr*.vs8.vcproj
+build.vs*/**
diff --git a/premake4.lua b/premake4.lua
index 9bb3220..92900d6 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -302,32 +302,6 @@ do
end
end
end
- -- Make sure to intercept the VCManifestTool element generation, we need to add to it.
- --
- local function nval(val)
- return iif(val, val, "<null>")
- end
- local VCManifestTool_handler = premake.vstudio.vc200x.toolmap["VCManifestTool"]
- premake.vstudio.vc200x.toolmap["VCManifestTool"] = function(cfg)
- local old_captured = io.captured -- save io.captured state
- io.capture() -- empties io.captured
- VCManifestTool_handler(cfg)
- local captured = io.endcapture()
- if captured:find("res/windirstat\.manifest") and cfg.name and cfg.platform then
- local identity_fmt = "%s, processorArchitecture=%s, version=%s, type=win32"
- local arch = iif(cfg.platform == "x32", "x86", iif(cfg.platform == "x64", "amd64", "*"))
- if _OPTIONS["release"] and (cfg.name == "Release") then
- identity_fmt = identity_fmt .. string.format(", publicKeyToken=%s", publicKeyToken)
- end
- local identity = string.format(identity_fmt, assemblyName, arch, programVersion)
- captured = captured:gsub("(%\t+)AdditionalManifestFiles=\"[^\"]+\"", "%0" .. io.eol .. "%1AssemblyIdentity=\"" .. premake.esc(identity) .. "\"")
- end
- if old_captured ~= nil then
- io.captured = old_captured .. captured -- restore outer captured state, if any
- else
- io.write(captured)
- end
- end
end
local function transformMN(input) -- transform the macro names for older Visual Studio versions
local new_map = { vs2002 = 0, vs2003 = 0, vs2005 = 0, vs2008 = 0 }