Files
firestorm/build-env/setup-mw4-build.bat
T
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

46 lines
2.0 KiB
Batchfile

@echo off
rem ===========================================================================
rem MW4 / BattleTech:FireStorm — VC6 command-line build environment
rem Extracted from the original build machine's disk image (drive E:).
rem Ordering below is the EXACT original, recovered from jeff's NTUSER.DAT:
rem HKCU\Software\Microsoft\DevStudio\6.0\Build System\Components\
rem Platforms\Win32 (x86)\Directories
rem ...rebased from the original install paths to the local build-env copies.
rem
rem Notes:
rem - DX core headers (ddraw/d3d/dinput) come from dx7asdk; DXMedia\include
rem has ONLY DirectShow headers, so listing DXMedia first is harmless.
rem - The DirectX/DirectShow .lib files were copied into VC98\Lib on the
rem original machine, which is why LIB lists only VC98 dirs. They are
rem pulled in via #pragma comment(lib,...) in GameOS\guids.cpp.
rem
rem Usage: open a cmd.exe, run this .bat, then build (see README.md).
rem ===========================================================================
set BUILDENV=%~dp0
if "%BUILDENV:~-1%"=="\" set BUILDENV=%BUILDENV:~0,-1%
set VSROOT=%BUILDENV%\VisualStudio6
set MSVCDir=%VSROOT%\VC98
set MSDevDir=%VSROOT%\Common\MSDev98
set VSCommonDir=%VSROOT%\Common
set DX7=%BUILDENV%\dx7asdk
set DXMEDIA=%BUILDENV%\DXMedia
rem --- PATH (original order, rebased) ---
set PATH=%MSDevDir%\Bin;%MSVCDir%\BIN;%VSCommonDir%\TOOLS;%VSCommonDir%\TOOLS\WINNT;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
rem --- INCLUDE (EXACT original order: DXMedia, DX7, VC98, MFC, ATL) ---
set INCLUDE=%DXMEDIA%\include;%DX7%\include;%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%MSVCDir%\ATL\INCLUDE
rem --- LIB (EXACT original: VC98 only; DX libs live inside VC98\Lib) ---
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB
echo Environment set for MW4/FireStorm VC6 build (exact original ordering).
echo VSROOT = %VSROOT%
echo DX7 = %DX7%
echo DXMEDIA = %DXMEDIA%
echo.
echo INCLUDE: DXMedia -^> dx7asdk -^> VC98(INCLUDE,MFC,ATL)
echo LIB: VC98(LIB,MFC\LIB) [DX/DShow .libs are inside VC98\LIB]