forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 2
/
xr_pack_build.cmd
88 lines (72 loc) · 1.53 KB
/
xr_pack_build.cmd
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
md res\bin\
if %CONFIGURATION%==Debug if %PLATFORM%==x86 goto :DX86
if %CONFIGURATION%==Debug if %PLATFORM%==x64 goto :DX64
if %CONFIGURATION%==Mixed if %PLATFORM%==x86 goto :MX86
if %CONFIGURATION%==Mixed if %PLATFORM%==x64 goto :MX64
if %CONFIGURATION%==Release if %PLATFORM%==x86 goto :RX86
if %CONFIGURATION%==Release if %PLATFORM%==x64 goto :RX64
echo ! Unknown configuration and/or platform
goto :EOF
:DX86
cd bin\Win32\Debug
call :COPY_ENGINE
7z a OpenXRay.Dx86.7z .\*
cd ..\bin\Win32\Debug
call :COPY_SYMBOLS
7z a Symbols.Dx86.7z .\*
goto :EOF
:DX64
cd bin\Win64\Debug
call :COPY_ENGINE
7z a OpenXRay.Dx64.7z .\*
cd ..\bin\Win64\Debug
call :COPY_SYMBOLS
7z a Symbols.Dx64.7z .\*
goto :EOF
:MX86
cd bin\Win32\Mixed
call :COPY_ENGINE
7z a OpenXRay.Mx86.7z .\*
cd ..\bin\Win32\Mixed
call :COPY_SYMBOLS
7z a Symbols.Mx86.7z .\*
goto :EOF
:MX64
cd bin\Win64\Mixed
call :COPY_ENGINE
7z a OpenXRay.Mx64.7z .\*
cd ..\bin\Win64\Mixed
call :COPY_SYMBOLS
7z a Symbols.Mx64.7z .\*
goto :EOF
:RX86
cd bin\Win32\Release
call :COPY_ENGINE
7z a OpenXRay.Rx86.7z .\*
cd ..\bin\Win32\Release
call :COPY_SYMBOLS
7z a Symbols.Rx86.7z .\*
goto :EOF
:RX64
cd bin\Win64\Release
call :COPY_ENGINE
7z a OpenXRay.Rx64.7z .\*
cd ..\bin\Win64\Release
call :COPY_SYMBOLS
7z a Symbols.Rx64.7z .\*
goto :EOF
:COPY_ENGINE
copy *.dll ..\..\..\res\bin\
copy *.exe ..\..\..\res\bin\
cd ..\..\..\
copy Licence.txt .\res\
copy README.md .\res\
cd res\
goto :EOF
:COPY_SYMBOLS
copy *.pdb ..\..\..\res\bin\
cd ..\..\..\
copy Licence.txt .\res\
copy README.md .\res\
cd res\
goto :EOF