Commit 8d96bed7 authored by Ian Craggs's avatar Ian Craggs

Use the new build names, and add a directory for each build

parent 523e3bae
...@@ -139,10 +139,6 @@ ...@@ -139,10 +139,6 @@
</fileset> </fileset>
</copy> </copy>
<zip destfile="${output.folder}/paho-client-mqtt-c.zip">
<zipfileset dir="${output.folder}" includes="*.so,include/*,MQTTVersion,samples/*"/>
</zip>
</then> </then>
<elseif> <elseif>
<os family="windows" /> <os family="windows" />
...@@ -237,18 +233,18 @@ ...@@ -237,18 +233,18 @@
</target> </target>
<target name="runAtest"> <target name="runAtest">
<exec executable="./${aTest}" failonerror="true" dir="${output.folder}" > <exec executable="./${aTest}" failonerror="true" dir="${output.folder}/test" >
<arg value="--connection" /> <arg value="--connection" />
<arg value="tcp://${test.hostname}:18883" /> <arg value="tcp://${test.hostname}:18883" />
<env key="LD_LIBRARY_PATH" value="." /> <env key="LD_LIBRARY_PATH" value=".." />
</exec> </exec>
</target> </target>
<target name="runSSLtest"> <target name="runSSLtest">
<exec executable="./${aTest}" failonerror="true" dir="${output.folder}" > <exec executable="./${aTest}" failonerror="true" dir="${output.folder}/test" >
<arg value="--hostname" /> <arg value="--hostname" />
<arg value="${test.hostname}" /> <arg value="${test.hostname}" />
<env key="LD_LIBRARY_PATH" value="." /> <env key="LD_LIBRARY_PATH" value=".." />
</exec> </exec>
</target> </target>
...@@ -277,13 +273,34 @@ ...@@ -277,13 +273,34 @@
</if> </if>
</target> </target>
<target name="build" >
<if>
<os family="unix"/>
<then>
<!-- display gcc version -->
<exec executable="gcc" failonerror="true">
<arg line="-v"/>
</exec>
<if>
<available file="/usr/bin/make"/>
<then>
<exec executable="make" dir="."/>
</then>
</if>
<zip destfile="${output.folder}/paho-client-mqtt-c.zip">
<zipfileset dir="${output.folder}" includes="libpaho*,include/*,MQTTVersion,samples/*"/>
</zip>
</then>
</if>
</target>
<target name="copy"> <target name="copy">
<if> <if>
<available file="/shared/technology"/> <available file="/shared/technology"/>
<then> <then>
<mkdir dir="/shared/technology/paho/C"/> <mkdir dir="/shared/technology/paho/C/${build.level}"/>
<echo message="Copying the build output to /shared" /> <echo message="Copying the build output to /shared" />
<copy overwrite="true" todir="/shared/technology/paho/C"> <copy overwrite="true" todir="/shared/technology/paho/C${build.level}">
<fileset dir="${output.folder}"> <fileset dir="${output.folder}">
<include name="*.zip"/> <include name="*.zip"/>
</fileset> </fileset>
...@@ -292,6 +309,6 @@ ...@@ -292,6 +309,6 @@
</if> </if>
</target> </target>
<target name="full" depends="init, version, compile, test, doc, copy" /> <target name="full" depends="init, version, build, test, doc, copy" />
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment