From c4d8565185d3cf53e4c0f6efd7ff43d85ed9ae26 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 18 Dec 2016 13:58:20 +0100 Subject: [PATCH] Changed: Make 2 different upgd_nl.bat depending on compiler --HG-- branch : develop --- code/ryzom/client/CMakeLists.txt | 6 ++- .../{upgd_nl.bat => upgd_nl_msvc10.bat} | 25 ------------ code/ryzom/client/windows/upgd_nl_msvc12.bat | 39 +++++++++++++++++++ 3 files changed, 44 insertions(+), 26 deletions(-) rename code/ryzom/client/windows/{upgd_nl.bat => upgd_nl_msvc10.bat} (59%) create mode 100644 code/ryzom/client/windows/upgd_nl_msvc12.bat diff --git a/code/ryzom/client/CMakeLists.txt b/code/ryzom/client/CMakeLists.txt index a17e216d6..43897c905 100644 --- a/code/ryzom/client/CMakeLists.txt +++ b/code/ryzom/client/CMakeLists.txt @@ -15,7 +15,11 @@ IF(WITH_RYZOM_CLIENT) IF(APPLE) INSTALL(FILES macosx/upgd_nl.sh DESTINATION ${RYZOM_GAMES_PREFIX}) ELSEIF(WIN32) - INSTALL(FILES windows/upgd_nl.bat DESTINATION ${RYZOM_GAMES_PREFIX}) + IF(MSVC10) + INSTALL(FILES windows/upgd_nl_msvc10.bat DESTINATION ${RYZOM_GAMES_PREFIX} RENAME upgd_nl.bat) + ELSEIF(MSVC12) + INSTALL(FILES windows/upgd_nl_msvc12.bat DESTINATION ${RYZOM_GAMES_PREFIX} RENAME upgd_nl.bat) + ENDIF() ELSE() INSTALL(FILES unix/upgd_nl.sh DESTINATION ${RYZOM_GAMES_PREFIX}) ENDIF() diff --git a/code/ryzom/client/windows/upgd_nl.bat b/code/ryzom/client/windows/upgd_nl_msvc10.bat similarity index 59% rename from code/ryzom/client/windows/upgd_nl.bat rename to code/ryzom/client/windows/upgd_nl_msvc10.bat index 60ae2987c..5dcb42592 100644 --- a/code/ryzom/client/windows/upgd_nl.bat +++ b/code/ryzom/client/windows/upgd_nl_msvc10.bat @@ -27,27 +27,6 @@ if exist %ROOTPATH%\msvcr100_win64.dll ( copy /Y %ROOTPATH%\msvcr100_win64.dll %ROOTPATH%\msvcr100.dll ) -rem VC++ 2013 now -if exist %ROOTPATH%\msvcp120_win32.dll ( - if exist %ROOTPATH%\msvcp120.dll del %ROOTPATH%\msvcp120.dll - copy /Y %ROOTPATH%\msvcp120_win32.dll %ROOTPATH%\msvcp120.dll -) - -if exist %ROOTPATH%\msvcr120_win32.dll ( - if exist %ROOTPATH%\msvcr120.dll del %ROOTPATH%\msvcr120.dll - copy /Y %ROOTPATH%\msvcr120_win32.dll %ROOTPATH%\msvcr120.dll -) - -if exist %ROOTPATH%\msvcp120_win64.dll ( - if exist %ROOTPATH%\msvcp120.dll del %ROOTPATH%\msvcp120.dll - copy /Y %ROOTPATH%\msvcp120_win64.dll %ROOTPATH%\msvcp120.dll -) - -if exist %ROOTPATH%\msvcr120_win64.dll ( - if exist %ROOTPATH%\msvcr120.dll del %ROOTPATH%\msvcr120.dll - copy /Y %ROOTPATH%\msvcr120_win64.dll %ROOTPATH%\msvcr120.dll -) - if exist %ROOTPATH%\..\ryzom_installer_qt_r.exe ( if exist %ROOTPATH%\..\ryzom_installer_qt_r.exe del %ROOTPATH%\..\ryzom_installer_qt_r.exe copy /Y %ROOTPATH%\ryzom_installer_qt_r.exe %ROOTPATH%\.. @@ -55,10 +34,6 @@ if exist %ROOTPATH%\..\ryzom_installer_qt_r.exe ( copy /Y %ROOTPATH%\msvcp100.dll %ROOTPATH%\.. if exist %ROOTPATH%\..\msvcr100.dll del %ROOTPATH%\..\msvcr100.dll copy /Y %ROOTPATH%\msvcr100.dll %ROOTPATH%\.. - if exist %ROOTPATH%\..\msvcp120.dll del %ROOTPATH%\..\msvcp120.dll - copy /Y %ROOTPATH%\msvcp120.dll %ROOTPATH%\.. - if exist %ROOTPATH%\..\msvcr120.dll del %ROOTPATH%\..\msvcr120.dll - copy /Y %ROOTPATH%\msvcr120.dll %ROOTPATH%\.. ) :end diff --git a/code/ryzom/client/windows/upgd_nl_msvc12.bat b/code/ryzom/client/windows/upgd_nl_msvc12.bat new file mode 100644 index 000000000..abff3fe66 --- /dev/null +++ b/code/ryzom/client/windows/upgd_nl_msvc12.bat @@ -0,0 +1,39 @@ +@echo off + +if "x%ROOTPATH%x" == "xx" ( + echo upgd_nl.bat can only be launched from updt_nl.bat + goto end +) + +rem We used this hack because to client 2.1 to 3.0 patch, +rem VC++ 2013 DLLs are using the same name and are deleted during patch +if exist %ROOTPATH%\msvcp120_win32.dll ( + if exist %ROOTPATH%\msvcp120.dll del %ROOTPATH%\msvcp120.dll + copy /Y %ROOTPATH%\msvcp120_win32.dll %ROOTPATH%\msvcp120.dll +) + +if exist %ROOTPATH%\msvcr120_win32.dll ( + if exist %ROOTPATH%\msvcr120.dll del %ROOTPATH%\msvcr120.dll + copy /Y %ROOTPATH%\msvcr120_win32.dll %ROOTPATH%\msvcr120.dll +) + +if exist %ROOTPATH%\msvcp120_win64.dll ( + if exist %ROOTPATH%\msvcp120.dll del %ROOTPATH%\msvcp120.dll + copy /Y %ROOTPATH%\msvcp120_win64.dll %ROOTPATH%\msvcp120.dll +) + +if exist %ROOTPATH%\msvcr120_win64.dll ( + if exist %ROOTPATH%\msvcr120.dll del %ROOTPATH%\msvcr120.dll + copy /Y %ROOTPATH%\msvcr120_win64.dll %ROOTPATH%\msvcr120.dll +) + +if exist %ROOTPATH%\..\ryzom_installer_qt_r.exe ( + if exist %ROOTPATH%\..\ryzom_installer_qt_r.exe del %ROOTPATH%\..\ryzom_installer_qt_r.exe + copy /Y %ROOTPATH%\ryzom_installer_qt_r.exe %ROOTPATH%\.. + if exist %ROOTPATH%\..\msvcp120.dll del %ROOTPATH%\..\msvcp120.dll + copy /Y %ROOTPATH%\msvcp120.dll %ROOTPATH%\.. + if exist %ROOTPATH%\..\msvcr120.dll del %ROOTPATH%\..\msvcr120.dll + copy /Y %ROOTPATH%\msvcr120.dll %ROOTPATH%\.. +) + +:end