Commit c047917c authored by Ian Craggs's avatar Ian Craggs

Produce download zip, and copy to /shared

parent 56ad6720
...@@ -101,7 +101,6 @@ ...@@ -101,7 +101,6 @@
</if> </if>
<!-- MQTTVersion --> <!-- MQTTVersion -->
<property name="output.async.ssl.filename" value="${output.folder}/lib${libname.async.ssl}.so" />
<exec executable="gcc" failonerror="true"> <exec executable="gcc" failonerror="true">
<arg line="-lpthread -ldl -o ${output.folder}/MQTTVersion src/MQTTVersion.c"/> <arg line="-lpthread -ldl -o ${output.folder}/MQTTVersion src/MQTTVersion.c"/>
</exec> </exec>
...@@ -125,6 +124,20 @@ ...@@ -125,6 +124,20 @@
<foreach target="asynccompile" param="aFile" list="test4"/> <foreach target="asynccompile" param="aFile" list="test4"/>
<foreach target="asynccompiles" param="aFile" list="test5"/> <foreach target="asynccompiles" param="aFile" list="test5"/>
<mkdir dir="${output.folder}/include"/>
<echo message="Copying the headers for the C clients from the output tree" />
<copy overwrite="true" todir="${output.folder}/include">
<fileset dir="src">
<include name="MQTTClient.h"/>
<include name="MQTTClientPersistence.h"/>
<include name="MQTTAsync.h"/>
</fileset>
</copy>
<zip destfile="${output.folder}/paho-client-mqtt-c.zip">
<zipfileset dir="${output.folder}" includes="*.so,include/*,MQTTVersion"/>
</zip>
</then> </then>
<elseif> <elseif>
<os family="windows" /> <os family="windows" />
...@@ -206,24 +219,20 @@ ...@@ -206,24 +219,20 @@
</target> </target>
<target name="copy"> <target name="copy">
<mkdir dir="${ship.folder}/include"/> <if>
<echo message="Copying the headers for the c_client from the output tree" /> <available file="/shared/technology"/>
<copy overwrite="true" todir="${ship.folder}/include"> <then>
<fileset dir="${mqttclient_src}"> <mkdir dir="/shared/technology/paho/C"/>
<include name="MQTTClient.h"/> <echo message="Copying the build output to /shared" />
<include name="MQTTClientPersistence.h"/> <copy overwrite="true" todir="/shared/technology/paho/C">
<include name="MQTTAsync.h"/>
</fileset>
</copy>
<echo message="Copying the source.zip file from the output tree" />
<copy overwrite="true" todir="${ship.folder}">
<fileset dir="${output.folder}"> <fileset dir="${output.folder}">
<include name="source.zip"/> <include name="*.zip"/>
</fileset> </fileset>
</copy> </copy>
</then>
</if>
</target> </target>
<target name="full" depends="init, version, compile, test, doc" /> <target name="full" depends="init, version, compile, 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