DXGL r209 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r208‎ | r209 | r210 >
Date:01:32, 9 July 2012
Author:admin
Status:new
Tags:
Comment:
Generate version headers at start of ddraw.dll compilation, helps ensure revision gets updated in version headers
Modified paths:
  • /buildtool/buildtool.vcxproj (modified) (history)
  • /ddraw/ddraw.vcxproj (modified) (history)

Diff [purge]

Index: buildtool/buildtool.vcxproj
@@ -54,12 +54,8 @@
5555 <GenerateDebugInformation>true</GenerateDebugInformation>
5656 <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
5757 </Link>
58 - <PostBuildEvent>
59 - <Command>$(OutDir)$(TargetName)$(TargetExt) makeheader $(SolutionDir)common</Command>
60 - </PostBuildEvent>
61 - <PostBuildEvent>
62 - <Message>Build headers</Message>
63 - </PostBuildEvent>
 58+ <PostBuildEvent />
 59+ <PostBuildEvent />
6460 </ItemDefinitionGroup>
6561 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
6662 <ClCompile>
@@ -71,12 +67,8 @@
7268 <GenerateDebugInformation>true</GenerateDebugInformation>
7369 <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
7470 </Link>
75 - <PostBuildEvent>
76 - <Command>$(OutDir)$(TargetName)$(TargetExt) makeheader $(SolutionDir)common</Command>
77 - </PostBuildEvent>
78 - <PostBuildEvent>
79 - <Message>Build headers</Message>
80 - </PostBuildEvent>
 71+ <PostBuildEvent />
 72+ <PostBuildEvent />
8173 </ItemDefinitionGroup>
8274 <ItemGroup>
8375 <ClInclude Include="resource.h" />
Index: ddraw/ddraw.vcxproj
@@ -92,6 +92,12 @@
9393 <ModuleDefinitionFile>ddraw.def</ModuleDefinitionFile>
9494 <AdditionalDependencies>$(OutDir)cfgmgr.lib;glu32.lib;opengl32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
9595 </Link>
 96+ <PreBuildEvent>
 97+ <Command>$(OutDir)buildtool.exe makeheader $(SolutionDir)common</Command>
 98+ </PreBuildEvent>
 99+ <PreBuildEvent>
 100+ <Message>Create version headers</Message>
 101+ </PreBuildEvent>
96102 </ItemDefinitionGroup>
97103 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug no DXGL|Win32'">
98104 <ClCompile>
@@ -112,6 +118,12 @@
113119 </Link>
114120 <PostBuildEvent />
115121 <PostBuildEvent />
 122+ <PreBuildEvent>
 123+ <Command>$(OutDir)buildtool.exe makeheader $(SolutionDir)common</Command>
 124+ </PreBuildEvent>
 125+ <PreBuildEvent>
 126+ <Message>Create version headers</Message>
 127+ </PreBuildEvent>
116128 </ItemDefinitionGroup>
117129 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
118130 <ClCompile>
@@ -134,6 +146,12 @@
135147 <ModuleDefinitionFile>ddraw.def</ModuleDefinitionFile>
136148 <AdditionalDependencies>$(OutDir)cfgmgr.lib;glu32.lib;opengl32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
137149 </Link>
 150+ <PreBuildEvent>
 151+ <Command>$(OutDir)buildtool.exe makeheader $(SolutionDir)common</Command>
 152+ </PreBuildEvent>
 153+ <PreBuildEvent>
 154+ <Message>Create version headers</Message>
 155+ </PreBuildEvent>
138156 </ItemDefinitionGroup>
139157 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release no DXGL|Win32'">
140158 <ClCompile>
@@ -158,6 +176,12 @@
159177 <ImportLibrary>$(OutDir)ddraw.lib</ImportLibrary>
160178 </Link>
161179 <PostBuildEvent />
 180+ <PreBuildEvent>
 181+ <Command>$(OutDir)buildtool.exe makeheader $(SolutionDir)common</Command>
 182+ </PreBuildEvent>
 183+ <PreBuildEvent>
 184+ <Message>Create version headers</Message>
 185+ </PreBuildEvent>
162186 </ItemDefinitionGroup>
163187 <ItemGroup>
164188 <None Include="ddraw.def" />