Statistics
| Revision:

gvsig-3d / 1.10 / trunk / binaries / build.xml @ 85

History | View | Annotate | Download (2.26 KB)

1
<project name="binaries_build" default="main" basedir=".">
2
        <dirname file="${ant.file.binaries}" property="ant.file.binaries.dir"/>
3
        <import file="${basedir}/ant/utilities.xml"/>
4
    <description>
5
        Reorganiza el directorio binaries, para que pueda usarse directamente por gvSIG.
6
    </description>
7

    
8
        <target name="batch-build"
9
                depends="main"/>
10

    
11
        <target name="main">
12
                <description>Reorders the directory for the current platform, so that it
13
                        can be used by gvSIG.</description>
14
                <echo> Sistema operativo: ${os.name}</echo>
15

    
16
                <condition property="isLinux">
17
                        <and>
18
                                <os family="unix"/>
19
                                <not>
20
                                        <os family="mac"/>
21
                                </not>
22
                        </and>
23
                </condition>
24

    
25
                <condition property="isWindows">
26
                        <or>
27
                                <os family="windows"/>
28
                                <os family="win9x"/>
29
                                <os name="Windows Vista"/>
30
                        </or>
31
                </condition>
32

    
33
                <condition property="isMac">
34
                        <os family="mac"/>
35
                </condition>
36

    
37
                <condition property="is_OS_dectected">
38
                        <or>
39
                                <istrue value="${isLinux}"/>
40
                                <istrue value="${isWindows}"/>
41
                                <istrue value="${isMac}"/>
42
                        </or>
43

    
44
                </condition>
45

    
46

    
47
                <antcall target="linux" />
48
                <antcall target="windows" />
49
                <antcall target="mac" />
50
                <antcall target="no_SO_Detected" />
51

    
52

    
53
        </target>
54

    
55
        <target name="build-all">
56
                <description>Reorders the directory for all the platforms, so that it
57
                        can be used by gvSIG.</description>
58
                  <ant dir="linux"  inheritAll="false" />
59
                  <ant dir="w32"  inheritAll="false" />
60
                  <ant dir="mac"  inheritAll="false" />
61
        </target>
62

    
63
        <target name="linux" if="isLinux">
64
                  <ant dir="linux"  inheritAll="false" />
65
                <echo> Compilando librerias linux </echo>
66
        </target>
67

    
68
        <target name="windows" if="isWindows">
69
                  <ant dir="w32"  inheritAll="false" />
70
                <echo> Compilando librerias w32 </echo>
71
        </target>
72

    
73
        <target name="mac" if="isMac">
74
                  <ant dir="mac"  inheritAll="false" />
75
                <echo> Compilando librerias mac </echo>
76
        </target>
77

    
78
        <target name="no_SO_Detected" unless="is_OS_dectected">
79
                <fail message="Error al detectar el Sistema Operativo"/>
80
        </target>
81

    
82
        <target name="clean">
83
                <description>
84
                        Restores the directory to its original shape.
85
                </description>
86
                  <ant target="clean" dir="linux"  inheritAll="false" />
87
                  <ant target="clean" dir="w32"  inheritAll="false" />
88
                  <ant target="clean" dir="mac"  inheritAll="false" />
89
        </target>
90
</project>