forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xr_pack_build.cmd
71 lines (62 loc) · 1.41 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
if %CONFIGURATION%==Debug (
if %PLATFORM%==x86 (
set PLATFORM=Win32
set SHORT_NAME=Dx86
goto :START
)
)
if %CONFIGURATION%==Debug (
if %PLATFORM%==x64 (
set PLATFORM=Win64
set SHORT_NAME=Dx64
goto :START
)
)
if %CONFIGURATION%==Mixed (
if %PLATFORM%==x86 (
set PLATFORM=Win32
set SHORT_NAME=Mx86
goto :START
)
)
if %CONFIGURATION%==Mixed (
if %PLATFORM%==x64 (
set PLATFORM=Win64
set SHORT_NAME=Mx64
goto :START
)
)
if %CONFIGURATION%==Release (
if %PLATFORM%==x86 (
set PLATFORM=Win32
set SHORT_NAME=Rx86
goto :START
)
)
if %CONFIGURATION%==Release (
if %PLATFORM%==x64 (
set PLATFORM=Win64
set SHORT_NAME=Rx64
goto :START
)
)
echo ! Unknown configuration and/or platform
goto :EOF
:START
md res\bin\
md res\bin\utils
call :COPY_ENGINE
cd res
7z a OpenXRay.%SHORT_NAME%.7z * -xr!.* -xr!*.pdb -x!bin\utils
7z a Symbols.%SHORT_NAME%.7z bin\*.pdb -i!License.txt -i!README.md -xr!.*
7z a Utils.%SHORT_NAME%.7z bin\utils\* -i!License.txt -i!README.md -xr!.*
cd ..
goto :EOF
:COPY_ENGINE
copy bin\%PLATFORM%\%CONFIGURATION%\*.dll res\bin\
copy bin\%PLATFORM%\%CONFIGURATION%\*.exe res\bin\
copy bin\%PLATFORM%\%CONFIGURATION%\*.pdb res\bin\
copy bin\%PLATFORM%\%CONFIGURATION%\utils\* res\bin\utils\
copy License.txt res\
copy README.md res\
goto :EOF