build-scripts/windows-buildbot-zipper.bat
author Ryan C. Gordon <icculus@icculus.org>
Sun, 21 Oct 2018 22:40:17 -0400
changeset 12345 50e1cca28b39
parent 11169 df9e78e15a16
permissions -rw-r--r--
wasapi/win32: Sort initial device lists by device GUID.

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