diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-11 12:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-11 12:31:39 +0300 |
commit | 3d73baedd01e331259a9be1795cd83ad81f71652 (patch) | |
tree | 9220bf9e101ba845065e266268e3d78f64714371 /plugins/HistoryPlusPlus | |
parent | 752ace4d40b94699745b016424ea7568c686ecbb (diff) |
h++: make.bat teached to find a path to MSBuild.exe itself
Diffstat (limited to 'plugins/HistoryPlusPlus')
-rw-r--r-- | plugins/HistoryPlusPlus/make.bat | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/HistoryPlusPlus/make.bat b/plugins/HistoryPlusPlus/make.bat index ff67906b34..3fe1b6b310 100644 --- a/plugins/HistoryPlusPlus/make.bat +++ b/plugins/HistoryPlusPlus/make.bat @@ -5,4 +5,13 @@ if "%tp%"=="" (echo "please specify target platform 32 or 64!" && pause && goto rc version.rc +for /F "tokens=1,2,3" %%i in ('reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath') do call :SetPath %%i %%j %%k +echo Using .NET Framework Directory '%FrameworkDir%' +set PATH=%FrameworkDir%;%PATH% + MsBuild.exe historypp.dproj /t:Rebuild /p:Configuration=Release;Platform=Win%tp% /fileLogger /fileLoggerParameters:LogFile=Logs\icons%tp%.log;errorsonly;warningsonly;summary +goto :eof + +:SetPath +if "%2" == "REG_SZ" set FrameworkDir="%3" +goto :eof |