Visual Studio Projects: Make sure ROM checks used most recent BuildROMs
The BuildROMs project now runs the BuildROMs program that was most recently built (Debug or Release). This will identify ROM data inconsistencies that may exist at build time. When building other projects which may depend on ROM data, the BuildROMs is run as a sanity check and if it fails we make sure that we hadn't run an out of date Release build version of the BuildROMs binary.
This commit is contained in:
parent
ae25c72a8e
commit
39352914d0
2 changed files with 16 additions and 1 deletions
|
@ -35,6 +35,9 @@
|
|||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
|
@ -95,6 +98,8 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
Description="Verify ROM data"
|
||||
CommandLine="pushd ..
"$(TargetPath)"
popd
"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
|
@ -116,6 +121,9 @@
|
|||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
|
@ -178,6 +186,8 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
Description="Verify ROM data"
|
||||
CommandLine="pushd ..
"$(TargetPath)"
popd
"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
|
|
|
@ -123,8 +123,8 @@ if not "%_X_LIBPCRE%" == "" set _X_BUILD=BUILD
|
|||
|
||||
|
||||
:_do_rom
|
||||
if "%_X_ROM%" == "" goto _done_rom
|
||||
pushd ..
|
||||
if "%_X_ROM%" == "" goto _done_rom
|
||||
SET _BLD=
|
||||
if exist BIN\NT\Win32-Debug\BuildROMs.exe SET _BLD=BIN\NT\Win32-Debug\BuildROMs.exe
|
||||
if exist BIN\NT\Win32-Release\BuildROMs.exe SET _BLD=BIN\NT\Win32-Release\BuildROMs.exe
|
||||
|
@ -136,8 +136,13 @@ if "%_BLD%" == "" echo ************************************************
|
|||
if "%_BLD%" == "" echo ************************************************
|
||||
if "%_BLD%" == "" exit 1
|
||||
%_BLD%
|
||||
if not errorlevel 1 goto _done_rom
|
||||
if not exist "BIN\NT\Win32-Release\BuildROMs.exe" exit 1
|
||||
del "BIN\NT\Win32-Release\BuildROMs.exe"
|
||||
popd
|
||||
goto _do_rom
|
||||
:_done_rom
|
||||
popd
|
||||
|
||||
:_check_build
|
||||
if "%_X_BUILD%" == "" goto _done_build
|
||||
|
|
Loading…
Add table
Reference in a new issue