svn-gvsig-desktop / tags / v1_12_0_Build_1413 / libraries / libjni-gdal / build.xml @ 40002
History | View | Annotate | Download (2.49 KB)
1 | 17811 | maquerol | <project name="libjni-gdal" default="main" basedir="."> |
---|---|---|---|
2 | 17679 | maquerol | <description>
|
3 | Compila la librerÃa jgdal |
||
4 | </description>
|
||
5 | 17983 | maquerol | |
6 | 17707 | maquerol | <property name="src-java" location="src/main/java" /> |
7 | <property name="src-tet-java" location="src/test/java" /> |
||
8 | <property name="jar-dist" location="jar-dist" /> |
||
9 | <property name="build" location="bin/" /> |
||
10 | <property name="cmake_build" location="BMCMake/" /> |
||
11 | 17983 | maquerol | <property environment="env"/> |
12 | 30321 | nbrodin | <condition property="jgdal_version" value="0.9.2"> |
13 | 17983 | maquerol | <os family="unix"/> |
14 | </condition>
|
||
15 | 30321 | nbrodin | <condition property="jgdal_version" value="092"> |
16 | 17983 | maquerol | <os family="windows"/> |
17 | </condition>
|
||
18 | 30321 | nbrodin | <property name="jgdal-jar" location="jgdal-0.9.2.jar" /> |
19 | 17707 | maquerol | <condition property="cmake_generator" value="'Unix Makefiles'"> |
20 | <os family="unix"/> |
||
21 | </condition>
|
||
22 | <condition property="cmake_generator" value="'NMake Makefiles'"> |
||
23 | <os family="windows"/> |
||
24 | 17983 | maquerol | </condition>
|
25 | 17707 | maquerol | |
26 | 19309 | maquerol | <target name="main" description="compile java code, make jars, prepare and compile natives" depends="clean,jar,prepare-natives,compile-natives"> |
27 | 17679 | maquerol | </target>
|
28 | 17707 | maquerol | |
29 | <target name="jar" description="makes jar file"> |
||
30 | <mkdir dir="${build}" /> |
||
31 | 20367 | maquerol | <javac srcdir="${src-java}" destdir="${build}" debug="true" /> |
32 | 17707 | maquerol | <mkdir dir="${jar-dist}" /> |
33 | 19974 | nbrodin | <jar jarfile="${jgdal-jar}" basedir="${build}" includes="es/gva/cit/**, org/gvsig/**" /> |
34 | 17707 | maquerol | <move file="${jgdal-jar}" todir="${jar-dist}" /> |
35 | 17679 | maquerol | </target>
|
36 | 17707 | maquerol | |
37 | <target name="prepare-natives" description="prepares the natives to be compiled"> |
||
38 | <mkdir dir="${cmake_build}"/> |
||
39 | <delete file="${cmake_build}/CMakeCache.txt"/> |
||
40 | 19974 | nbrodin | <exec dir="${cmake_build}" executable="cmake" os="Linux" > |
41 | 17983 | maquerol | <arg line=".." /> |
42 | 17707 | maquerol | <arg line="-G${cmake_generator}" /> |
43 | <arg line="-DCMAKE_BUILD_TYPE=Release" /> |
||
44 | <arg line="-DJGDAL_VERSION=${jgdal_version}" /> |
||
45 | </exec>
|
||
46 | 19374 | maquerol | <exec dir="${cmake_build}" executable="cmake" os="Windows 98,Windows 2000,Windows XP,Windows NT (Unknown)"> |
47 | <arg line=".." /> |
||
48 | <arg line="-G${cmake_generator}" /> |
||
49 | <arg line="-DCMAKE_BUILD_TYPE=Release" /> |
||
50 | <arg line="-DJGDAL_VERSION=${jgdal_version}" /> |
||
51 | <arg line="-DHDF4=true"/> |
||
52 | <arg line="-DHDF5=true"/> |
||
53 | </exec>
|
||
54 | 17679 | maquerol | </target>
|
55 | 17707 | maquerol | |
56 | <target name="compile-natives" description="compiles natives"> |
||
57 | <exec dir="${cmake_build}" executable="make" os="Linux"> |
||
58 | <arg line="install" /> |
||
59 | 17692 | maquerol | </exec>
|
60 | 17707 | maquerol | <exec dir="${cmake_build}" executable="nmake" os="Windows 98,Windows 2000,Windows XP,Windows NT (Unknown)"> |
61 | <arg line="install" /> |
||
62 | 17695 | maquerol | </exec>
|
63 | 17679 | maquerol | </target>
|
64 | 19223 | maquerol | |
65 | <target name="clean" description="clean distribution"> |
||
66 | <delete dir="jar-dist"/> |
||
67 | <delete dir="lib-dist"/> |
||
68 | <delete dir="BMCMake"/> |
||
69 | </target>
|
||
70 | 17707 | maquerol | |
71 | |||
72 | 17679 | maquerol | </project> |