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