| <project name="Axis C Apache 2.0 Server Module" default="compileApache20Module" basedir=".."> |
| |
| <!-- |
| Compile the Apache 2.0 Axis Server Module |
| --> |
| <target name="compileApache20Module"> |
| <antcall target="buildVersionResource" inheritall="true"> |
| <param name="internalName" value="${apache20.serverLibraryName}"/> |
| </antcall> |
| <mkdir dir="${dir.objects}"/> |
| <mkdir dir="${dir.bin}"/> |
| <copy todir="${basedir}/include/apache2_0"> |
| <fileset dir="${apache20.dir.server}/include" includes="**"/> |
| </copy> |
| <if> |
| <not> |
| <isset property="aix"/> |
| </not> |
| <then> |
| <cc outfile="${dir.bin}/${apache20.serverLibraryName}" objdir="${dir.objects}" |
| exceptions="true" outtype="shared" multithreaded="true"> |
| <!-- Compilers --> |
| <compiler refid="SolarisCC"/> |
| <compiler refid="Linuxgcc"/> |
| <compiler refid="HP-UXaC++"/> |
| <compiler extends="VisualC++"> |
| <defineset> |
| <define name="APACHE2_0_EXPORTS"/> |
| </defineset> |
| </compiler> |
| <compiler refid="OS400icc"/> |
| <includepath path="${apache20.dir.server}/include" unless="windows"/> |
| <!-- Additional compiler flag for Client library on all platforms --> |
| <defineset> |
| <define name="AXIS_APACHE1_3"/> |
| </defineset> |
| <!-- Linkers --> |
| <linker refid="SolarisLinker"/> |
| <linker refid="LinuxLinker"/> |
| <linker refid="HP-UXLinker"/> |
| <linker refid="VisualC++Linker"/> |
| <!-- <syslibset libs="apr, util" dir="${apache20.dir.server}/lib"/> --> |
| |
| |
| <linker extends="OS400Linker"> |
| <linkerarg value="-qDUPPROC"/> |
| <linkerarg value="-qDUPVAR"/> |
| <linkerarg location="end" value="${dir.bin}/lib${serverEngineLibraryName}.so"/> |
| <linkerarg location="end" value="${apache20.dir.server}/lib/libapr.so"/> |
| <linkerarg location="end" value="${apache20.dir.server}/lib/libhttpd.so"/> |
| </linker> |
| |
| <libset dir="${apache20.dir.server}/lib" libs="libapr, libhttpd" if="windows"/> |
| <libset dir="${dir.bin}" libs="${serverEngineLibraryName}" unless="os400"/> |
| <!-- Files to be compiled --> |
| <fileset dir="${dir.src}"> |
| <include name="server/apache2/*.cpp"/> |
| </fileset> |
| </cc> |
| </then> |
| <else> |
| <cc outfile="${dir.bin}/${libraryPrefix}${apache20.serverLibraryName}${librarySuffix}" objdir="${dir.objects}" |
| exceptions="true" multithreaded="true"> |
| <!-- Compilers --> |
| <compiler refid="AIXxlc"/> |
| <includepath path="${apache20.dir.server}/include"/> |
| <!-- Additional compiler flag for Client library on all platforms --> |
| <defineset> |
| <define name="AXIS_APACHE1_3"/> |
| </defineset> |
| <!-- Linkers --> |
| <linker extends="AIXLinker"> |
| <linkerarg value="-G"/> |
| </linker> |
| <libset dir="${dir.bin}" libs="${serverEngineLibraryName}"/> |
| <!-- Files to be compiled --> |
| <fileset dir="${dir.src}"> |
| <include name="server/apache2/*.cpp"/> |
| </fileset> |
| </cc> |
| </else> |
| </if> |
| </target> |
| </project> |