Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1002 / binaries / linux / build.xml @ 12070

History | View | Annotate | Download (5.24 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" />
53
                <symlink
54
                        action="single"
55
                        resource="libNCSCnet.so.0.0.0"
56
                        link="${targetDir}/libNCSCNet.so"
57
                        failonerror="false" />
58
                <delete file="${targetDir}/libNCSEcw.so" />
59
                <symlink
60
                        action="single"
61
                        resource="libNCSEcw.so.0.0.0"
62
                        link="${targetDir}/libNCSEcw.so"
63
                        failonerror="false" />
64
                <delete file="${targetDir}/libNCSEcwC.so" />
65
                <symlink
66
                        action="single"
67
                        resource="libNCSEcwC.so.0.0.0"
68
                        link="${targetDir}/libNCSEcwC.so"
69
                        failonerror="false" />
70
                <delete file="${targetDir}/libNCSEcwC.so" />
71
                <symlink
72
                        action="single"
73
                        resource="libNCSEcwC.so.0.0.0"
74
                        link="${targetDir}/libNCSEcwC.so.0"
75
                        failonerror="false" />                
76
                <delete file="${targetDir}/libNCSUtil.so" />
77
                <symlink
78
                        action="single"
79
                        resource="libNCSUtil.so.0.0.0"
80
                        link="${targetDir}/libNCSUtil.so"
81
                        failonerror="false" />
82
                
83
        </target>
84
        
85
        <target name="gdal">
86
                <copy todir="${targetDir}">
87
                        <fileset dir="raster/gdal"
88
                                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"/>
89
                </copy>
90
                <delete file="${targetDir}/libcrypto.so" />
91
                <symlink
92
                        action="single"
93
                        resource="libcrypto.so.0.9.7"
94
                        link="${targetDir}/libcrypto.so"
95
                        failonerror="false" />
96
                <delete file="${targetDir}/libgdal.so" />
97
                <symlink
98
                        action="single"
99
                        resource="libgdal.so.1.10.0"
100
                        link="${targetDir}/libgdal.so"
101
                        failonerror="false" />
102
                <delete file="${targetDir}/libgdal.so.1" />
103
                <symlink
104
                        action="single"
105
                        resource="libgdal.so.1.10.0"
106
                        link="${targetDir}/libgdal.so.1"
107
                        failonerror="false" />
108
                <delete file="${targetDir}/libjasper-1.701.so" />
109
                <symlink
110
                        action="single"
111
                        resource="libjasper-1.701.so.1.0.0"
112
                        link="${targetDir}/libjasper-1.701.so"
113
                        failonerror="false" />
114
                <delete file="${targetDir}/libjasper-1.701.so.1" />
115
                <symlink
116
                        action="single"
117
                        resource="libjasper-1.701.so.1.0.0"
118
                        link="${targetDir}/libjasper-1.701.so.1"
119
                        failonerror="false" />                
120
                <delete file="${targetDir}/libjgdal.so" />
121
                <symlink
122
                        action="single"
123
                        resource="libjgdal.so.0.6.0"
124
                        link="${targetDir}/libjgdal.so"
125
                        failonerror="false" />
126
                <delete file="${targetDir}/libjgdal.so.0" />
127
                <symlink
128
                        action="single"
129
                        resource="libjgdal.so.0.6.0"
130
                        link="${targetDir}/libjgdal.so.0"
131
                        failonerror="false" />
132
                <delete file="${targetDir}/libodbc.so" />
133
                <symlink
134
                        action="single"
135
                        resource="libodbc.so.1"
136
                        link="${targetDir}/libodbc.so"
137
                        failonerror="false" />
138
                <delete file="${targetDir}/libpng.so" />
139
                <symlink
140
                        action="single"
141
                        resource="libpng.so.3"
142
                        link="${targetDir}/libpng.so"
143
                        failonerror="false" />
144
                <delete file="${targetDir}/libpq.so" />
145
                <symlink
146
                        action="single"
147
                        resource="libpq.so.3"
148
                        link="${targetDir}/libpq.so"
149
                        failonerror="false" />
150
                <delete file="${targetDir}/libssl.so" />
151
                <symlink
152
                        action="single"
153
                        resource="libssl.so.0.9.7"
154
                        link="${targetDir}/libssl.so"
155
                        failonerror="false" />
156
                <delete file="${targetDir}/libssl.so.0" />
157
                <symlink
158
                        action="single"
159
                        resource="libssl.so.0.9.7"
160
                        link="${targetDir}/libssl.so.0"
161
                        failonerror="false" />
162
        </target>
163
        
164
        <target name="mrsid">
165
                <copy todir="${targetDir}">
166
                        <fileset dir="raster/mrsid" includes="libjmrsid.so.0.0.2" />
167
                </copy>
168
                <delete file="${targetDir}/libjmrsid.so" />
169
                <symlink
170
                        action="single"
171
                        resource="libjmrsid.so.0.0.2"
172
                        link="${targetDir}/libjmrsid.so"
173
                        failonerror="false" />
174
                <delete file="${targetDir}/libjmrsid.so.0" />
175
                <symlink
176
                        action="single"
177
                        resource="libjmrsid.so.0.0.2"
178
                        link="${targetDir}/libjmrsid.so.0"
179
                        failonerror="false" />
180
        </target>
181
        
182
        <target name="clean">
183
                <delete>
184
                        <fileset
185
                                dir="${targetDir}"
186
                                includes="*.so*"/>
187
                </delete>
188
        </target>
189

    
190
</project>