root/other-projects/expeditee-release-kits/kits/rke/ant-scripts/compile.xml @ 29358

Revision 29358, 1.9 KB (checked in by jts21, 5 years ago)

Linux RKE needs to build search4j statically

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="rke-compile">
3
4    <target name="compile">
5        <!-- checkout expeditee -->
6        <exec executable="svn">
7            <arg value="checkout"/>
8            <arg value="https://svn.cms.waikato.ac.nz/svn/expeditee/trunk"/>
9            <arg value="${basedir}/expeditee"/>
10        </exec>
11
12        <!-- we do not want the *.app folders if we are not mac-->
13        <!--<if><bool><not><equals arg1="${rk.os}" arg2="mac"/></not></bool>
14            <delete dir="${basedir}/compiled/client-gli.app"/>
15        </if>-->
16        <ant dir="${basedir}/expeditee" antfile="${basedir}/expeditee/build.xml" target="inst" />
17        <move todir="compiled">
18            <fileset dir="expeditee/inst">
19                <include name="**"/>
20            </fileset>
21        </move>
22
23        <!-- copy search4j -->
24        <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
25            <exec dir="${rk.home}/shared/core/search4j" executable="./configure" failonerror="true">
26                <arg line="LDFLAGS=-static" />
27            </exec>
28            <exec dir="${rk.home}/shared/core/search4j" executable="make" failonerror="true"/>
29            <copy file="${rk.home}/shared/core/search4j/search4j" todir="${basedir}/compiled/bin" />
30        </if>
31        <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
32            <exec dir="${rk.home}/shared/core/search4j" executable="nmake"><arg value="/f"/><arg value="win32.mak"/></exec>
33            <copy file="${rk.home}/shared/core/search4j/search4j.exe" todir="${basedir}/compiled/bin" />
34            <!-- copy icon for windows -->
35            <mkdir dir="${basedir}/compiled/resources"/>
36            <copy file="${rk.home}/shared/core/icon/icon.ico" todir="${basedir}/compiled/resources" />
37        </if>
38        <!-- copy run scripts -->
39        <if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="windows"/></or></bool>
40            <copy todir="${basedir}/compiled">
41                <fileset dir="${rk.home}/scripts">
42                    <include name="**" />
43                </fileset>
44            </copy>
45        </if>
46    </target>
47
48</project>
Note: See TracBrowser for help on using the browser.