You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ha...@apache.org on 2004/09/09 18:30:57 UTC

cvs commit: ws-axis/c build.SunOS.properties build.xml

hawkeye     2004/09/09 09:30:57

  Modified:    c        build.xml
  Added:       c        build.SunOS.properties
  Log:
  Solaris additions to ANT build script
  
  Submitted by: Valentine Kouznetsov
  Reviewed by: Adrian Dick
  
  Revision  Changes    Path
  1.2       +31 -0     ws-axis/c/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	6 Sep 2004 16:31:12 -0000	1.1
  +++ build.xml	9 Sep 2004 16:30:57 -0000	1.2
  @@ -47,6 +47,19 @@
   	<!--
   	  Compiler Definitions
   	  -->
  +		<!-- Definition of cc compile for Solaris -->
  +		<compiler id="SolarisCC" name="CC" if="solaris">
  +			<compilerarg value="-KPIC"/>
  +			<compilerarg value="-xildoff"/>
  +			<compilerarg value="-pta"/>
  +			<compilerarg value="-instances=global"/>
  +			<defineset>
  +				<define name="ENABLE_AXIS_EXCEPTION"/>
  +				<define name="HAVE_CONFIG_H"/>
  +				<define name="PIC"/>
  +			</defineset>
  +			<includepath path="${dir.include}"/>
  +		</compiler>
   
   		<!--
   		  Definition of Visual C++ compiler
  @@ -105,6 +118,12 @@
   	<!--
   	  Linker Definitions
   	  -->
  +		<!-- Definition of Solars linker -->
  +		<linker id="SolarisLinker" name="CC" libtool="true" if="solaris">
  +			<linkerarg value="-Qoption"/>
  +			<linkerarg value="ld"/>
  +			<linkerarg value="-zmuldefs"/>
  +		</linker>
   
   		<!--
   		  Definition of Visual C++ linker
  @@ -149,6 +168,9 @@
   	  Determine platform
   	  -->
   	<target name="pre-init">
  +		<condition property="solaris">
  +            	<os name="SunOS"/>
  +		</condition>
   		<condition property="windows">
   			<os family="windows"/>
   		</condition>
  @@ -164,6 +186,9 @@
   	  Initialize properties
         -->
   	<target name="initialize" depends="pre-init">
  +		<condition property="platform" value="SunOS">
  +			<isset property="solaris"/>
  +		</condition>
   		<condition property="platform" value="Win32">
   			<isset property="windows"/>
   		</condition>
  @@ -187,6 +212,7 @@
   		<cc outfile="${dir.bin}/${clientLibraryName}" objdir="${dir.objects}"
   		 exceptions="true" failonerror="false" outtype="shared" multithreaded="true">
   		  	<!-- Compilers -->
  +			<compiler refid="SolarisCC"/>
   			<compiler refid="Linuxgcc"/>
   			<compiler refid="AIXxlc"/>
   			<compiler extends="VisualC++">
  @@ -199,6 +225,7 @@
   				<define name="AXIS_CLIENT_LIB"/>
   			</defineset>
   			<!-- Linkers -->
  +			<linker refid="SolarisLinker"/>
   			<linker refid="LinuxLinker"/>
   			<linker refid="AIXLinker"/>
   			<linker refid="VisualC++Linker"/>
  @@ -228,6 +255,7 @@
   		<cc outfile="${dir.bin}/${transportLibraryName}" objdir="${dir.objects}"
   		 exceptions="true" failonerror="false" outtype="shared" multithreaded="true">
   			<!-- Compilers -->
  +			<compiler refid="SolarisCC"/>
   			<compiler refid="Linuxgcc"/>
   			<compiler refid="AIXxlc"/>
   			<compiler extends="VisualC++">
  @@ -236,6 +264,7 @@
   				</defineset>
   			</compiler>
   			<!-- Linkers -->
  +			<linker refid="SolarisLinker"/>
   			<linker refid="LinuxLinker"/>
   			<linker refid="AIXLinker"/>
   			<linker extends="VisualC++Linker">
  @@ -259,6 +288,7 @@
   		<cc outfile="${dir.bin}/${xmlParserLibraryName}" objdir="${dir.objects}"
   		 exceptions="true" failonerror="false" outtype="shared" multithreaded="true">
   		 	<!-- Compilers -->
  +			<compiler refid="SolarisCC"/>
   			<compiler refid="Linuxgcc"/>
   			<compiler refid="AIXxlc"/>
   			<compiler extends="VisualC++">
  @@ -270,6 +300,7 @@
   			<includepath path="${dir.xmlParser}/include"/>
   			<includepath path="${dir.xmlParser}/lib"/>
   			<!-- Linkers -->
  +			<linker refid="SolarisLinker"/>
   			<linker refid="VisualC++Linker"/>
   			<linker refid="LinuxLinker"/>
   			<linker refid="AIXLinker"/>
  
  
  
  1.1                  ws-axis/c/build.SunOS.properties
  
  Index: build.SunOS.properties
  ===================================================================
  #####################
  # Parser Properties #
  #####################
  
  # Typical values are:
  #		 For Xerces, on Windows:
  #		 		 xmlParser = xerces
  #		 		 xmlParserLibrary = xerces-c_2
  #		 For Xerces, on Unix:
  #		 		 xmlParser = xerces
  #		 		 xmlParserLibrary = xerces-c
  #		 For Expat, on Unix:
  #		 		 xmlParser = expat
  #		 		 xmlParserLibrary = expat
  
  # Parser to be used
  xmlParser = expat
  
  # Name of parser library to link against
  xmlParserLibrary = expat
  
  # Location of parser
  dir.xmlParser = ${env.EXPAT_HOME}
  
  #######################################
  # Properties for compiling C/C++ code #
  #######################################
  
  # Directory in which to place compiled libraries
  dir.bin = ${basedir}/deploy/lib
  
  # Directory in which to place object files
  dir.objects = ${basedir}/lib/axis
  
  # Names for compiled libraries - excluding any prefix or suffix
  # eg: For Windows :   libaxis_client will produce libaxis_client.dll
  #     For Unix    :   axis_client will produce libaxis_client.so
  clientLibraryName = axiscpp_client
  transportLibraryName = axis_transport
  xmlParserLibraryName = axis_xmlparser
  
  ####################################
  # Properties for compiling WSDL2Ws #
  ####################################
  
  # Location of Axis JARs
  dir.axisJARs = ${env.AXISJAVA_LIB}
  
  # Directory in which to place compiled Java classes
  dir.classes = ${basedir}/lib/axis
  
  ############################
  # Properties for packaging #
  ############################
  # Base directory for packaging - not used directly within build.xml, just used to simplify this property file
  dir.package = ${basedir}/deploy
  
  # Directory in which to place DLLs - Only used for Windows platform
  dir.package.bin = ${dir.package}/bin
  
  # Directory in which to place library files
  dir.package.lib = ${dir.package}/lib
  
  # Directory in which to place header files
  dir.package.include = ${dir.package}/include
  
  # Directory in which to place WSDL2Ws JAR files
  dir.package.WSDL2Ws = ${dir.classes}
  
  # Directory in which to place Documentation
  dir.package.docs = ${dir.package}/docs
  
  ############################################
  # Properties for building and running test #
  ############################################
  
  # Directory in which to place all generated test artifacts
  # This is also the directory in which code is built and run
  dir.test.generated = ${basedir}/tests/auto_build/testcases/Output
  
  # Log files for test results
  results.log = ${dir.test.generated}/results.log
  
  # Prefix and suffix used for executables and libraries
  # Typical values are:
  #		 For windows:
  #		 		 executableSuffix = .exe
  #		 		 librarySuffix = .dll
  #		 		 libraryPrefix = 
  #		 For unix:
  #		 		 executableSuffix = 
  #		 		 librarySuffix = .so
  #		 		 libraryPrefix = lib
  #		 For AIX (as Unix, except):
  #		 		 librarySuffix = .a
  executableSuffix = 
  librarySuffix = .so
  libraryPrefix = lib
  
  # Directory containing Axis C libraries
  # For Windows this should be ${dir.package.bin}
  # For Unix this should be ${dir.package.lib}
  dir.libraries = ${dir.package.bin}
  
  # May want to uncomment for testing so the build output is used
  #dir.include = ${dir.package.include}
  
  # If only a single language is required then set it here.
  # Valid values are cpp or c. Default if unset is both.
  target.lang = cpp
  
  # AXISCPP_DEPLOY directory
  axiscpp_deploy = ${dir.test.generated}
  
  # Details of server to be used for testing clients
  testHost = localhost
  testPort = 9080
  monitorPort = 13260