svn-gvsig-desktop / tags / v1_1_Build_1010 / binaries / linux / build.xml @ 12804
History | View | Annotate | Download (5.77 KB)
1 |
<project name="binaries linux" default="main" basedir="."> |
---|---|
2 |
<description>
|
3 |
Reorganiza el directorio binaries/linux, para que pueda usarse directamente por gvSIG. |
4 |
</description>
|
5 |
|
6 |
<property name="targetDir" location="." /> |
7 |
|
8 |
<target name="main" depends="ecw, gdal, mrsid" /> |
9 |
|
10 |
<target name="ecw"> |
11 |
<copy todir="${targetDir}"> |
12 |
<fileset dir="raster/ecw" includes="*.so*" /> |
13 |
</copy>
|
14 |
<!-- necesitamos borrar los links antes de crearlos, porque failonerror=false no
|
15 |
funciona correctamente -->
|
16 |
<delete file="${targetDir}/libjecwcompress.so"/> |
17 |
<symlink
|
18 |
action="single" |
19 |
resource="libjecwcompress.so.1.0.0" |
20 |
link="${targetDir}/libjecwcompress.so" |
21 |
failonerror="false" /> |
22 |
<delete file="${targetDir}/libjecwcompress.so.1" /> |
23 |
<symlink
|
24 |
action="single" |
25 |
resource="libjecwcompress.so.1.0.0" |
26 |
link="${targetDir}/libjecwcompress.so.1" |
27 |
failonerror="false" /> |
28 |
<delete file="${targetDir}/libjecw.so" /> |
29 |
<symlink
|
30 |
action="single" |
31 |
resource="libjecw.so.0.0.1" |
32 |
link="${targetDir}/libjecw.so" |
33 |
failonerror="false" /> |
34 |
<delete file="${targetDir}/libjecw.so.0" /> |
35 |
<symlink
|
36 |
action="single" |
37 |
resource="libjecw.so.0.0.1" |
38 |
link="${targetDir}/libjecw.so.0" |
39 |
failonerror="false" /> |
40 |
<delete file="${targetDir}/libNCScnet.so" /> |
41 |
<symlink
|
42 |
action="single" |
43 |
resource="libNCSCnet.so.0.0.0" |
44 |
link="${targetDir}/libNCScnet.so" |
45 |
failonerror="false" /> |
46 |
<delete file="${targetDir}/libNCSCnet.so" /> |
47 |
<symlink
|
48 |
action="single" |
49 |
resource="libNCSCnet.so.0.0.0" |
50 |
link="${targetDir}/libNCSCnet.so" |
51 |
failonerror="false" /> |
52 |
<delete file="${targetDir}/libNCSCnet.so.0" /> |
53 |
<symlink
|
54 |
action="single" |
55 |
resource="libNCSCnet.so.0.0.0" |
56 |
link="${targetDir}/libNCSCnet.so.0" |
57 |
failonerror="false" /> |
58 |
|
59 |
<delete file="${targetDir}/libNCSCNet.so" /> |
60 |
<symlink
|
61 |
action="single" |
62 |
resource="libNCSCnet.so.0.0.0" |
63 |
link="${targetDir}/libNCSCNet.so" |
64 |
failonerror="false" /> |
65 |
<delete file="${targetDir}/libNCSEcw.so" /> |
66 |
<symlink
|
67 |
action="single" |
68 |
resource="libNCSEcw.so.0.0.0" |
69 |
link="${targetDir}/libNCSEcw.so" |
70 |
failonerror="false" /> |
71 |
<delete file="${targetDir}/libNCSEcw.so.0" /> |
72 |
<symlink
|
73 |
action="single" |
74 |
resource="libNCSEcw.so.0.0.0" |
75 |
link="${targetDir}/libNCSEcw.so.0" |
76 |
failonerror="false" /> |
77 |
<delete file="${targetDir}/libNCSEcwC.so" /> |
78 |
<symlink
|
79 |
action="single" |
80 |
resource="libNCSEcwC.so.0.0.0" |
81 |
link="${targetDir}/libNCSEcwC.so" |
82 |
failonerror="false" /> |
83 |
<delete file="${targetDir}/libNCSEcwC.so.0" /> |
84 |
<symlink
|
85 |
action="single" |
86 |
resource="libNCSEcwC.so.0.0.0" |
87 |
link="${targetDir}/libNCSEcwC.so.0" |
88 |
failonerror="false" /> |
89 |
<delete file="${targetDir}/libNCSUtil.so" /> |
90 |
<symlink
|
91 |
action="single" |
92 |
resource="libNCSUtil.so.0.0.0" |
93 |
link="${targetDir}/libNCSUtil.so" |
94 |
failonerror="false" /> |
95 |
<delete file="${targetDir}/libNCSUtil.so.0" /> |
96 |
<symlink
|
97 |
action="single" |
98 |
resource="libNCSUtil.so.0.0.0" |
99 |
link="${targetDir}/libNCSUtil.so.0" |
100 |
failonerror="false" /> |
101 |
|
102 |
</target>
|
103 |
|
104 |
<target name="gdal"> |
105 |
<copy todir="${targetDir}"> |
106 |
<fileset dir="raster/gdal" |
107 |
includes="libcrypto.so.0.9.7 libgdal.so.1.10.0 libjasper-1.701.so.1.0.0 libjgdal.so.0.6.0 libodbc.so.1 libpng.so.3 libpq.so.3 libssl.so.0.9.7"/> |
108 |
</copy>
|
109 |
<delete file="${targetDir}/libcrypto.so" /> |
110 |
<symlink
|
111 |
action="single" |
112 |
resource="libcrypto.so.0.9.7" |
113 |
link="${targetDir}/libcrypto.so" |
114 |
failonerror="false" /> |
115 |
<delete file="${targetDir}/libgdal.so" /> |
116 |
<symlink
|
117 |
action="single" |
118 |
resource="libgdal.so.1.10.0" |
119 |
link="${targetDir}/libgdal.so" |
120 |
failonerror="false" /> |
121 |
<delete file="${targetDir}/libgdal.so.1" /> |
122 |
<symlink
|
123 |
action="single" |
124 |
resource="libgdal.so.1.10.0" |
125 |
link="${targetDir}/libgdal.so.1" |
126 |
failonerror="false" /> |
127 |
<delete file="${targetDir}/libjasper-1.701.so" /> |
128 |
<symlink
|
129 |
action="single" |
130 |
resource="libjasper-1.701.so.1.0.0" |
131 |
link="${targetDir}/libjasper-1.701.so" |
132 |
failonerror="false" /> |
133 |
<delete file="${targetDir}/libjasper-1.701.so.1" /> |
134 |
<symlink
|
135 |
action="single" |
136 |
resource="libjasper-1.701.so.1.0.0" |
137 |
link="${targetDir}/libjasper-1.701.so.1" |
138 |
failonerror="false" /> |
139 |
<delete file="${targetDir}/libjgdal.so" /> |
140 |
<symlink
|
141 |
action="single" |
142 |
resource="libjgdal.so.0.6.0" |
143 |
link="${targetDir}/libjgdal.so" |
144 |
failonerror="false" /> |
145 |
<delete file="${targetDir}/libjgdal.so.0" /> |
146 |
<symlink
|
147 |
action="single" |
148 |
resource="libjgdal.so.0.6.0" |
149 |
link="${targetDir}/libjgdal.so.0" |
150 |
failonerror="false" /> |
151 |
<delete file="${targetDir}/libodbc.so" /> |
152 |
<symlink
|
153 |
action="single" |
154 |
resource="libodbc.so.1" |
155 |
link="${targetDir}/libodbc.so" |
156 |
failonerror="false" /> |
157 |
<delete file="${targetDir}/libpng.so" /> |
158 |
<symlink
|
159 |
action="single" |
160 |
resource="libpng.so.3" |
161 |
link="${targetDir}/libpng.so" |
162 |
failonerror="false" /> |
163 |
<delete file="${targetDir}/libpq.so" /> |
164 |
<symlink
|
165 |
action="single" |
166 |
resource="libpq.so.3" |
167 |
link="${targetDir}/libpq.so" |
168 |
failonerror="false" /> |
169 |
<delete file="${targetDir}/libssl.so" /> |
170 |
<symlink
|
171 |
action="single" |
172 |
resource="libssl.so.0.9.7" |
173 |
link="${targetDir}/libssl.so" |
174 |
failonerror="false" /> |
175 |
<delete file="${targetDir}/libssl.so.0" /> |
176 |
<symlink
|
177 |
action="single" |
178 |
resource="libssl.so.0.9.7" |
179 |
link="${targetDir}/libssl.so.0" |
180 |
failonerror="false" /> |
181 |
</target>
|
182 |
|
183 |
<target name="mrsid"> |
184 |
<copy todir="${targetDir}"> |
185 |
<fileset dir="raster/mrsid" includes="libjmrsid.so.0.0.2" /> |
186 |
</copy>
|
187 |
<delete file="${targetDir}/libjmrsid.so" /> |
188 |
<symlink
|
189 |
action="single" |
190 |
resource="libjmrsid.so.0.0.2" |
191 |
link="${targetDir}/libjmrsid.so" |
192 |
failonerror="false" /> |
193 |
<delete file="${targetDir}/libjmrsid.so.0" /> |
194 |
<symlink
|
195 |
action="single" |
196 |
resource="libjmrsid.so.0.0.2" |
197 |
link="${targetDir}/libjmrsid.so.0" |
198 |
failonerror="false" /> |
199 |
</target>
|
200 |
|
201 |
<target name="clean"> |
202 |
<delete>
|
203 |
<fileset
|
204 |
dir="${targetDir}" |
205 |
includes="*.so*"/> |
206 |
</delete>
|
207 |
</target>
|
208 |
|
209 |
</project>
|