svn-gvsig-desktop / tags / gvsig_redes-1_0_0-1235 / libraries / libjni-ecw / build.xml @ 47840
History | View | Annotate | Download (2.18 KB)
1 | 19218 | maquerol | <project name="libjni-ecw" default="main" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Compila la librerÃa jecw |
||
4 | </description>
|
||
5 | |||
6 | <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 | <property environment="env"/> |
||
12 | 29504 | nbrodin | <condition property="jecw_version" value="0.0.7"> |
13 | 19218 | maquerol | <os family="unix"/> |
14 | </condition>
|
||
15 | 29504 | nbrodin | <condition property="jecw_version" value="007"> |
16 | 19218 | maquerol | <os family="windows"/> |
17 | </condition>
|
||
18 | 29504 | nbrodin | <property name="jecw-jar" location="jecw-0.0.7.jar" /> |
19 | 19218 | 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 | </condition>
|
||
25 | |||
26 | 19343 | maquerol | <target name="main" description="compile java code, make jars, prepare and compile natives" depends="clean,jar,prepare-natives,compile-natives"> |
27 | 19218 | maquerol | </target>
|
28 | |||
29 | <target name="jar" description="makes jar file"> |
||
30 | <mkdir dir="${build}" /> |
||
31 | 20373 | maquerol | <javac srcdir="${src-java}" destdir="${build}" debug="true"/> |
32 | 19218 | maquerol | <mkdir dir="${jar-dist}" /> |
33 | <jar jarfile="${jecw-jar}" basedir="${build}" includes="com/ermapper/**,es/gva/cit/jecwcompress/**" /> |
||
34 | <move file="${jecw-jar}" todir="${jar-dist}" /> |
||
35 | </target>
|
||
36 | |||
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 | <exec dir="${cmake_build}" executable="cmake"> |
||
41 | <arg line=".." /> |
||
42 | <arg line="-G${cmake_generator}" /> |
||
43 | <arg line="-DCMAKE_BUILD_TYPE=Release" /> |
||
44 | 19343 | maquerol | <arg line="-DJECW_VERSION=${jecw_version}" /> |
45 | 19218 | maquerol | </exec>
|
46 | </target>
|
||
47 | |||
48 | <target name="compile-natives" description="compiles natives"> |
||
49 | <exec dir="${cmake_build}" executable="make" os="Linux"> |
||
50 | <arg line="install" /> |
||
51 | </exec>
|
||
52 | <exec dir="${cmake_build}" executable="nmake" os="Windows 98,Windows 2000,Windows XP,Windows NT (Unknown)"> |
||
53 | <arg line="install" /> |
||
54 | </exec>
|
||
55 | </target>
|
||
56 | |||
57 | 19221 | maquerol | |
58 | <target name="clean" description="clean distribution"> |
||
59 | <delete dir="jar-dist"/> |
||
60 | <delete dir="lib-dist"/> |
||
61 | <delete dir="BMCMake"/> |
||
62 | <delete dir="bin"/> |
||
63 | </target>
|
||
64 | 19218 | maquerol | |
65 | </project> |