Commit 72fe69ea authored by Ian Craggs's avatar Ian Craggs

Refactor build.xml

parent 8c628eef
...@@ -69,11 +69,10 @@ ...@@ -69,11 +69,10 @@
</target> </target>
<target name="runAtest"> <target name="runAtest">
<echo message="LD_LIBRARY_PATH ${output.folder}/lib" />
<exec executable="./${aTest}" failonerror="true" dir="${output.folder}/test" > <exec executable="./${aTest}" failonerror="true" dir="${output.folder}/test" >
<arg value="--connection" /> <arg value="--connection" />
<arg value="tcp://${test.hostname}:${test.port}" /> <arg value="tcp://${test.hostname}:${test.port}" />
<env key="LD_LIBRARY_PATH" path="${output.folder}/lib" /> <env key="LD_LIBRARY_PATH" path="${output.folder}" />
</exec> </exec>
</target> </target>
...@@ -81,7 +80,7 @@ ...@@ -81,7 +80,7 @@
<exec executable="./${aTest}" failonerror="true" dir="${output.folder}/test" > <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" path="${output.folder}/lib" /> <env key="LD_LIBRARY_PATH" path="${output.folder}" />
</exec> </exec>
</target> </target>
...@@ -126,6 +125,11 @@ ...@@ -126,6 +125,11 @@
</then> </then>
</if> </if>
</then>
</if>
</target>
<target name="package">
<mkdir dir="${output.folder}/include"/> <mkdir dir="${output.folder}/include"/>
<copy overwrite="true" todir="${output.folder}/include"> <copy overwrite="true" todir="${output.folder}/include">
<fileset dir="src" includes="MQTTClient.h,MQTTAsync.h,MQTTClientPersistence.h"/> <fileset dir="src" includes="MQTTClient.h,MQTTAsync.h,MQTTClientPersistence.h"/>
...@@ -163,9 +167,6 @@ ...@@ -163,9 +167,6 @@
<arg value="lib"/> <arg value="lib"/>
<arg value="bin"/> <arg value="bin"/>
</exec> </exec>
</then>
</if>
</target> </target>
<target name="copy"> <target name="copy">
...@@ -184,7 +185,7 @@ ...@@ -184,7 +185,7 @@
</if> </if>
</target> </target>
<target name="full" depends="init, version, build, test, doc, copy" /> <target name="full" depends="init, version, build, test, doc, package, 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