From 1892267aab120e55292dc49e3a585e489b1f551a Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 7 Jan 2014 22:08:45 +0000 Subject: Adding option to make VS 2005 and 2008 projects compatible with Windows 7 dependencies. --- premake4.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'premake4.lua') 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 -- cgit v1.2.3