[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix win32 visual studio 6 debug build failure

From: G.J. Doornink <dkg_at_xs4all.nl>
Date: 2006-08-25 22:38:33 CEST

Hello,

At the moment the win32 debug build using visual studio 6 fails on those
.dsp files that contain Custom Build directives, like for example
javahl_java_msvc.dsp.

It appears that msdev, when encountering Custom Build directives in the
.dsp file that are not specified for both the Release and Debug target,
only uses those Custom Build directives for the Release target. This can
be shown when opening such a .dsp file in visual studio. It will show
that in the project settings the Custom Build directives are only shown
for the Release target.

The attached patch fixes this problem by specifying the (same) Custom
Build directives separately for the Release and the Debug target, using:

!IF "$(CFG)" == "javahl_java - Win32 Debug"
!ELSEIF "$(CFG)" == "javahl_java - Win32 Release"
!ENDIF

[[
Fix Debug target build failure by explicitly specifying the
Custom Build directives for both the Release and Debug target.

* build/generator/msvc_dsp.ezt
  Fix Debug target build failure by explicitly specifying the
  Custom Build directives for both the Release and Debug target.
]]

Kind regards,

Gerrit Jan

-- 
G.J. Doornink <dkg@xs4all.nl>

Index: build/generator/msvc_dsp.ezt
===================================================================
--- build/generator/msvc_dsp.ezt (revision 21158)
+++ build/generator/msvc_dsp.ezt (working copy)
@@ -64,6 +64,8 @@
 !ENDIF
 [end][for sources.user_deps][if-index sources.user_deps first]
 USERDEP__=[else] [end]"[sources.user_deps]"[end][if-any sources.custom_build]
+[for platforms][for configs]
+![if-index platforms first][if-index configs first][else]ELSE[end][else]ELSE[end]IF "$(CFG)" == "[target.proj_name] - [platforms] [configs.name]"
 
 # Begin Custom Build
 
@@ -73,7 +75,8 @@
 [if-any sources.custom_build] [sources.custom_build]
 [end]
 # End Custom Build
-
+[end][end]
+!ENDIF
 [end]
 # End Source File
 [end]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 25 22:43:51 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.