@yaga/cordova-plugin-spatialite
Version:
A Spatialite plugin for cordova
99 lines (84 loc) • 3.64 kB
text/xml
<project name="jproj" default="compile" basedir=".">
<!-- ******************************************* -->
<!-- set the variables -->
<!-- ******************************************* -->
<property name="src" value="org/proj4"/>
<property name="build" value="classes"/>
<property name="libs" value="libs"/>
<!-- ******************************************* -->
<!-- start everything (default target) -->
<!-- ******************************************* -->
<target name="compile" depends="start, do_javac, jar_it">
<echo>Compilation finished...</echo>
</target>
<!-- ******************************************* -->
<!-- create some begin stuff -->
<!-- ******************************************* -->
<target name="start">
<echo>Start compilation...</echo>
<!-- <splash imageurl="./etc/images/logo.jpg" showduration="5000"/> -->
<echo>Creating folder structure...</echo>
<mkdir dir="${build}"/>
<mkdir dir="${libs}"/>
</target>
<!-- ******************************************* -->
<!-- execute javac compilation -->
<!-- ******************************************* -->
<target name="do_javac" depends="start">
<echo>Compiling the java code...</echo>
<javac srcdir="${src}" destdir="${build}" debug="on">
</javac>
</target>
<!-- ******************************************* -->
<!-- execute javah for JNI headers -->
<!-- ******************************************* -->
<!-- needed if something if new native methods are added -->
<!-- ******************************************* -->
<target name="do_javah" depends="do_javac">
<echo>Creating jni headers...</echo>
<exec dir="${build}" executable="javah" os="Linux">
<arg line="-jni -d ../native org.proj4.Projections"/>
</exec>
</target>
<!-- ******************************************* -->
<!-- do the C part compilation through make -->
<!-- ******************************************* -->
<target name="do_make" depends="do_javah">
<echo>Compiling libraries ...</echo>
<exec dir="." executable="make" os="Linux">
<arg line=""/>
</exec>
</target>
<!-- ******************************************* -->
<!-- create binary package distribution with ant -->
<!-- ******************************************* -->
<!-- this is not working properly by now -->
<target name="jar_it">
<delete file="${libs}/jproj.jar"/>
<jar destfile="${libs}/jproj.jar" basedir="${build}/">
<manifest>
<attribute name="Built-By" value="the jgrass idealists"/>
</manifest>
</jar>
<delete dir="${build}"/>
</target>
<!-- ****************************************************** -->
<!-- execute doxygen help file and source file creation -->
<!-- ****************************************************** -->
<target name="do_make_help" depends="start">
<echo>Creating help files...</echo>
<exec dir="." executable="doxygen">
<arg line="doxygen.cfg"/>
</exec>
</target>
<!-- ******************************************* -->
<!-- clean up everything -->
<!-- ******************************************* -->
<target name="clean">
<echo>Cleaning up...</echo>
<delete dir="${build}"/>
<delete dir="${libs}"/>
<delete dir="docs"/>
</target>
</project>