svn-gvsig-desktop / tags / v1_9_Build_1246 / libraries / libjni-ecw / build.xml
History | View | Annotate | Download (2.18 KB)
1 |
<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 |
<condition property="jecw_version" value="0.0.7"> |
13 |
<os family="unix"/> |
14 |
</condition>
|
15 |
<condition property="jecw_version" value="007"> |
16 |
<os family="windows"/> |
17 |
</condition>
|
18 |
<property name="jecw-jar" location="jecw-0.0.7.jar" /> |
19 |
<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 |
<target name="main" description="compile java code, make jars, prepare and compile natives" depends="clean,jar,prepare-natives,compile-natives"> |
27 |
</target>
|
28 |
|
29 |
<target name="jar" description="makes jar file"> |
30 |
<mkdir dir="${build}" /> |
31 |
<javac srcdir="${src-java}" destdir="${build}" debug="true"/> |
32 |
<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 |
<arg line="-DJECW_VERSION=${jecw_version}" /> |
45 |
</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 |
|
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 |
|
65 |
</project>
|