axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c build.xml
Date Thu, 23 Sep 2004 14:46:43 GMT
dicka       2004/09/23 07:46:42

  Modified:    c        build.xml
  Log:
  Add ability to produce debug builds in ANT.  Use 'ant development' for debug
  
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.4       +21 -6     ws-axis/c/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	21 Sep 2004 14:00:59 -0000	1.3
  +++ build.xml	23 Sep 2004 14:46:42 -0000	1.4
  @@ -98,6 +98,7 @@
   	  -->
   		<!-- Definition of cc compile for Solaris -->
   		<compiler id="SolarisCC" name="CC" if="solaris">
  +			<compilerarg value="-g" if="debug"/>
   			<compilerarg value="-KPIC"/>
   			<compilerarg value="-xildoff"/>
   			<compilerarg value="-pta"/>
  @@ -119,11 +120,14 @@
   			<!-- Display all warnings -->
   			<compilerarg value="/W3"/>
   			<compilerarg value="/GX"/>
  +			<compilerarg value="/Gm" if="debug"/>
  +			<compilerarg value="/ZI" if="debug"/>
   			<compilerarg value="/Od"/>
   			<includepath path="${dir.include}"/>
   			<defineset>
   				<define name="WIN32"/>
  -				<define name="NDEBUG"/>
  +				<define name="_DEBUG" if="debug"/>
  +				<define name="NDEBUG" unless="debug"/>
   				<define name="_WINDOWS"/>
   				<define name="_MBCS"/>
   				<define name="_USRDLL"/>
  @@ -137,9 +141,9 @@
   		  Definition of gcc compile for Linux
   	      -->
   		<compiler id="Linuxgcc" name="g++" if="linux">
  +			<compilerarg value="-g" if="debug"/>
   			<compilerarg value="-Wall"/>
   			<compilerarg value="-Wshadow"/>
  -			<compilerarg value="-g"/>
   			<compilerarg value="-O2"/>
   			<defineset>
   				<define name="ENABLE_AXIS_EXCEPTION"/>
  @@ -153,7 +157,7 @@
   		  Definition of xlc compile for AIX
   	      -->
   		<compiler id="AIXxlc" name="xlC" if="aix">
  -			<compilerarg value="-g"/>
  +			<compilerarg value="-g" if="debug"/>
   			<compilerarg value="-V"/>
   			<compilerarg value="-qstaticinline"/>
   			<defineset>
  @@ -169,6 +173,7 @@
   	  -->
   		<!-- Definition of Solars linker -->
   		<linker id="SolarisLinker" name="CC" libtool="true" if="solaris">
  +			<linkerarg value="-g" if="debug"/>
   			<linkerarg value="-Qoption"/>
   			<linkerarg value="ld"/>
   			<linkerarg value="-zmuldefs"/>
  @@ -178,6 +183,7 @@
   		  Definition of Visual C++ linker
   		  -->
   		<linker id="VisualC++Linker" name="msvc" if="windows">
  +			<linkerarg value="/debug" if="debug"/>
   			<linkerarg value="/machine:I386"/>
   			<linkerarg value="/nologo"/>
   			<linkerarg value="/pdb:none"/>
  @@ -187,7 +193,7 @@
   	      Definition of Linux linker
   	      -->
   		<linker id="LinuxLinker" name="g++" libtool="true" if="linux">
  -			<linkerarg value="-g"/>
  +			<linkerarg value="-g" if="debug"/>
   			<libset libs="stdc++"/>
   		</linker>
   		
  @@ -195,8 +201,7 @@
   	      Definition of AIX linker
   	      -->
   		<linker id="AIXLinker" name="xlC" libtool="false" if="aix">
  -			<!-- debug is on for all -->
  -			<linkerarg value="-g"/>
  +			<linkerarg value="-g" if="debug"/>
   			<linkerarg value="-qmkshrobj=104"/>
   	 		<linkerarg value="-brtl"/>
   			<linkerarg value="-C"/>
  @@ -579,6 +584,16 @@
   	  -->
   	<target name="production" depends="addTrace, compile, documentation, package, validate"
   	 description="Build and package all artifacts ready for distribution"/>
  +
  +	<target name="addDebug">
  +		<property name="debug" value="true"/>
  +	</target>
  +
  +	<!--
  +	  Build and package all artifacts ready for distribution
  +	  -->
  +	<target name="development" depends="addDebug, addTrace, compile, documentation, package,
validate"
  +	 description="Build and package all artifacts"/>
   
   	<!--
   	  Remove all generated artifaces
  
  
  

Mime
View raw message