Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.05 KB

windows-buildbot-zipper.bat

File metadata and controls

40 lines (35 loc) · 1.05 KB
 
1
2
3
4
5
@echo off
rem just a helper batch file for collecting up files and zipping them.
rem usage: windows-buildbot-zipper.bat <zipfilename>
rem must be run from root of SDL source tree.
Jul 30, 2017
Jul 30, 2017
6
IF EXIST VisualC\Win32\Release GOTO okaywin32dir
7
8
9
echo Please run from root of source tree after doing a Release build.
GOTO done
Jul 30, 2017
Jul 30, 2017
10
:okaywin32dir
Jul 30, 2017
Jul 30, 2017
11
IF EXIST VisualC\x64\Release GOTO okaydirs
Jul 30, 2017
Jul 30, 2017
12
13
14
15
echo Please run from root of source tree after doing a Release build.
GOTO done
:okaydirs
16
17
18
19
20
21
22
23
24
25
erase /q /f /s zipper
IF EXIST zipper GOTO zippermade
mkdir zipper
:zippermade
cd zipper
mkdir SDL
cd SDL
mkdir include
mkdir lib
mkdir lib\win32
Jul 30, 2017
Jul 30, 2017
26
mkdir lib\win64
27
28
29
30
copy ..\..\include\*.h include\
copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\
copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\
copy ..\..\VisualC\Win32\Release\SDL2main.lib lib\win32\
Jul 30, 2017
Jul 30, 2017
31
32
33
copy ..\..\VisualC\x64\Release\SDL2.dll lib\win64\
copy ..\..\VisualC\x64\Release\SDL2.lib lib\win64\
copy ..\..\VisualC\x64\Release\SDL2main.lib lib\win64\
34
35
36
37
38
39
40
cd ..
zip -9r ..\%1 SDL
cd ..
erase /q /f /s zipper
:done