Add Disasm to the projects.

Add build rules for incrementing the build number.  (Note that since
VC6 doesn't have pre-build rules, we have to compile and link it manually.
It's a somewhat ugly hack, but it works.  In VC7 we can just make it a
normal source file and regenerate it as a pre-build step.)

Turn on .MAP generation.  Make sure it always goes into the intermed
path, so it doesn't clutter the output path.

Add rules for generating the VDI debug file from .MAPs.

(I'm not committing the code to actually enable this yet; I want to iron
out any problems these build rules cause first.)
This commit is contained in:
Glenn Maynard
2002-08-29 00:20:09 +00:00
parent d7f88eb1dd
commit 2b51ea0d05
2 changed files with 138 additions and 7 deletions
+96 -3
View File
@@ -53,7 +53,15 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo /o"../StepMania-StackTrace.bsc"
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 /nologo /subsystem:windows /debug /machine:I386
# ADD LINK32 $(intdir)\verstub.obj /nologo /subsystem:windows /map /debug /machine:I386
# Begin Special Build Tool
IntDir=.\../Release
TargetDir=\temp\stepmania
TargetName=StepMania
SOURCE="$(InputPath)"
PreLink_Cmds=verinc cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)\
PostBuild_Cmds=mapconv $(IntDir)\$(TargetName).map $(TargetDir)\StepMania.vdi ia32.vdi
# End Special Build Tool
!ELSEIF "$(CFG)" == "StepMania - Win32 Debug"
@@ -69,7 +77,8 @@ LINK32=link.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "DEBUG" /FR /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "DEBUG" /YX"stdafx.h" /FD /GZ /c
# SUBTRACT CPP /Fr
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
@@ -79,7 +88,16 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 /nologo /subsystem:windows /profile /debug /machine:I386 /out:"../StepMania-debug.exe"
# ADD LINK32 $(intdir)\verstub.obj /nologo /subsystem:windows /map /debug /machine:I386 /out:"../StepMania-debug.exe"
# SUBTRACT LINK32 /profile /incremental:no /nodefaultlib
# Begin Special Build Tool
IntDir=.\../Debug
TargetDir=\temp\stepmania
TargetName=StepMania-debug
SOURCE="$(InputPath)"
PreLink_Cmds=verinc cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)\
PostBuild_Cmds=mapconv $(IntDir)\$(TargetName).map $(TargetDir)\StepMania.vdi ia32.vdi
# End Special Build Tool
!ENDIF
@@ -93,6 +111,15 @@ LINK32=link.exe
# Begin Source File
SOURCE=.\RageBitmapTexture.cpp
!IF "$(CFG)" == "StepMania - Win32 Release"
!ELSEIF "$(CFG)" == "StepMania - Win32 Debug"
# ADD CPP /YX
!ENDIF
# End Source File
# Begin Source File
@@ -405,6 +432,15 @@ SOURCE=.\ScreenDimensions.h
# Begin Source File
SOURCE=.\StdAfx.cpp
!IF "$(CFG)" == "StepMania - Win32 Release"
!ELSEIF "$(CFG)" == "StepMania - Win32 Debug"
# ADD CPP /Yc"stdafx.h"
!ENDIF
# End Source File
# Begin Source File
@@ -969,6 +1005,15 @@ SOURCE=.\ScreenEdit.h
# Begin Source File
SOURCE=.\ScreenEditMenu.cpp
!IF "$(CFG)" == "StepMania - Win32 Release"
!ELSEIF "$(CFG)" == "StepMania - Win32 Debug"
# ADD CPP /YX"stdafx.h"
!ENDIF
# End Source File
# Begin Source File
@@ -1279,12 +1324,60 @@ SOURCE=.\ThemeManager.cpp
SOURCE=.\ThemeManager.h
# End Source File
# End Group
# Begin Group "Disasm"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\Crash.cpp
# End Source File
# Begin Source File
SOURCE=.\Crash.h
# End Source File
# Begin Source File
SOURCE=.\CrashList.h
# End Source File
# Begin Source File
SOURCE=.\Disasm.cpp
# End Source File
# Begin Source File
SOURCE=.\Disasm.h
# End Source File
# Begin Source File
SOURCE=.\Tls.cpp
# End Source File
# Begin Source File
SOURCE=.\Tls.h
# End Source File
# End Group
# Begin Group "Utils"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\fnmatch.c
# End Source File
# Begin Source File
SOURCE=.\fnmatch.h
# End Source File
# End Group
# Begin Source File
SOURCE=.\error.bmp
# End Source File
# Begin Source File
SOURCE=.\error2.bmp
# End Source File
# Begin Source File
SOURCE=.\loading.bmp
# End Source File
# End Target
+42 -4
View File
@@ -47,6 +47,9 @@
IgnoreAllDefaultLibraries="FALSE"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\../StepMania-debug.pdb"
GenerateMapFile="TRUE"
MapFileName="$(IntDir)\$(TargetName).map"
MapExports="TRUE"
SubSystem="2"/>
<Tool
Name="VCMIDLTool"
@@ -56,9 +59,11 @@
TargetEnvironment="1"
TypeLibraryName=".\../StepMania.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
Name="VCPostBuildEventTool"
CommandLine="mapconv $(IntDir)\$(TargetName).map $(TargetDir)\StepMania.vdi ia32.vdi"/>
<Tool
Name="VCPreBuildEventTool"/>
Name="VCPreBuildEventTool"
CommandLine="verinc"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
@@ -114,6 +119,9 @@
LinkIncremental="1"
SuppressStartupBanner="TRUE"
ProgramDatabaseFile=".\../StepMania.pdb"
GenerateMapFile="TRUE"
MapFileName="$(IntDir)\$(TargetName).map"
MapExports="TRUE"
SubSystem="2"/>
<Tool
Name="VCMIDLTool"
@@ -123,9 +131,11 @@
TargetEnvironment="1"
TypeLibraryName=".\../StepMania.tlb"/>
<Tool
Name="VCPostBuildEventTool"/>
Name="VCPostBuildEventTool"
CommandLine="mapconv $(IntDir)\$(TargetName).map $(TargetDir)\StepMania.vdi ia32.vdi"/>
<Tool
Name="VCPreBuildEventTool"/>
Name="VCPreBuildEventTool"
CommandLine="verinc"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
@@ -1049,6 +1059,34 @@
RelativePath=".\ThemeManager.h">
</File>
</Filter>
<Filter
Name="Disasm"
Filter="">
<File
RelativePath="Crash.cpp">
</File>
<File
RelativePath="Crash.h">
</File>
<File
RelativePath="CrashList.h">
</File>
<File
RelativePath="Disasm.cpp">
</File>
<File
RelativePath="Disasm.h">
</File>
<File
RelativePath="Tls.cpp">
</File>
<File
RelativePath="Tls.h">
</File>
<File
RelativePath="verstub.cpp">
</File>
</Filter>
<File
RelativePath=".\error.bmp">
</File>