@@ -119,28 +119,21 @@ copy %FB_ROOT_PATH%\src\extlib\*.sql %FB_OUTPUT_DIR%\plugins\udr > nul
119
119
@ copy %FB_INSTALL_SCRIPTS% \uninstall_service.bat %FB_OUTPUT_DIR% > nul
120
120
121
121
:: MSVC runtime
122
- if %MSVC_VERSION% == 14 (
123
- @ copy " %VS140COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_ARCH % \Microsoft.VC140 .CRT\vcruntime140.dll" %FB_OUTPUT_DIR% > nul
124
- @ copy " %VS140COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_ARCH % \Microsoft.VC140 .CRT\msvcp140.dll" %FB_OUTPUT_DIR% > nul
122
+ if defined VS150COMNTOOLS (
123
+ @ copy " %VS150COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_DIR % \Microsoft.VC141 .CRT\vcruntime140.dll" %FB_OUTPUT_DIR% > nul
124
+ @ copy " %VS150COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_DIR % \Microsoft.VC141 .CRT\msvcp140.dll" %FB_OUTPUT_DIR% > nul
125
125
) else (
126
- if %MSVC_VERSION% == 12 (
127
- @ copy " %VS120COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_ARCH % \Microsoft.VC120 .CRT\msvcr120 .dll" %FB_OUTPUT_DIR% > nul
128
- @ copy " %VS120COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_ARCH % \Microsoft.VC120 .CRT\msvcp120 .dll" %FB_OUTPUT_DIR% > nul
126
+ if defined VS140COMNTOOLS (
127
+ @ copy " %VS140COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_DIR % \Microsoft.VC140 .CRT\vcruntime140 .dll" %FB_OUTPUT_DIR% > nul
128
+ @ copy " %VS140COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_DIR % \Microsoft.VC140 .CRT\msvcp140 .dll" %FB_OUTPUT_DIR% > nul
129
129
) else (
130
- if %MSVC_VERSION% == 10 (
131
- @ copy " %VS100COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_ARCH % \Microsoft.VC100 .CRT\msvcr100 .dll" %FB_OUTPUT_DIR% > nul
132
- @ copy " %VS100COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_ARCH % \Microsoft.VC100 .CRT\msvcp100 .dll" %FB_OUTPUT_DIR% > nul
130
+ if defined VS120COMNTOOLS (
131
+ @ copy " %VS120COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_DIR % \Microsoft.VC120 .CRT\msvcr120 .dll" %FB_OUTPUT_DIR% > nul
132
+ @ copy " %VS120COMNTOOLS % \..\..\VC\redist\%FB_VC_CRT_DIR % \Microsoft.VC120 .CRT\msvcp120 .dll" %FB_OUTPUT_DIR% > nul
133
133
) else (
134
- if %MSVC_VERSION% == 9 (
135
- @ copy " %VS90COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_ARCH% \Microsoft.VC90.CRT\msvcr90.dll" %FB_OUTPUT_DIR% > nul
136
- @ copy " %VS90COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_ARCH% \Microsoft.VC90.CRT\msvcp90.dll" %FB_OUTPUT_DIR% > nul
137
- @ copy " %VS90COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_ARCH% \Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest" %FB_OUTPUT_DIR% > nul
138
- ) else (
139
- if %MSVC_VERSION% == 8 (
140
- @ copy " %VS80COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_ARCH% \Microsoft.VC80.CRT\msvcr80.dll" %FB_OUTPUT_DIR% > nul
141
- @ copy " %VS80COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_ARCH% \Microsoft.VC80.CRT\msvcp80.dll" %FB_OUTPUT_DIR% > nul
142
- @ copy " %VS80COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_ARCH% \Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest" %FB_OUTPUT_DIR% > nul
143
- )
134
+ if defined VS100COMNTOOLS (
135
+ @ copy " %VS100COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_DIR% \Microsoft.VC100.CRT\msvcr100.dll" %FB_OUTPUT_DIR% > nul
136
+ @ copy " %VS100COMNTOOLS% \..\..\VC\redist\%FB_VC_CRT_DIR% \Microsoft.VC100.CRT\msvcp100.dll" %FB_OUTPUT_DIR% > nul
144
137
)
145
138
)
146
139
)
0 commit comments