EgtGraphics 1.5i2 :

- aggiunti controlli contro debug in versioni release
- modifiche configurazione per copia DLL debug.
This commit is contained in:
Dario Sassi
2014-09-10 13:12:14 +00:00
parent 851693478b
commit c6a97c8bfc
3 changed files with 10 additions and 4 deletions
+6
View File
@@ -44,6 +44,12 @@ DllMain( HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
if ( dwReason == DLL_PROCESS_ATTACH) {
#if defined( NDEBUG)
BOOL IsDbgPresent = FALSE ;
CheckRemoteDebuggerPresent( GetCurrentProcess(), &IsDbgPresent) ;
if ( IsDbgPresent)
return 0 ;
#endif
s_hModule = hModule ;
EGT_TRACE( "EgtGraphics.dll Initializing!\n") ;
}
BIN
View File
Binary file not shown.
+4 -4
View File
@@ -107,7 +107,7 @@
<PostBuildEvent>
<Command>copy $(TargetDir)$(TargetName).pdb \EgtDev\Lib\
copy $(TargetDir)$(TargetName).lib \EgtDev\Lib\
copy $(TargetPath) \EgtProg\Dll32</Command>
copy $(TargetPath) \EgtProg\DllD32</Command>
</PostBuildEvent>
<ResourceCompile>
<PreprocessorDefinitions>_UNICODE;UNICODE;_DEBUG;_DEB32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -132,7 +132,7 @@ copy $(TargetPath) \EgtProg\Dll32</Command>
<PostBuildEvent>
<Command>copy $(TargetDir)$(TargetName).pdb \EgtDev\Lib\
copy $(TargetDir)$(TargetName).lib \EgtDev\Lib\
copy $(TargetPath) \EgtProg\Dll64</Command>
copy $(TargetPath) \EgtProg\DllD64</Command>
</PostBuildEvent>
<ResourceCompile>
<PreprocessorDefinitions>_UNICODE;UNICODE;_DEBUG;_DEB64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -157,7 +157,7 @@ copy $(TargetPath) \EgtProg\Dll64</Command>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
@@ -189,7 +189,7 @@ copy $(TargetPath) \EgtProg\Dll32</Command>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>