mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-18 12:16:45 -04:00
TS_RA2_Mission_Editor_sourcecode_23.02.2023_1
TS_RA2_Mission_Editor_sourcecode_23.02.2023_1
This commit is contained in:
commit
a547a31a37
377 changed files with 90136 additions and 0 deletions
26
scripts/build_and_distribute.bat
Normal file
26
scripts/build_and_distribute.bat
Normal file
|
@ -0,0 +1,26 @@
|
|||
@echo off
|
||||
echo This script is a convenience script for building a full FinalSun and FinalAlert 2 YR distribution. It is not required for daily development.
|
||||
|
||||
if "%VCINSTALLDIR%" == "" (
|
||||
if not exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" (
|
||||
echo Visual Studio 2022 Community Edition is not installed in "%ProgramFiles%\Microsoft Visual Studio\2022\Community". If you use another edition of Visual Studio, please activate a developer command prompt.
|
||||
exit /b 1
|
||||
)
|
||||
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x86 -host_arch=x86
|
||||
)
|
||||
|
||||
|
||||
@echo on
|
||||
pushd "%~dp0\.."
|
||||
rmdir /Q /S "%~dp0..\3rdParty\xcc\vcpkg_installed"
|
||||
msbuild "-p:VcpkgAdditionalInstallOptions=--binarysource clear """--downloads-root=%~dp0..\3rdParty\xcc\vcpkg_downloads""" """--x-buildtrees-root=%~dp0..\3rdParty\xcc\vcpkg_installed\x86-windows\_buildtrees"""" "-p:Configuration=FinalAlertRelease YR" -p:Platform=Win32 -p:DistributeMissionEditor=true /t:Rebuild MissionEditor.sln
|
||||
msbuild "-p:VcpkgAdditionalInstallOptions=--binarysource clear """--downloads-root=%~dp0..\3rdParty\xcc\vcpkg_downloads""" """--x-buildtrees-root=%~dp0..\3rdParty\xcc\vcpkg_installed\x86-windows\_buildtrees"""" "-p:Configuration=FinalAlertRelease" -p:Platform=Win32 -p:DistributeMissionEditor=true /t:Rebuild MissionEditor.sln
|
||||
msbuild "-p:VcpkgAdditionalInstallOptions=--binarysource clear """--downloads-root=%~dp0..\3rdParty\xcc\vcpkg_downloads""" """--x-buildtrees-root=%~dp0..\3rdParty\xcc\vcpkg_installed\x86-windows\_buildtrees"""" "-p:Configuration=FinalSunRelease" -p:Platform=Win32 -p:DistributeMissionEditor=true /t:Rebuild MissionEditor.sln
|
||||
|
||||
popd
|
||||
|
||||
pushd "%~dp0"
|
||||
call zip_sources.bat
|
||||
call zip_3rdParty_sources.bat
|
||||
popd
|
||||
|
15
scripts/install_sources_for_distribution.bat
Normal file
15
scripts/install_sources_for_distribution.bat
Normal file
|
@ -0,0 +1,15 @@
|
|||
@echo off
|
||||
echo This script not only installs the vcpkg packages (this is usually done automatically when building), but also makes the downloaded sources and the build sources (with VCPKG patches applied) available in this repository. This may be helpful for distributing, archiving and license compliance and is not required for daily development.
|
||||
|
||||
if "%VCINSTALLDIR%" == "" (
|
||||
if not exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" (
|
||||
echo Please activate a developer command prompt.
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
@echo on
|
||||
pushd "%~dp0..\3rdParty\xcc"
|
||||
rmdir /Q /S "%~dp0..\3rdParty\xcc\vcpkg_installed"
|
||||
vcpkg install --binarysource clear "--downloads-root=%~dp0..\3rdParty\xcc\vcpkg_downloads" "--x-install-root=%~dp0..\3rdParty\xcc\vcpkg_installed\x86-windows" "--x-buildtrees-root=%~dp0..\3rdParty\xcc\vcpkg_installed\x86-windows\_buildtrees" --triplet x86-windows
|
||||
popd
|
7
scripts/zip_3rdParty_sources.bat
Normal file
7
scripts/zip_3rdParty_sources.bat
Normal file
|
@ -0,0 +1,7 @@
|
|||
pushd %~dp0..\3rdParty\xcc
|
||||
echo "Creating a zip of the (possibly patched) sources (and their original downloads) that have been used to build the MissionEditor. This is for reference and ensuring the original sources are still available on demand. Otherwise, this is not for distribution as it contains a lot of temporary (and possibly legally restricted) files""
|
||||
if EXIST "%~dp0..\dist\MissionEditorExternalSources.zip" (
|
||||
del "%~dp0..\dist\MissionEditorExternalSources.zip"
|
||||
)
|
||||
tar.exe -a -c --exclude="PowerShell-*.zip" --exclude="powershell-*" --exclude="x86-windows-dbg" --exclude="x86-windows-rel" --exclude="vcpkg" --exclude="x64-windows" -f "%~dp0..\dist\MissionEditorExternalSources.zip" vcpkg_downloads vcpkg_installed
|
||||
popd
|
6
scripts/zip_sources.bat
Normal file
6
scripts/zip_sources.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
pushd "%~dp0\.."
|
||||
if EXIST "dist\MissionEditorSource.zip" (
|
||||
del dist\MissionEditorSource.zip
|
||||
)
|
||||
git archive -o "dist\MissionEditorSource.zip" HEAD
|
||||
popd
|
Loading…
Add table
Add a link
Reference in a new issue