svn-gvsig-desktop / tags / v1_9_Build_1243 / libraries / libjni-potrace / build.xml @ 33596
History | View | Annotate | Download (2.44 KB)
1 |
<project name="libjni-potrace" default="main" basedir="."> |
---|---|
2 |
<description>
|
3 |
Compila la librerÃa jpotrace |
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="." /> |
11 |
<property environment="env"/> |
12 |
<condition property="jpotrace_version" value="0.0.1"> |
13 |
<os family="unix"/> |
14 |
</condition>
|
15 |
<condition property="jpotrace_version" value="001"> |
16 |
<os family="windows"/> |
17 |
</condition>
|
18 |
<property name="jpotrace-jar" location="jpotrace-0.0.1.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="${jpotrace-jar}" basedir="${build}" includes="es/gva/cit/**, org/gvsig/**" /> |
34 |
<move file="${jpotrace-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" os="Linux" > |
41 |
<arg line="." /> |
42 |
<arg line="-G${cmake_generator}" /> |
43 |
<arg line="-DCMAKE_BUILD_TYPE=Release" /> |
44 |
<arg line="-DJPOTRACE_VERSION=${jpotrace_version}" /> |
45 |
</exec>
|
46 |
<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="-DJPOTRACE_VERSION=${jpotrace_version}" /> |
51 |
</exec>
|
52 |
</target>
|
53 |
|
54 |
<target name="compile-natives" description="compiles natives"> |
55 |
<exec dir="${cmake_build}" executable="make" os="Linux"> |
56 |
</exec>
|
57 |
<exec dir="${cmake_build}" executable="nmake" os="Windows 98,Windows 2000,Windows XP,Windows NT (Unknown)"> |
58 |
<arg line="install" /> |
59 |
</exec>
|
60 |
</target>
|
61 |
|
62 |
<target name="clean" description="clean distribution"> |
63 |
<delete dir="jar-dist"/> |
64 |
<delete dir="lib-dist"/> |
65 |
<delete dir="BMCMake"/> |
66 |
</target>
|
67 |
</project>
|