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 02:08:45 +0400
committerOliver Schneider <oliver@assarbad.net>2014-01-08 02:08:45 +0400
commit1892267aab120e55292dc49e3a585e489b1f551a (patch)
treef7d091073bd372dacadbc272d27898415d7755f0 /premake4.lua
parent25e286885ec3f654d5edf279aa01bb263be4a2ac (diff)
Adding option to make VS 2005 and 2008 projects compatible with Windows 7 dependencies.
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/premake4.lua b/premake4.lua
index 7a18dcf..7d9951a 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -93,7 +93,14 @@ local function transformMN(input) -- transform the macro names for older Visual
end
return input
end
-newoption { trigger = "resources", description = "Also create projects for the resource DLLs" }
+newoption { trigger = "resources", description = "Also create projects for the resource DLLs." }
+newoption { trigger = "sdk71", description = "Applies to VS 2005 and 2008. If you have the Windows 7 SP1\n SDK, use this to create projects for a feature-complete\n WinDirStat." }
+if _OPTIONS["resources"] then
+ print "INFO: Creating projects for resource DLLs."
+end
+if _OPTIONS["sdk71"] then
+ print "INFO: Assuming Windows 7 SP1 SDK is installed (#define SUPPORT_W7_TASKBAR)."
+end
solution ("windirstat")
configurations {"Debug", "Release"}
@@ -196,6 +203,11 @@ solution ("windirstat")
configuration {"vs2002 or vs2003 or vs2005 or vs2008 or vs2010 or vs2012"}
defines {"WINVER=0x0500"}
+ if _OPTIONS["sdk71"] then
+ configuration {"vs2005 or vs2008"}
+ defines {"SUPPORT_W7_TASKBAR=1"}
+ end
+
if _OPTIONS["resources"] then
do
local oldcurr = premake.CurrentContainer