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:
Mark Pizzolato 2017-01-07 06:36:00 -08:00
parent ae25c72a8e
commit 39352914d0
2 changed files with 16 additions and 1 deletions

View file

@ -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 ..&#x0D;&#x0A;&quot;$(TargetPath)&quot;&#x0D;&#x0A;popd&#x0D;&#x0A;"
/>
</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 ..&#x0D;&#x0A;&quot;$(TargetPath)&quot;&#x0D;&#x0A;popd&#x0D;&#x0A;"
/>
</Configuration>
</Configurations>

View file

@ -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