gvsig-raster / org.gvsig.raster.tilecache / trunk / org.gvsig.raster.tilecache / org.gvsig.raster.tilecache.app / src / main / resources-plugin / install / install.xml @ 1972
History | View | Annotate | Download (1.8 KB)
1 |
<project name="org.gvsig.plugin1" default="main" basedir="."> |
---|---|
2 |
<target name="main" depends="copy_files, link1, link2"/> |
3 |
<target name="copy_files"> |
4 |
<copy todir="${gvsig_dir}"> |
5 |
<fileset dir="./files" includes="**"/> |
6 |
</copy>
|
7 |
</target>
|
8 |
<target name="link1" depends="gdal-properties" if="gdal.link1"> |
9 |
<exec executable="ln" > |
10 |
<arg value="-s"/> |
11 |
<arg value="${gdal.so}"/> |
12 |
<arg value="${gdal.link1}"/> |
13 |
</exec>
|
14 |
</target>
|
15 |
<target name="link2" depends="gdal-properties" if="gdal.link2"> |
16 |
<exec executable="ln" > |
17 |
<arg value="-s"/> |
18 |
<arg value="${gdal.so}"/> |
19 |
<arg value="${gdal.link2}"/> |
20 |
</exec>
|
21 |
</target>
|
22 |
<target name="gdal-properties" depends="checkgdal, gdal-properties.1.15.1, gdal-properties.1.13.0"/> |
23 |
<target name="gdal-properties.1.15.1" if="gdal.1.15.1"> |
24 |
<property name="gdal.so" value="${gvsig_dir}/native/libgdal.so.1.15.1"/> |
25 |
<property name="gdal.link1" value="${gvsig_dir}/native/libgdal.so.1"/> |
26 |
<property name="gdal.link2" value="${gvsig_dir}/native/libgdal.so"/> |
27 |
</target>
|
28 |
<target name="gdal-properties.1.13.0" if="gdal.1.13.0"> |
29 |
<property name="gdal.so" value="${gvsig_dir}/native/libgdal.so.1.13.0"/> |
30 |
<property name="gdal.link1" value="${gvsig_dir}/native/libgdal.so.1"/> |
31 |
<property name="gdal.link2" value="${gvsig_dir}/native/libgdal.so"/> |
32 |
</target>
|
33 |
<target name="checkgdal"> |
34 |
<available file="${gvsig_dir}/native/libgdal.so.1.15.1" property="gdal.1.15.1"/> |
35 |
<available file="${gvsig_dir}/native/libgdal.so.1.13.0" property="gdal.1.13.0"/> |
36 |
</target>
|
37 |
|
38 |
<!-- To add a new gdal so version:
|
39 |
* add a new available in "checkgdal" target
|
40 |
* create a new "gdal-properties.x.xx.x" target with right property values
|
41 |
* add the new "gda-properties.x.xx.x" into "gdal-properties" target depends list
|
42 |
|
43 |
|
44 |
-->
|
45 |
</project>
|