diff --git a/Buildings/Resources/Library/win32/ffd.dll b/Buildings/Resources/Library/win32/ffd.dll index db9187e372a..c8b29bdca4e 100644 Binary files a/Buildings/Resources/Library/win32/ffd.dll and b/Buildings/Resources/Library/win32/ffd.dll differ diff --git a/Buildings/Resources/Library/win32/ffd.lib b/Buildings/Resources/Library/win32/ffd.lib index 6bc6895a8f7..75cc4692f66 100644 Binary files a/Buildings/Resources/Library/win32/ffd.lib and b/Buildings/Resources/Library/win32/ffd.lib differ diff --git a/Buildings/Resources/Library/win64/ffd.dll b/Buildings/Resources/Library/win64/ffd.dll index 65fb3e093fc..194eb0443c6 100644 Binary files a/Buildings/Resources/Library/win64/ffd.dll and b/Buildings/Resources/Library/win64/ffd.dll differ diff --git a/Buildings/Resources/Library/win64/ffd.lib b/Buildings/Resources/Library/win64/ffd.lib index b7524242f4b..38eed9324bb 100644 Binary files a/Buildings/Resources/Library/win64/ffd.lib and b/Buildings/Resources/Library/win64/ffd.lib differ diff --git a/Buildings/Resources/src/FastFluidDynamics/Compile.bat b/Buildings/Resources/src/FastFluidDynamics/Compile.bat index 7c7bf964111..e5916c231b0 100644 --- a/Buildings/Resources/src/FastFluidDynamics/Compile.bat +++ b/Buildings/Resources/src/FastFluidDynamics/Compile.bat @@ -3,10 +3,10 @@ ::******************************************************************* ::Set the Output Directory, Compile Mode and MSbuild File Name ::******************************************************************* -set DIR=..\..\Library\win64 +set DIR=..\..\Library\win32 set MSbuildName=ffd set BuildConfiguration=Release -set Platform=Win64 +set Platform=Win32 ::Note: Two build mode, Debug or Release ::******************************************************************* @@ -41,8 +41,11 @@ if exist "%DIR%\%MSbuildName%.lib" ( ::Set Default Compiler Version and Toolset (edited by user) ::------------------------------------------------------------------- ::Note: Toolset: V100 for VC10.0, v110 for VC11.0 -set VCVersion=14.0 -set Toolset=v140 +:: Toolset: V160 for VC 2019 +::set VCVersion=14.0 +::set Toolset=v140 +set VCVersion=2019 +set Toolset=v142 ::------------------------------------------------------------------- ::Call vcvarsall.bat (Not user editable) @@ -62,11 +65,16 @@ if %Platform%==Win64 ( set Conf_Platform=x64 ) -if exist "%VCDIR% %VCVersion%\VC\vcvarsall.bat" ( - call "%VCDIR% %VCVersion%\VC\vcvarsall.bat" %Conf% +::if exist "%VCDIR% %VCVersion%\VC\vcvarsall.bat" ( +:: call "%VCDIR% %VCVersion%\VC\vcvarsall.bat" %Conf% +:: goto MSbuildSetting +:: ) +if exist "%VCDIR%\%VCVersion%\Community\VC\Auxiliary\Build\vcvarsall.bat" ( + call "%VCDIR%\%VCVersion%\Community\VC\Auxiliary\Build\vcvarsall.bat" %Conf% goto MSbuildSetting ) + goto missing :MSbuildSetting @@ -191,11 +199,13 @@ msbuild %MSbuildName%.vcxproj /t:rebuild /p:PlatformToolset=%Toolset%;Configurat ::Copy ffd.dll to Output Directory ::******************************************************************* echo Copy %MSbuildName%.dll and %MSbuildName%.lib to %DIR% -if %Platform%==Win32 ( +echo %Platform% +pause +if %Platform%==x86 ( copy "%BuildConfiguration%\%MSbuildName%.dll" "%DIR%" /Y copy "%BuildConfiguration%\%MSbuildName%.lib" "%DIR%" /Y ) -if %Platform%==X64 ( +if %Platform%==x64 ( copy "X64\%BuildConfiguration%\%MSbuildName%.dll" "%DIR%" /Y copy "X64\%BuildConfiguration%\%MSbuildName%.lib" "%DIR%" /Y ) @@ -205,10 +215,10 @@ if %Platform%==X64 ( ::Clean Build Folder ::******************************************************************* echo Clean %BuildConfiguration% Build Folder -if %Platform%==Win32 ( +if %Platform%==x86 ( rmdir %BuildConfiguration% /s /q ) -if %Platform%==X64 ( +if %Platform%==x64 ( rmdir X64 /s /q ) goto :eof