initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
1
libs/wxWidgets-3.3.1/build/tools/msvs/buildall.bat
Executable file
1
libs/wxWidgets-3.3.1/build/tools/msvs/buildall.bat
Executable file
@@ -0,0 +1 @@
|
||||
start cmd /k Call officialbuild.bat vc14x
|
||||
3
libs/wxWidgets-3.3.1/build/tools/msvs/getversion.bat
Normal file
3
libs/wxWidgets-3.3.1/build/tools/msvs/getversion.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
set wxMAJOR_VERSION=3
|
||||
set wxMINOR_VERSION=3
|
||||
set wxRELEASE_NUMBER=1
|
||||
112
libs/wxWidgets-3.3.1/build/tools/msvs/officialbuild.bat
Executable file
112
libs/wxWidgets-3.3.1/build/tools/msvs/officialbuild.bat
Executable file
@@ -0,0 +1,112 @@
|
||||
@echo off
|
||||
|
||||
rem SetLocal EnableDelayedExpansion
|
||||
|
||||
if "%1" == "" goto ERR_NOPARM
|
||||
|
||||
set curr_dir=%cd%
|
||||
|
||||
cd ..\..\msw
|
||||
|
||||
rem VS2017 changes the build directory when environment batch files
|
||||
rem are called, so remember where we are building from.
|
||||
|
||||
set "VSCMD_START_DIR=%CD%"
|
||||
|
||||
rem ================ wxWidgets Official Build ===============
|
||||
rem
|
||||
rem Open a command prompt and run this from the build\tools\msvs folder.
|
||||
rem Specify the compiler version to use.
|
||||
rem
|
||||
rem ========================================================
|
||||
|
||||
set compvers="Unknown"
|
||||
|
||||
if "%1" == "vc14x" (
|
||||
@echo Building for vc14x with vs2015
|
||||
set comp=14x
|
||||
set compvers=vc14x
|
||||
call "%VS140COMNTOOLS%VsDevCmd.bat"
|
||||
)
|
||||
|
||||
if %compvers% == "Unknown" goto ERR_UNKNOWNCOMP
|
||||
|
||||
rem Return to the build directory in case we have been moved elsewhere.
|
||||
|
||||
cd %VSCMD_START_DIR%
|
||||
|
||||
@echo Removing the existing destination so that a complete rebuild occurs.
|
||||
|
||||
rmdir %compvers%_mswuddll_x64 /s /q
|
||||
rmdir %compvers%_mswudll_x64 /s /q
|
||||
|
||||
rmdir ..\..\lib\%compvers%_x64_dll /s /q
|
||||
|
||||
@echo Delete the build output files from the last run.
|
||||
|
||||
del %compvers%x64_Debug.txt
|
||||
del %compvers%x64_Release.txt
|
||||
|
||||
if "%compvers%" == "vc14x" call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x64 10.0.17763.0
|
||||
|
||||
@echo 64 bit release build
|
||||
|
||||
nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=%comp% OFFICIAL_BUILD=1 TARGET_CPU=AMD64 >> %compvers%x64_Release.txt
|
||||
|
||||
if ERRORLEVEL 1 goto ERR_BUILD
|
||||
|
||||
set build_dir=%cd%
|
||||
|
||||
cd ..\..\utils\wxrc
|
||||
|
||||
rmdir %compvers%_mswudll_x64 /s /q
|
||||
del %compvers%x64_Release.txt
|
||||
nmake -f makefile.vc BUILD=release SHARED=1 COMPILER_VERSION=%comp% OFFICIAL_BUILD=1 TARGET_CPU=AMD64 >> %compvers%x64_Release.txt
|
||||
|
||||
if ERRORLEVEL 1 goto ERR_BUILD
|
||||
|
||||
cd %build_dir%
|
||||
|
||||
@echo 64 bit debug build
|
||||
|
||||
nmake -f makefile.vc BUILD=debug SHARED=1 COMPILER_VERSION=%comp% OFFICIAL_BUILD=1 TARGET_CPU=AMD64 >> %compvers%x64_Debug.txt
|
||||
|
||||
if ERRORLEVEL 1 goto ERR_BUILD
|
||||
|
||||
@echo Building Packages
|
||||
|
||||
cd %curr_dir%
|
||||
|
||||
call package %compvers%
|
||||
|
||||
goto End
|
||||
|
||||
:ERR_BUILD
|
||||
|
||||
goto End
|
||||
@echo.
|
||||
@echo BUILD ERROR
|
||||
|
||||
:ERR_UNKNOWNCOMP
|
||||
@echo.
|
||||
@echo UNKNOWN COMPILER VERSION
|
||||
goto VERSIONS
|
||||
|
||||
goto End
|
||||
|
||||
:ERR_NOPARM
|
||||
@echo.
|
||||
@echo ERROR: NO PARAMETER SUPPLIED
|
||||
goto VERSIONS
|
||||
|
||||
:VERSIONS
|
||||
@echo.
|
||||
@echo Compiler Version:
|
||||
@echo vc14x (Requires VS2015)
|
||||
@echo.
|
||||
|
||||
:End
|
||||
|
||||
@echo Finished.
|
||||
|
||||
cd %curr_dir%
|
||||
102
libs/wxWidgets-3.3.1/build/tools/msvs/package.bat
Executable file
102
libs/wxWidgets-3.3.1/build/tools/msvs/package.bat
Executable file
@@ -0,0 +1,102 @@
|
||||
rem ================ VS Official Build Package Tool ===============
|
||||
rem
|
||||
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.
|
||||
rem
|
||||
rem Do not run this until after the official packages have
|
||||
rem been built.
|
||||
rem
|
||||
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
|
||||
rem
|
||||
rem ========================================================
|
||||
|
||||
call getversion.bat
|
||||
|
||||
if "%1" == "" goto ERR_NOPARM
|
||||
|
||||
path=%path%;"C:\Program Files\7-Zip"
|
||||
|
||||
rem Add path to fciv (the sha tool) if it is not already
|
||||
rem in the path.
|
||||
|
||||
set VCver=%1
|
||||
|
||||
rem packages will be located in wx install folder\packages
|
||||
|
||||
set packagePath=build\msw\packages
|
||||
|
||||
rem Change to wx root folder
|
||||
|
||||
set curr_dir1=%cd%
|
||||
cd ..\..\..
|
||||
set base_dir=%cd%
|
||||
|
||||
mkdir %packagePath%
|
||||
mkdir %packagePath%\%VCver%
|
||||
|
||||
set wxLibVers=%wxMAJOR_VERSION%%wxMINOR_VERSION%
|
||||
|
||||
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%
|
||||
|
||||
rem Get rid of any files from the last run.
|
||||
|
||||
del %packagePath%\%VCver%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_Dev.7z
|
||||
del %packagePath%\%VCver%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleaseDLL.7z
|
||||
del %packagePath%\%VCver%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleasePDB.7z
|
||||
|
||||
rem Package the 64 bit files
|
||||
|
||||
REM Copy wxrc.exe to the dll folder.
|
||||
copy utils\wxrc\%VCver%_x64_mswudll\wxrc.exe lib\%VCver%_x64_dll
|
||||
|
||||
7z a -t7z %packagePath%\%VCver%\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%u*.dll lib\%VCver%_x64_dll\*.lib lib\%VCver%_x64_dll\wxrc.exe
|
||||
7z a -t7z %packagePath%\%VCver%\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%\%VCver%\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
|
||||
|
||||
rem Include the props files: we need wxwidgets.props itself and wx_setup.props
|
||||
rem included from it.
|
||||
7z a -t7z %packagePath%\%VCver%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_Dev.7z build\msw\wx_setup.props
|
||||
|
||||
copy wxwidgets.props %packagePath%\%VCver%\wxwidgets.props
|
||||
|
||||
rem Change to the directory containing wxwidgets.props in order to include it
|
||||
rem into the archive without any path.
|
||||
cd %packagePath%\%VCver%
|
||||
|
||||
7z a -t7z wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_Dev.7z wxwidgets.props
|
||||
|
||||
del wxwidgets.props
|
||||
|
||||
rem Change to the directory containing licence file in order to include it
|
||||
rem into the archives without any path.
|
||||
cd %base_dir%\docs
|
||||
|
||||
7z a -t7z ..\%packagePath%\%VCver%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_Dev.7z licence.txt
|
||||
7z a -t7z ..\%packagePath%\%VCver%\wxMSW-%wxMAJOR_VERSION%.%wxMINOR_VERSION%.%wxRELEASE_NUMBER%_%VCver%_x64_ReleaseDLL.7z licence.txt
|
||||
|
||||
cd ..\%packagePath%\%VCver%
|
||||
del sha1.txt
|
||||
rem fciv requires a complete path to files
|
||||
fciv %cd%\. -type *.7z -sha1 -wp >> sha1.txt
|
||||
|
||||
|
||||
goto End
|
||||
|
||||
:ERR_NOPARM
|
||||
@echo.
|
||||
@echo ERROR: NO PARAMETER SUPPLIED
|
||||
@echo MajorVers MinorVers BuildVers
|
||||
|
||||
:End
|
||||
|
||||
cd %curr_dir1%
|
||||
Reference in New Issue
Block a user