gvsig-raster / libjni-potrace / trunk / libjni-potrace / resources / potrace-1.8 / build.xml @ 1780
History | View | Annotate | Download (1.84 KB)
1 |
<project name="potrace-1.8" default="main" basedir="."> |
---|---|
2 |
<description>
|
3 |
Compila la librería potrace 1.8 |
4 |
</description>
|
5 |
<property name="build" location="bin/" /> |
6 |
<property name="cmake_build" location="." /> |
7 |
<property environment="env"/> |
8 |
<condition property="potrace_version" value="1.8.0"> |
9 |
<os family="unix"/> |
10 |
</condition>
|
11 |
<condition property="potrace_version" value="180"> |
12 |
<os family="windows"/> |
13 |
</condition>
|
14 |
<condition property="cmake_generator" value="'Unix Makefiles'"> |
15 |
<os family="unix"/> |
16 |
</condition>
|
17 |
<condition property="cmake_generator" value="'Eclipse CDT4 - MinGW Makefiles'"> |
18 |
<os family="windows"/> |
19 |
</condition>
|
20 |
|
21 |
<target name="main" description="prepare and compile natives" depends="clean,prepare-natives,compile-natives"> |
22 |
</target>
|
23 |
|
24 |
<target name="prepare-natives" description="prepares the natives to be compiled"> |
25 |
<mkdir dir="${cmake_build}"/> |
26 |
<delete file="${cmake_build}/CMakeCache.txt"/> |
27 |
<exec dir="${cmake_build}" executable="cmake" os="Linux" > |
28 |
<arg line="." /> |
29 |
<arg line="-G${cmake_generator}" /> |
30 |
<arg line="-DCMAKE_BUILD_TYPE=Release" /> |
31 |
<arg line="-DJPOTRACE_VERSION=${jpotrace_version}" /> |
32 |
</exec>
|
33 |
<exec dir="${cmake_build}" executable="cmake" os="Windows 98,Windows 2000,Windows XP,Windows NT (Unknown)"> |
34 |
<arg line="." /> |
35 |
<arg line="-G${cmake_generator}" /> |
36 |
<arg line="-DCMAKE_BUILD_TYPE=Release" /> |
37 |
<arg line="-DJPOTRACE_VERSION=${jpotrace_version}" /> |
38 |
</exec>
|
39 |
</target>
|
40 |
|
41 |
<target name="compile-natives" description="compiles natives"> |
42 |
<exec dir="${cmake_build}" executable="make" os="Linux"> |
43 |
</exec>
|
44 |
<exec dir="${cmake_build}" executable="nmake" os="Windows 98,Windows 2000,Windows XP,Windows NT (Unknown)"> |
45 |
<arg line="install" /> |
46 |
</exec>
|
47 |
</target>
|
48 |
|
49 |
<target name="clean" description="clean distribution"> |
50 |
<delete dir="lib-dist"/> |
51 |
<delete dir="BMCMake"/> |
52 |
</target>
|
53 |
|
54 |
</project>
|