2016-04-28 17:26:03 -04:00
|
|
|
rem ================ VS Official Build Package Tool ===============
|
2013-11-12 13:06:37 -05:00
|
|
|
rem
|
2016-04-28 17:26:03 -04:00
|
|
|
rem This is used to assemble the official build binaries into
|
|
|
|
rem three 7zip files for one compiler version. It is normally
|
|
|
|
rem run by the makepackages.bat tool but can be run from the command line.
|
2013-11-12 13:06:37 -05:00
|
|
|
rem
|
2016-04-28 17:26:03 -04:00
|
|
|
rem Do not run this until after the official packages have
|
|
|
|
rem been built.
|
2013-11-12 13:06:37 -05:00
|
|
|
rem
|
2016-04-28 17:26:03 -04:00
|
|
|
rem Open a command prompt. Switch to the build\tools\msvs
|
|
|
|
rem directory.
|
|
|
|
rem
|
|
|
|
rem package major minor revision compilerversion
|
|
|
|
rem for example: package 3 1 0 vc140
|
2013-11-12 13:06:37 -05:00
|
|
|
rem
|
|
|
|
rem ========================================================
|
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
call getversion.bat
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
if "%1" == "" goto ERR_NOPARM
|
2013-11-12 13:06:37 -05:00
|
|
|
|
|
|
|
path=%path%;"C:\Program Files\7-Zip"
|
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
rem Add path to fciv (the sha tool) if it is not already
|
|
|
|
rem in the path.
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
set VCver=%1
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
rem packages will be located in wx install folder\packages
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
set packagePath=build\msw\packages
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
rem Change to wx root folder
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
set curr_dir1=%cd%
|
|
|
|
cd ..\..\..
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
mkdir %packagePath%
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
set wxLibVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
set wxDLLVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%
|
|
|
|
if "%wxMINOR_VERSION%" == "1" set wxDLLVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%%wxRELEASE_NUMBER%
|
|
|
|
if "%wxMINOR_VERSION%" == "3" set wxDLLVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%%wxRELEASE_NUMBER%
|
|
|
|
if "%wxMINOR_VERSION%" == "5" set wxDLLVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%%wxRELEASE_NUMBER%
|
|
|
|
if "%wxMINOR_VERSION%" == "7" set wxDLLVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%%wxRELEASE_NUMBER%
|
|
|
|
if "%wxMINOR_VERSION%" == "9" set wxDLLVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%%wxRELEASE_NUMBER%
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
if "%1" == "sha" goto SHA
|
2013-11-12 13:06:37 -05:00
|
|
|
|
|
|
|
rem Get rid of any files from the last run.
|
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
del %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_Dev.7z
|
|
|
|
del %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_ReleaseDLL.7z
|
|
|
|
del %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_ReleasePDB.7z
|
|
|
|
del %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_Dev.7z
|
|
|
|
del %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleaseDLL.7z
|
|
|
|
del %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleasePDB.7z
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
rem Package the 32 bit files
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
7z a -t7z %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_Dev.7z lib\%VCver%_dll\mswud lib\%VCver%_dll\mswu lib\%VCver%_dll\wxMSW%wxDllVers%ud_*.pdb lib\%VCver%_dll\wxbase%wxDllVers%ud_*.pdb lib\%VCver%_dll\wxMSW%wxDllVers%ud_*.dll lib\%VCver%_dll\wxbase%wxDllVers%u*.dll lib\%VCver%_dll\*.lib
|
|
|
|
7z a -t7z %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_ReleaseDLL.7z lib\%VCver%_dll\wxMSW%wxDllVers%u_*.dll lib\%VCver%_dll\wxbase%wxDllVers%u_*.dll
|
|
|
|
7z a -t7z %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_ReleasePDB.7z lib\%VCver%_dll\wxMSW%wxDllVers%u_*.pdb lib\%VCver%_dll\wxbase%wxDllVers%u_*.pdb
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
rem Package the 64 bit files
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
7z a -t7z %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_Dev.7z lib\%VCver%_x64_dll\mswud lib\%VCver%_x64_dll\mswu lib\%VCver%_x64_dll\wxMSW%wxDllVers%ud_*.pdb lib\%VCver%_x64_dll\wxbase%wxDllVers%ud_*.pdb lib\%VCver%_x64_dll\wxMSW%wxDllVers%ud_*.dll lib\%VCver%_x64_dll\wxbase%wxDllVers%ud_*.dll lib\%VCver%_x64_dll\*.lib
|
|
|
|
7z a -t7z %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleaseDLL.7z lib\%VCver%_x64_dll\wxMSW%wxDllVers%u_*.dll lib\%VCver%_x64_dll\wxbase%wxDllVers%u_*.dll
|
|
|
|
7z a -t7z %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleasePDB.7z lib\%VCver%_x64_dll\wxMSW%wxDllVers%u_*.pdb lib\%VCver%_x64_dll\wxbase%wxDllVers%u_*.pdb
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
del %packagePath%\%VCver%_sha1.txt
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
fciv %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_Dev.7z -sha1 -wp >> %packagePath%\%VCver%_sha1.txt
|
|
|
|
fciv %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_ReleaseDLL.7z -sha1 -wp >> %packagePath%\%VCver%_sha1.txt
|
|
|
|
fciv %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_ReleasePDB.7z -sha1 -wp >> %packagePath%\%VCver%_sha1.txt
|
|
|
|
fciv %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_Dev.7z -sha1 -wp >> %packagePath%\%VCver%_sha1.txt
|
|
|
|
fciv %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleaseDLL.7z -sha1 -wp >> %packagePath%\%VCver%_sha1.txt
|
|
|
|
fciv %packagePath%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleasePDB.7z -sha1 -wp >> %packagePath%\%VCver%_sha1.txt
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
goto End
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
:SHA
|
2013-11-12 13:06:37 -05:00
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
fciv %packagePath% -type *.7z -sha1 -wp >> %packagePath%\sha1.txt
|
2013-11-12 13:06:37 -05:00
|
|
|
|
|
|
|
goto End
|
|
|
|
|
|
|
|
:ERR_NOPARM
|
|
|
|
@echo.
|
|
|
|
@echo ERROR: NO PARAMETER SUPPLIED
|
|
|
|
@echo MajorVers MinorVers BuildVers
|
|
|
|
|
|
|
|
:End
|
|
|
|
|
2016-04-28 17:26:03 -04:00
|
|
|
cd %curr_dir1%
|