Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / binaries / build.xml @ 33862

History | View | Annotate | Download (2.16 KB)

1 13295 jmvivo
<project name="binaries_build" default="main" basedir=".">
2
        <dirname file="${ant.file.binaries}" property="ant.file.binaries.dir"/>
3 13125 jmvivo
    <description>
4
        Reorganiza el directorio binaries, para que pueda usarse directamente por gvSIG.
5
    </description>
6 13295 jmvivo
7
        <target name="batch-build"
8
                depends="main"/>
9
10 13125 jmvivo
        <target name="main">
11
                <description>Reorders the directory for the current platform, so that it
12
                        can be used by gvSIG.</description>
13 13722 fjp
                <echo> Sistema operativo: ${os.name}</echo>
14 13805 jmvivo
15 13125 jmvivo
                <condition property="isLinux">
16
                        <os family="unix"/>
17
                </condition>
18 13295 jmvivo
19 13125 jmvivo
                <condition property="isWindows">
20
                        <or>
21
                                <os family="windows"/>
22
                                <os family="win9x"/>
23 13722 fjp
                                <os name="Windows Vista"/>
24 13125 jmvivo
                        </or>
25
                </condition>
26 13295 jmvivo
27 13125 jmvivo
                <condition property="isMac">
28
                        <os family="mac"/>
29
                </condition>
30 13295 jmvivo
31 13805 jmvivo
                <condition property="is_OS_dectected">
32
                        <or>
33
                                <istrue value="${isLinux}"/>
34
                                <istrue value="${isWindows}"/>
35
                                <istrue value="${isMac}"/>
36
                        </or>
37
38
                </condition>
39
40
41 13125 jmvivo
                <antcall target="linux" />
42
                <antcall target="windows" />
43
                <antcall target="mac" />
44 13805 jmvivo
                <antcall target="no_SO_Detected" />
45 13125 jmvivo
46 13805 jmvivo
47 13125 jmvivo
        </target>
48 13295 jmvivo
49 13125 jmvivo
        <target name="build-all">
50
                <description>Reorders the directory for all the platforms, so that it
51
                        can be used by gvSIG.</description>
52
                  <ant dir="linux"  inheritAll="false" />
53
                  <ant dir="w32"  inheritAll="false" />
54
                  <ant dir="mac"  inheritAll="false" />
55
        </target>
56 13295 jmvivo
57 13125 jmvivo
        <target name="linux" if="isLinux">
58
                  <ant dir="linux"  inheritAll="false" />
59 13805 jmvivo
                <echo> Compilando librerias linux </echo>
60 13125 jmvivo
        </target>
61 13295 jmvivo
62 13722 fjp
        <target name="windows" if="isWindows">
63 13125 jmvivo
                  <ant dir="w32"  inheritAll="false" />
64 13722 fjp
                <echo> Compilando librerias w32 </echo>
65 13125 jmvivo
        </target>
66
67 13722 fjp
        <target name="mac" if="isMac">
68 13125 jmvivo
                  <ant dir="mac"  inheritAll="false" />
69 13805 jmvivo
                <echo> Compilando librerias mac </echo>
70 13125 jmvivo
        </target>
71 13295 jmvivo
72 13805 jmvivo
        <target name="no_SO_Detected" unless="is_OS_dectected">
73
                <fail message="Error al detectar el Sistema Operativo"/>
74
        </target>
75
76 13125 jmvivo
        <target name="clean">
77
                <description>
78
                        Restores the directory to its original shape.
79
                </description>
80
                  <ant target="clean" dir="linux"  inheritAll="false" />
81
                  <ant target="clean" dir="w32"  inheritAll="false" />
82 13295 jmvivo
                  <!--<ant target="clean" dir="mac"  inheritAll="false" />-->
83 13125 jmvivo
        </target>
84
</project>