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>2013-12-11 12:12:25 +0400
committerOliver Schneider <oliver@assarbad.net>2013-12-11 12:12:25 +0400
commit64980bc03431575c9f5b130b621ee85c4c62e834 (patch)
treeca010346fdf22535459c5645967abeccffe31841 /premake4.lua
parent1bed112bb033c5be649915f3c1f3d56c131203ee (diff)
- Dynamically generating the language resource projects
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua90
1 files changed, 51 insertions, 39 deletions
diff --git a/premake4.lua b/premake4.lua
index 965c18a..9959e0e 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -58,11 +58,19 @@ do
end
orig_generate(obj, filename, callback)
end
- --[[ do
- premake.action.list[name]
- -- replace onsolution of the action
- -- replace onproject of the action
- -- limit the configurations ... oncheckproject?
+ --[[
+ dofile("datadumper.lua")
+ for _,v in ipairs{"vs2005", "vs2008", "vs2010", "vs2012", "vs2013"} do
+ if _ACTION then
+ if _ACTION == v then
+ do
+ orig_onsolution = premake.action.list[_ACTION].onsolution
+ premake.action.list[_ACTION].onsolution = function(sln)
+ orig_onsolution(sln)
+ end
+ end
+ end
+ end
end]]
end
@@ -161,38 +169,42 @@ solution ("windirstat")
configuration {"vs2005", "windirstat/WDS_Lua_C.c"}
defines ("_CRT_SECURE_NO_WARNINGS") -- _CRT_SECURE_NO_DEPRECATE, _SCL_SECURE_NO_WARNINGS, _AFX_SECURE_NO_WARNINGS and _ATL_SECURE_NO_WARNINGS???
---[[
- resource_dlls = {
- ["wdsr0405"] = "C3F39C58-7FC4-4243-82B2-A3572235AE02", -- Czech
- ["wdsr0407"] = "C8D9E4F9-7051-4B41-A5AB-F68F3FCE42E8", -- German
- ["wdsr040a"] = "23B76347-204C-4DE6-A311-F562CEF5D89C", -- Spanish
- ["wdsr040b"] = "C7A5D1EC-35D3-4754-A815-2C527CACD584", -- Finnish
- ["wdsr040c"] = "DA4DDD24-67BC-4A9D-87D3-18C73E5CAF31", -- French
- ["wdsr040e"] = "2A75AA20-BFFE-4D1C-8AEC-274823223919", -- Hungarian
- ["wdsr0410"] = "FD4194A7-EA1E-4466-A80B-AB4D8D17F33C", -- Italian
- ["wdsr0413"] = "70A55EB7-E109-41DE-81B4-0DF2B72DCDE9", -- Dutch
- ["wdsr0415"] = "70C09DAA-6F6D-4AAC-955F-ACD602A667CE", -- Polish
- ["wdsr0419"] = "7F06AAC4-9FBE-412F-B1D7-CB37AB8F311D", -- Russian
- ["wdsr0425"] = "2FADC62C-C670-4963-8B69-70ECA7987B93", -- Estonian
- }
- -- Czech
- project ("wdsr0405")
- local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
- uuid ("C3F39C58-7FC4-4243-82B2-A3572235AE02")
- language ("C++")
- kind ("WindowedApp")
- location ("wdsr0405")
- flags {"NoImportLib"}
- targetdir ("build")
- resoptions {"/nologo", "/l409"}
- resincludedirs {"$(IntDir)"}
- linkoptions {"/noentry"}
- files
- {
- "wdsr0405/.*.txt",
- "wdsr0405/windirstat.rc",
- "wdsr0405/res/windirstat.rc2",
- "windirstat/res/*.*",
- }
-]]
+ do
+ local oldcurr = premake.CurrentContainer
+ local resource_dlls = {
+ ["wdsr0405"] = "C3F39C58-7FC4-4243-82B2-A3572235AE02", -- Czech
+ ["wdsr0407"] = "C8D9E4F9-7051-4B41-A5AB-F68F3FCE42E8", -- German
+ ["wdsr040a"] = "23B76347-204C-4DE6-A311-F562CEF5D89C", -- Spanish
+ ["wdsr040b"] = "C7A5D1EC-35D3-4754-A815-2C527CACD584", -- Finnish
+ ["wdsr040c"] = "DA4DDD24-67BC-4A9D-87D3-18C73E5CAF31", -- French
+ ["wdsr040e"] = "2A75AA20-BFFE-4D1C-8AEC-274823223919", -- Hungarian
+ ["wdsr0410"] = "FD4194A7-EA1E-4466-A80B-AB4D8D17F33C", -- Italian
+ ["wdsr0413"] = "70A55EB7-E109-41DE-81B4-0DF2B72DCDE9", -- Dutch
+ ["wdsr0415"] = "70C09DAA-6F6D-4AAC-955F-ACD602A667CE", -- Polish
+ ["wdsr0419"] = "7F06AAC4-9FBE-412F-B1D7-CB37AB8F311D", -- Russian
+ ["wdsr0425"] = "2FADC62C-C670-4963-8B69-70ECA7987B93", -- Estonian
+ }
+ for nm,guid in pairs(resource_dlls) do
+ premake.CurrentContainer = oldcurr
+ prj = project(nm)
+ local int_dir = "intermediate/" .. action .. "_" .. "$(PlatformName)_$(ConfigurationName)"
+ uuid (guid)
+ language ("C++")
+ kind ("WindowedApp")
+ location (nm)
+ flags {"NoImportLib"}
+ targetdir ("build")
+ resoptions {"/nologo", "/l409"}
+ resincludedirs {"$(IntDir)"}
+ linkoptions {"/noentry"}
+ files
+ {
+ nm .. "/.*.txt",
+ nm .. "/windirstat.rc",
+ nm .. "/res/windirstat.rc2",
+ "windirstat/res/*.*",
+ }
+ end
+ premake.CurrentContainer = oldcurr
+ end \ No newline at end of file