svn-gvsig-desktop / branches / v2_0_0_prep / binaries / build.xml @ 28439
History | View | Annotate | Download (2.16 KB)
1 |
<project name="binaries_build" default="main" basedir="."> |
---|---|
2 |
<dirname file="${ant.file.binaries}" property="ant.file.binaries.dir"/> |
3 |
<description>
|
4 |
Reorganiza el directorio binaries, para que pueda usarse directamente por gvSIG. |
5 |
</description>
|
6 |
|
7 |
<target name="batch-build" |
8 |
depends="main"/> |
9 |
|
10 |
<target name="main"> |
11 |
<description>Reorders the directory for the current platform, so that it
|
12 |
can be used by gvSIG.</description>
|
13 |
<echo> Sistema operativo: ${os.name}</echo> |
14 |
|
15 |
<condition property="isLinux"> |
16 |
<os family="unix"/> |
17 |
</condition>
|
18 |
|
19 |
<condition property="isWindows"> |
20 |
<or>
|
21 |
<os family="windows"/> |
22 |
<os family="win9x"/> |
23 |
<os name="Windows Vista"/> |
24 |
</or>
|
25 |
</condition>
|
26 |
|
27 |
<condition property="isMac"> |
28 |
<os family="mac"/> |
29 |
</condition>
|
30 |
|
31 |
<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 |
<antcall target="linux" /> |
42 |
<antcall target="windows" /> |
43 |
<antcall target="mac" /> |
44 |
<antcall target="no_SO_Detected" /> |
45 |
|
46 |
|
47 |
</target>
|
48 |
|
49 |
<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 |
|
57 |
<target name="linux" if="isLinux"> |
58 |
<ant dir="linux" inheritAll="false" /> |
59 |
<echo> Compilando librerias linux </echo> |
60 |
</target>
|
61 |
|
62 |
<target name="windows" if="isWindows"> |
63 |
<ant dir="w32" inheritAll="false" /> |
64 |
<echo> Compilando librerias w32 </echo> |
65 |
</target>
|
66 |
|
67 |
<target name="mac" if="isMac"> |
68 |
<ant dir="mac" inheritAll="false" /> |
69 |
<echo> Compilando librerias mac </echo> |
70 |
</target>
|
71 |
|
72 |
<target name="no_SO_Detected" unless="is_OS_dectected"> |
73 |
<fail message="Error al detectar el Sistema Operativo"/> |
74 |
</target>
|
75 |
|
76 |
<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 |
<!--<ant target="clean" dir="mac" inheritAll="false" />-->
|
83 |
</target>
|
84 |
</project>
|