Commit 1db13fd0 authored by Ian Craggs's avatar Ian Craggs

Windows build

parent aac80e99
...@@ -72,32 +72,44 @@ ...@@ -72,32 +72,44 @@
<if> <if>
<os family="windows"/> <os family="windows"/>
<then> <then>
<property name="program_extension" value=".exe" /> <exec executable="cmd.exe" failonerror="true" dir="${output.folder}/test" >
<arg value="/c" />
<arg value="${aTest}.exe" />
<arg value="--connection" />
<arg value="tcp://${test.hostname}:${test.port}" />
<env key="PATH" path="${output.folder}" />
</exec>
</then> </then>
</if> <else>
<exec executable="./${aTest}${program_extension}" 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}" /> <env key="LD_LIBRARY_PATH" path="${output.folder}" />
<env key="DYLD_LIBRARY_PATH" path="${output.folder}" /> <env key="DYLD_LIBRARY_PATH" path="${output.folder}" />
<env key="PATH" path=".;${output.folder}" /> </exec>
</exec> </else>
</target> </target>
<target name="runSSLtest"> <target name="runSSLtest">
<if> <if>
<os family="windows"/> <os family="windows"/>
<then> <then>
<property name="program_extension" value=".exe" /> <exec executable="cmd.exe" failonerror="true" dir="${output.folder}/test" >
<arg value="/c" />
<arg value="${aTest}.exe" />
<arg value="--hostname" />
<arg value="${test.hostname}" />
<env key="PATH" path="${output.folder}" />
</exec>
</then> </then>
</if> <else>
<exec executable="${output.folder}/test/${aTest}${program_extension}" 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}" /> <env key="LD_LIBRARY_PATH" path="${output.folder}" />
<env key="DYLD_LIBRARY_PATH" path="${output.folder}" /> <env key="DYLD_LIBRARY_PATH" path="${output.folder}" />
<env key="PATH" path="${output.folder}" /> </exec>
</exec> </else>
</target> </target>
<target name="doc" > <target name="doc" >
......
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