diff options
author | Oliver Schneider <oliver@assarbad.net> | 2014-01-08 03:05:09 +0400 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2014-01-08 03:05:09 +0400 |
commit | 85a1441a2f4a2ecb91e0d8d917c0888c802f192b (patch) | |
tree | 069dcef4410cbb7e758e36c3466d18434f83d380 | |
parent | 1892267aab120e55292dc49e3a585e489b1f551a (diff) |
Fixing Issue #92
-rw-r--r-- | common/produce_vsprojects.cmd | 5 | ||||
-rw-r--r-- | premake4.lua | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/common/produce_vsprojects.cmd b/common/produce_vsprojects.cmd index b94961e..cd0c509 100644 --- a/common/produce_vsprojects.cmd +++ b/common/produce_vsprojects.cmd @@ -13,8 +13,11 @@ set REPOROOT=%~dp0.. set COMMON=%~dp0
:: Change into the repository root
setlocal & pushd "%REPOROOT%"
+if "%~1" == "full" set OPTIONS=--resources --sdk71
+if "%~1" == "sdk71" set OPTIONS=--sdk71
+if "%~1" == "resources" set OPTIONS=--resources
for %%i in (vs2005 vs2008 vs2010 vs2012 vs2013) do @(
- "%COMMON%\premake4.exe" %%i
+ "%COMMON%\premake4.exe" %OPTIONS% %%i
)
:: Back to normal
popd & endlocal
diff --git a/premake4.lua b/premake4.lua index 7d9951a..d58a45b 100644 --- a/premake4.lua +++ b/premake4.lua @@ -98,9 +98,6 @@ newoption { trigger = "sdk71", description = "Applies to VS 2005 and 2008. If yo 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"}
@@ -206,6 +203,9 @@ solution ("windirstat") if _OPTIONS["sdk71"] then
configuration {"vs2005 or vs2008"}
defines {"SUPPORT_W7_TASKBAR=1"}
+ if action == "vs2005" or action == "vs2008" then
+ print "INFO: Assuming Windows 7 SP1 SDK is installed (#define SUPPORT_W7_TASKBAR)."
+ end
end
if _OPTIONS["resources"] then
|