Checkpoint. Copy binary artifacts in a cross platform manner.

This commit is contained in:
edburns%acm.org 2002-11-12 02:52:18 +00:00
parent bcf006232a
commit 253a75cdfd

View File

@ -43,8 +43,9 @@
<property name="package.example" value="${package.home}/example"/>
<property name="package.manifest" value="${build.home}/META-INF/MANIFEST.MF"/>
<property name="package.version" value="1_3"/>
<property name="dist" value="${build.home}/.."/>
<target name="main" depends="prepare,build.webclient"/>
<target name="main" depends="prepare,set.debug.vars,build.webclient"/>
<target name="prepare">
@ -52,6 +53,27 @@
<os family="dos" />
</condition>
<condition property="win.bin" value="WIN32_O.OBJ">
<os family="dos" />
</condition>
<condition property="so.suffix" value="dll">
<os family="dos" />
</condition>
<condition property="so.suffix" value="so">
<os family="unix" />
</condition>
<condition property="ar.suffix" value="lib">
<os family="dos" />
</condition>
<condition property="ar.suffix" value="a">
<os family="unix" />
</condition>
<mkdir dir="${package.home}"/>
<mkdir dir="${package.lib}"/>
<mkdir dir="${package.example}"/>
@ -59,9 +81,31 @@
</target>
<target name="set.debug.vars" if="compile.debug">
<!-- This target sets the WIN32_D.OBJ or WIN32_O.OBJ thingy -->
<condition property="win.bin" value="WIN32_D.OBJ">
<and>
<os family="dos" />
<equals arg1="${compile.debug}" arg2="true"/>
</and>
</condition>
</target>
<target name="build.webclient"
depends="create.webclient.manifest,build.webclient.jar">
<copy file="${dist}/${win.bin}/bin/components/javadomjni.${so.suffix}"
todir="${package.lib}"/>
<copy file="${dist}/${win.bin}/bin/components/javadom.${so.suffix}"
todir="${package.lib}"/>
<copy file="${dist}/${win.bin}/bin/webclient.${so.suffix}"
todir="${package.lib}"/>
<copy file="${dist}/${win.bin}/lib/wc_share.${ar.suffix}"
todir="${package.lib}"/>
</target>
<target name="clean">