mirror of
https://github.com/ProjectDreamland/area51.git
synced 2024-11-01 03:01:49 +01:00
150 lines
6.6 KiB
Text
150 lines
6.6 KiB
Text
// Set the project this build belongs to
|
|
PROJECT A51
|
|
|
|
// Sync to head revision
|
|
SYNC //depot/...#head
|
|
|
|
// Build the release notes
|
|
RELNOTES //depot/Projects/A51/... "a51_apps" "$OUT\Relnotes.txt"
|
|
|
|
// Version the Apps & Copy the Version file up
|
|
VERSION "C:\Projects\A51\Apps\Editor\Version.cpp"
|
|
VERSION "C:\Projects\A51\Apps\GameApp\Version.cpp"
|
|
COPY "C:\Projects\A51\Apps\Editor\Version.cpp" "$OUT\Version.cpp"
|
|
|
|
// Build PS2 Viewer
|
|
REBUILD "C:\projects\A51\Apps\GameApp\A51.sln" "PS2-Viewer"
|
|
COPY "C:\Projects\A51\Apps\GameApp\_PS2-Viewer\A51.elf" "$OUT\A51_Viewer.elf"
|
|
COPY "C:\Projects\A51\Apps\GameApp\_PS2-Viewer\A51.map.txt" "$OUT\A51_Viewer.map.txt"
|
|
COPY "$OUT\A51_Viewer.elf" "$OUT\A51_Viewer_Stripped.elf"
|
|
EE-STRIP "$OUT\A51_Viewer_Stripped.elf"
|
|
|
|
// Build PS2 QA
|
|
REBUILD "C:\Projects\A51\Apps\GameApp\A51.sln" "PS2-QA"
|
|
COPY "C:\Projects\A51\Apps\GameApp\_PS2-QA\A51.elf" "$OUT\A51_QA.elf"
|
|
COPY "C:\Projects\A51\Apps\GameApp\_PS2-QA\A51.map.txt" "$OUT\A51_QA.map.txt"
|
|
COPY "$OUT\A51_QA.elf" "$OUT\A51_QA_Stripped.elf"
|
|
EE-STRIP "$OUT\A51_QA_Stripped.elf"
|
|
|
|
// Build PS2 Retail
|
|
REBUILD "C:\Projects\A51\Apps\GameApp\A51.sln" "PS2-Retail"
|
|
COPY "C:\Projects\A51\Apps\GameApp\_PS2-Retail\A51.elf" "$OUT\A51_Retail.elf"
|
|
COPY "C:\Projects\A51\Apps\GameApp\_PS2-Retail\A51.map.txt" "$OUT\A51_Retail.map.txt"
|
|
COPY "$OUT\A51_Retail.elf" "$OUT\A51_Retail_Stripped.elf"
|
|
EE-STRIP "$OUT\A51_Retail_Stripped.elf"
|
|
|
|
// Get memory stats from the build
|
|
MEMORY_STATS "$OUT\A51_Retail.map.txt"
|
|
|
|
// Build Win32 Debug
|
|
//BUILD "C:\Projects\A51\Apps\GameApp\A51.sln" "WIN32-Debug"
|
|
|
|
// Build Xbox Debug
|
|
//BUILD "C:\Projects\A51\Apps\GameApp\A51.sln" "XBOX-Debug"
|
|
|
|
// Build Editor OptDebug
|
|
REBUILD "C:\Projects\A51\Apps\Editor\Editor.sln" "Editor-OptDebug"
|
|
COPY "C:\Projects\A51\Apps\Editor\_Editor-OptDebug\Editor.exe" "$OUT\Editor-OptDebug.exe"
|
|
COPY "C:\Projects\A51\Apps\Editor\_Editor-OptDebug\Editor.pdb" "$OUT\Editor-OptDebug.pdb"
|
|
|
|
// Compute Preload lists from source
|
|
PRELOAD "C:\Projects\A51" "$OUT"
|
|
|
|
// Create Install.bat
|
|
OPEN "$OUT\Install.bat"
|
|
> "REM Make sure everything is read-only so p4 doesn't error"
|
|
> "attrib +r C:\GameData\A51\Apps\Editor.exe"
|
|
> "attrib +r C:\GameData\A51\Apps\Editor.pdb"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\GameApp.elf"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\GameApp_DVD.elf"
|
|
> "attrib +r C:\GameData\A51\Apps\Compilers\*"
|
|
> "attrib +r C:\GameData\A51\Release\PC\PreloadFiles.txt"
|
|
> "attrib +r C:\GameData\A51\Release\PS2\PreloadFiles.txt"
|
|
> "attrib +r C:\GameData\A51\Release\XBox\PreloadFiles.txt"
|
|
> ""
|
|
> "REM Setup so we can overwrite"
|
|
> "attrib -r C:\GameData\A51\Apps\Editor.exe"
|
|
> "attrib -r C:\GameData\A51\Apps\Editor.pdb"
|
|
> "attrib -r C:\GameData\A51\Apps\Viewer\GameApp.elf"
|
|
> "attrib -r C:\GameData\A51\Apps\Viewer\GameApp_DVD.elf"
|
|
> "attrib -r C:\GameData\A51\Apps\Compilers\*"
|
|
> "attrib -r C:\GameData\A51\Release\PC\PreloadFiles.txt"
|
|
> "attrib -r C:\GameData\A51\Release\PS2\PreloadFiles.txt"
|
|
> "attrib -r C:\GameData\A51\Release\XBox\PreloadFiles.txt"
|
|
> ""
|
|
> "REM Install the new versions & the dev compilers"
|
|
> "copy /v Editor-OptDebug.exe C:\GameData\A51\Apps\Editor.exe"
|
|
> "copy /v Editor-OptDebug.pdb C:\GameData\A51\Apps\Editor.pdb"
|
|
> "copy /v A51_Viewer_Stripped.elf C:\GameData\A51\Apps\Viewer\GameApp.elf"
|
|
> "copy /v A51_QA_Stripped.elf C:\GameData\A51\Apps\Viewer\GameApp_DVD.elf"
|
|
> "copy /v C:\GameData\A51\Apps\Compilers_Dev\* C:\GameData\A51\Apps\Compilers\"
|
|
> "copy /v PreloadPC.txt C:\GameData\A51\Release\PC\PreloadFiles.txt"
|
|
> "copy /v PreloadPS2.txt C:\GameData\A51\Release\PS2\PreloadFiles.txt"
|
|
> "copy /v PreloadXBox.txt C:\GameData\A51\Release\XBox\PreloadFiles.txt"
|
|
CLOSE
|
|
|
|
// Create Uninstall.bat
|
|
OPEN "$OUT\Uninstall.bat"
|
|
> "REM Make sure everything is read-only so p4 doesn't error"
|
|
> "attrib +r C:\GameData\A51\Apps\Editor.exe"
|
|
> "attrib +r C:\GameData\A51\Apps\Editor.pdb"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\GameApp.elf"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\GameApp_DVD.elf"
|
|
> "attrib +r C:\GameData\A51\Apps\Compilers\*"
|
|
> "attrib +r C:\GameData\A51\Release\PC\PreloadFiles.txt"
|
|
> "attrib +r C:\GameData\A51\Release\PS2\PreloadFiles.txt"
|
|
> "attrib +r C:\GameData\A51\Release\XBox\PreloadFiles.txt"
|
|
> ""
|
|
> "REM Sync the local machine to what it had previously"
|
|
> "p4 sync -f C:\GameData\A51\Apps\...#have"
|
|
CLOSE
|
|
|
|
// Create Publish.bat
|
|
OPEN "$OUT\Publish.bat"
|
|
> "REM Make sure the editor & GameApp files are ReadOnly so p4 doesn't error"
|
|
> "attrib +r C:\GameData\A51\Apps\Editor.exe"
|
|
> "attrib +r C:\GameData\A51\Apps\Editor.pdb"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\GameApp.elf"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\GameApp_DVD.elf"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\A51_Viewer.map.txt"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\A51_QA.map.txt"
|
|
> "attrib +r C:\GameData\A51\Apps\Viewer\A51_Retail.map.txt"
|
|
> "attrib +r C:\GameData\A51\Apps\Compilers\*"
|
|
> "attrib +r C:\GameData\A51\Release\PC\PreloadFiles.txt"
|
|
> "attrib +r C:\GameData\A51\Release\PS2\PreloadFiles.txt"
|
|
> "attrib +r C:\GameData\A51\Release\XBox\PreloadFiles.txt"
|
|
> ""
|
|
> "REM Open files for edit"
|
|
> "p4 edit C:\GameData\A51\Apps\Editor.exe"
|
|
> "p4 edit C:\GameData\A51\Apps\Editor.pdb"
|
|
> "p4 edit C:\GameData\A51\Apps\Viewer\GameApp.elf"
|
|
> "p4 edit C:\GameData\A51\Apps\Viewer\GameApp_DVD.elf"
|
|
> "p4 edit C:\GameData\A51\Apps\Viewer\A51_Viewer.map.txt"
|
|
> "p4 edit C:\GameData\A51\Apps\Viewer\A51_QA.map.txt"
|
|
> "p4 edit C:\GameData\A51\Apps\Viewer\A51_Retail.map.txt"
|
|
> "p4 edit C:\GameData\A51\Apps\Compilers\*"
|
|
> "p4 edit C:\Projects\A51\Apps\Editor\Version.cpp"
|
|
> "p4 edit C:\Projects\A51\Apps\GameApp\Version.cpp"
|
|
> "p4 edit C:\GameData\A51\Release\PC\PreloadFiles.txt"
|
|
> "p4 edit C:\GameData\A51\Release\PS2\PreloadFiles.txt"
|
|
> "p4 edit C:\GameData\A51\Release\XBox\PreloadFiles.txt"
|
|
> ""
|
|
> "REM Copy the new files"
|
|
> "copy /v Editor-OptDebug.exe C:\GameData\A51\Apps\Editor.exe"
|
|
> "copy /v Editor-OptDebug.pdb C:\GameData\A51\Apps\Editor.pdb"
|
|
> "copy /v A51_Viewer_Stripped.elf C:\GameData\A51\Apps\Viewer\GameApp.elf"
|
|
> "copy /v A51_QA_Stripped.elf C:\GameData\A51\Apps\Viewer\GameApp_DVD.elf"
|
|
> "copy /v A51_Viewer.map.txt C:\GameData\A51\Apps\Viewer\A51_Viewer.map.txt"
|
|
> "copy /v A51_QA.map.txt C:\GameData\A51\Apps\Viewer\A51_QA.map.txt"
|
|
> "copy /v A51_Retail.map.txt C:\GameData\A51\Apps\Viewer\A51_Retail.map.txt"
|
|
> "copy /v C:\GameData\A51\Apps\Compilers_Dev\* C:\GameData\A51\Apps\Compilers\"
|
|
> "copy /v Version.cpp C:\Projects\A51\Apps\Editor\Version.cpp"
|
|
> "copy /v Version.cpp C:\Projects\A51\Apps\GameApp\Version.cpp"
|
|
> "copy /v PreloadPC.txt C:\GameData\A51\Release\PC\PreloadFiles.txt"
|
|
> "copy /v PreloadPS2.txt C:\GameData\A51\Release\PS2\PreloadFiles.txt"
|
|
> "copy /v PreloadXBox.txt C:\GameData\A51\Release\XBox\PreloadFiles.txt"
|
|
> ""
|
|
> "p4 counter a51_apps $CHANGELIST"
|
|
> ""
|
|
> "pause"
|
|
CLOSE
|