forked from vpinball/pinmame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_vc2017_from_vc2012.bat
54 lines (50 loc) · 3.6 KB
/
create_vc2017_from_vc2012.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
copy /V /-Y "PinMAME_VC2012.sln" "PinMAME_VC2017.sln"
copy /V /-Y "InstallVPinMAME_VC2012.vcxproj" "InstallVPinMAME_VC2017.vcxproj"
copy /V /-Y "PinMAME_VC2012.vcxproj" "PinMAME_VC2017.vcxproj"
copy /V /-Y "PinMAME32_VC2012.vcxproj" "PinMAME32_VC2017.vcxproj"
copy /V /-Y "VPinMAME_VC2012.vcxproj" "VPinMAME_VC2017.vcxproj"
copy /V /-Y "InstallVPinMAME_VC2012.vcxproj.filters" "InstallVPinMAME_VC2017.vcxproj.filters"
copy /V /-Y "PinMAME_VC2012.vcxproj.filters" "PinMAME_VC2017.vcxproj.filters"
copy /V /-Y "PinMAME32_VC2012.vcxproj.filters" "PinMAME32_VC2017.vcxproj.filters"
copy /V /-Y "VPinMAME_VC2012.vcxproj.filters" "VPinMAME_VC2017.vcxproj.filters"
copy /V /-Y "LibPinMAME_VC2015.vcxproj" "LibPinMAME_VC2017.vcxproj"
copy /V /-Y "LibPinMAME_VC2015.vcxproj.filters" "LibPinMAME_VC2017.vcxproj.filters"
copy /V /-Y "LibPinMAMETest_VC2015.vcxproj" "LibPinMAMETest_VC2017.vcxproj"
copy /V /-Y "LibPinMAMETest_VC2015.vcxproj.filters" "LibPinMAMETest_VC2017.vcxproj.filters"
@cscript "simplereplace.wsf" //nologo /search:"VC2012" /replace:"VC2017" /in:"PinMAME_VC2017.sln" /out:"PinMAME_VC2017.sln"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"Visual Studio 2012" /replace:"Visual Studio Version 15" /in:"PinMAME_VC2017.sln" /out:"PinMAME_VC2017.sln"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"Format Version 12.00" /replace:"Format Version 14.00" /in:"PinMAME_VC2017.sln" /out:"PinMAME_VC2017.sln"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"VC2012" /replace:"VC2017" /in:"InstallVPinMAME_VC2017.vcxproj" /out:"InstallVPinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"v110" /replace:"v141_xp" /in:"InstallVPinMAME_VC2017.vcxproj" /out:"InstallVPinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"VC2012" /replace:"VC2017" /in:"PinMAME_VC2017.vcxproj" /out:"PinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"v110" /replace:"v141_xp" /in:"PinMAME_VC2017.vcxproj" /out:"PinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"VC2012" /replace:"VC2017" /in:"PinMAME32_VC2017.vcxproj" /out:"PinMAME32_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"v110" /replace:"v141_xp" /in:"PinMAME32_VC2017.vcxproj" /out:"PinMAME32_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"VC2012" /replace:"VC2017" /in:"VPinMAME_VC2017.vcxproj" /out:"VPinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"v110" /replace:"v141_xp" /in:"VPinMAME_VC2017.vcxproj" /out:"VPinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"VC2015" /replace:"VC2017" /in:"LibPinMAME_VC2017.vcxproj" /out:"LibPinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"v140_xp" /replace:"v141_xp" /in:"LibPinMAME_VC2017.vcxproj" /out:"LibPinMAME_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"VC2015" /replace:"VC2017" /in:"LibPinMAMETest_VC2017.vcxproj" /out:"LibPinMAMETest_VC2017.vcxproj"
@if errorlevel 1 goto manual
@cscript "simplereplace.wsf" //nologo /search:"v140_xp" /replace:"v141_xp" /in:"LibPinMAMETest_VC2017.vcxproj" /out:"LibPinMAMETest_VC2017.vcxproj"
@if errorlevel 1 goto manual
@goto end
:manual
@echo.
@echo Replace all occurrences of VC2012 in the project files with VC2017.
:end
@echo Convert the project files with VC2017 and compile.
@pause