root/main/trunk/release-kits/kits/rk3/ant-scripts/compile.xml @ 21748

Revision 21748, 3.6 KB (checked in by oranfry, 10 years ago)

moved binary specific forwarding properties to rk3, and fixed sork3

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="rk3-compile">
3
4    <target name="compile">
5
6        <!-- checkout greenstone3 -->
7        <exec executable="svn">
8            <arg value="checkout"/>
9            <arg value="${svn.root}/main/${branch.path}/greenstone3"/>
10            <arg value="compiled"/>
11            <arg value="-r"/><arg value="${branch.revision}"/>
12        </exec>
13
14        <!-- make sure all c++ compilation is done statically on linux -->
15        <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
16            <property name="forward.compile.static" value="true"/>
17        </if>
18
19        <!-- run greenstone3's ant prepare -->
20        <ant dir="compiled" inheritAll="false">
21            <target name="prepare"/>
22            <propertyset refid="forward.properties"/>
23            <property name="properties.accepted" value="true"/>
24        </ant>
25
26        <!-- set all version numbers -->
27        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall>
28        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="compiled/gli"/></antcall>
29        <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="compiled/gs2build"/></antcall>
30
31        <!-- run greenstone3's ant install and ant dist-tidy -->
32        <ant dir="compiled" inheritAll="false">
33            <target name="install"/>
34            <target name="dist-tidy"/>
35            <propertyset refid="forward.properties"/>
36            <property name="properties.accepted" value="true"/>
37        </ant>
38
39        <!-- insert an xml parser -->
40        <copy todir="compiled/gs2build/perllib/cpan">
41            <fileset dir="${rk.home}/shared/greenstone3" includes="XML-Parser/**/*"/>
42        </copy>
43
44        <!-- TODO: insert-ant -->
45
46        <!-- put the uninstaller in place -->
47        <antcall target="insert-and-compile-uninstaller"/>
48
49        <!-- (windows only) -->
50        <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
51            <!-- insert perl -->
52            <unzip src="${rk.home}/shared/windows/perl.zip" dest="compiled/gs2build/bin/windows"/>
53        </if>
54
55        <!-- minify tomcat -->
56        <delete dir="compiled/packages/tomcat/webapps/docs"/>
57        <delete dir="compiled/packages/tomcat/webapps/examples"/>
58
59        <!-- tidy up gli to make it smaller -->
60        <antcall target="gli-tidy-for-dist"><param name="glibasedir" value="compiled/gli"/></antcall>
61
62        <!-- strip out .svn dirs -->
63        <antcall target="strip-svn-dirs"><param name="dir" value="compiled"/></antcall>
64
65        <!-- (linux only) -->
66        <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
67            <!-- grab imagemagick binaries -->
68            <delete dir="compiled/gs2build/bin/linux/imagemagick"/>
69            <exec executable="svn">
70                <arg value="export"/>
71                <arg value="${svn.root}/main/${branch.path}/binaries/linux/imagemagick"/>
72                <arg value="compiled/gs2build/bin/linux/imagemagick"/>
73            </exec>
74
75            <!-- grab wv binaries -->
76            <delete dir="compiled/gs2build/bin/linux/wv"/>
77            <exec executable="svn">
78                <arg value="export"/>
79                <arg value="${svn.root}/main/${branch.path}/binaries/linux/wv"/>
80                <arg value="compiled/gs2build/bin/linux/wv"/>
81            </exec>
82        <!-- (mac only) -->
83        <else><if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
84            <!-- grab imagemagick binaries -->
85            <delete dir="compiled/gs2build/bin/darwin/imagemagick"/>
86            <exec executable="svn">
87                <arg value="export"/>
88                <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/imagemagick"/>
89                <arg value="compiled/gs2build/bin/darwin/imagemagick"/>
90            </exec>
91
92            <!-- grab ghostscript binaries -->
93            <delete dir="compiled/gs2build/bin/darwin/ghostscript"/>
94            <exec executable="svn">
95                <arg value="export"/>
96                <arg value="${svn.root}/main/${branch.path}/binaries/mac/intel/ghostscript"/>
97                <arg value="compiled/gs2build/bin/darwin/ghostscript"/>
98            </exec>
99        </if></else></if>
100
101    </target>
102
103</project>
Note: See TracBrowser for help on using the browser.