Statistics
| Revision:

svn-gvsig-desktop / trunk / binaries / build.xml @ 28835

History | View | Annotate | Download (2.2 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
                        <os family="unix"/>
18
                </condition>
19

    
20
                <condition property="isWindows">
21
                        <or>
22
                                <os family="windows"/>
23
                                <os family="win9x"/>
24
                                <os name="Windows Vista"/>
25
                        </or>
26
                </condition>
27

    
28
                <condition property="isMac">
29
                        <os family="mac"/>
30
                </condition>
31

    
32
                <condition property="is_OS_dectected">
33
                        <or>
34
                                <istrue value="${isLinux}"/>
35
                                <istrue value="${isWindows}"/>
36
                                <istrue value="${isMac}"/>
37
                        </or>
38

    
39
                </condition>
40

    
41

    
42
                <antcall target="linux" />
43
                <antcall target="windows" />
44
                <antcall target="mac" />
45
                <antcall target="no_SO_Detected" />
46

    
47

    
48
        </target>
49

    
50
        <target name="build-all">
51
                <description>Reorders the directory for all the platforms, so that it
52
                        can be used by gvSIG.</description>
53
                  <ant dir="linux"  inheritAll="false" />
54
                  <ant dir="w32"  inheritAll="false" />
55
                  <ant dir="mac"  inheritAll="false" />
56
        </target>
57

    
58
        <target name="linux" if="isLinux">
59
                  <ant dir="linux"  inheritAll="false" />
60
                <echo> Compilando librerias linux </echo>
61
        </target>
62

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

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

    
73
        <target name="no_SO_Detected" unless="is_OS_dectected">
74
                <fail message="Error al detectar el Sistema Operativo"/>
75
        </target>
76

    
77
        <target name="clean">
78
                <description>
79
                        Restores the directory to its original shape.
80
                </description>
81
                  <ant target="clean" dir="linux"  inheritAll="false" />
82
                  <ant target="clean" dir="w32"  inheritAll="false" />
83
                  <!--<ant target="clean" dir="mac"  inheritAll="false" />-->
84
        </target>
85
</project>