git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1139 6952d904-891a-0410-993b-d76249ca496b
101 lines
3.4 KiB
XML
101 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="isfreetype" default="build-jars" basedir="../">
|
|
<description>
|
|
This is a generic native code wrapper
|
|
</description>
|
|
|
|
<!-- set global properties for this build -->
|
|
<property name="user.name" value="intarsys consulting GmbH"/>
|
|
<property name="isfreetype.src.dir" location="src"/>
|
|
<property name="isfreetype.resource.dir" location="resource"/>
|
|
|
|
<target name="init">
|
|
<property file="ant/build.properties" />
|
|
|
|
<property name="isfreetype.build.root" location="${build.dir}/isfreetype"/>
|
|
<property name="isfreetype.build.dir" location="${isfreetype.build.root}/build"/>
|
|
<property name="isfreetype.dist.dir" location="${isfreetype.build.root}/dist"/>
|
|
<property name="isfreetype.javadoc.dir" location="${isfreetype.build.root}/javadoc"/>
|
|
|
|
</target>
|
|
|
|
<target name="make-structure" depends="init">
|
|
<!-- Create the build directory structure used by compile -->
|
|
<mkdir dir="${isfreetype.build.dir}"/>
|
|
<mkdir dir="${isfreetype.dist.dir}"/>
|
|
<mkdir dir="${isfreetype.javadoc.dir}"/>
|
|
</target>
|
|
|
|
<target name="clean" depends="init" description="clean up" >
|
|
<!-- Delete the ${dist} directory trees -->
|
|
<delete dir="${isfreetype.javadoc.dir}"/>
|
|
<delete dir="${isfreetype.dist.dir}"/>
|
|
<delete dir="${isfreetype.build.dir}"/>
|
|
</target>
|
|
|
|
<target name="compile" depends="make-structure" description="isfreetype compile" >
|
|
<!-- Construct classpath -->
|
|
<path id="isfreetype.classpath">
|
|
<fileset dir="${libs.dir}">
|
|
<include name="**/${isrt.jar.name}.jar"/>
|
|
<include name="**/${isnativec.jar.name}.jar"/>
|
|
<include name="**/${jna.jar.name}.jar"/>
|
|
</fileset>
|
|
<pathelement path="${isfreetype.build.dir}"/>
|
|
</path>
|
|
|
|
<!-- Compile the java code -->
|
|
<javac compiler="javac1.4" target="1.4" source="1.4" srcdir="${isfreetype.src.dir}" destdir="${isfreetype.build.dir}" debug="true">
|
|
<classpath refid="isfreetype.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="build-jars" depends="compile" description="generate the distribution" >
|
|
|
|
<jar jarfile="${isfreetype.dist.dir}/${isfreetype.jar.name}.jar" basedir="${isfreetype.build.dir}">
|
|
<manifest>
|
|
<attribute name="Built-By" value="${user.name}"/>
|
|
<attribute name="Main-Class" value=""/>
|
|
<attribute name="Class-Path" value="${isrt.jar.name}.jar ${isnativec.jar.name}.jar ${jna.jar.name}.jar"/>
|
|
</manifest>
|
|
<fileset dir="${isfreetype.resource.dir}">
|
|
<include name="**/*"/>
|
|
</fileset>
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
<!-- Javadoc -->
|
|
<target name="javadoc" depends="make-structure">
|
|
<javadoc
|
|
packagenames="de.intarsys.cwt.freetype.*"
|
|
sourcepath="${isfreetype.src.dir}"
|
|
destdir="${isfreetype.javadoc.dir}"
|
|
author="true"
|
|
version="true"
|
|
use="true"
|
|
windowtitle="freetype API"
|
|
doctitle="freetype API" >
|
|
<classpath refid="isfreetype.classpath"/>
|
|
</javadoc>
|
|
</target>
|
|
|
|
|
|
|
|
<target name="buildZipSrcPackage" depends="javadoc" description="generate build sources zip package" >
|
|
<zip destfile="${isfreetype.dist.dir}/${isfreetype.jar.name}-build-src.zip">
|
|
<fileset dir="..">
|
|
<include name="isfreetype/src/**/*"/>
|
|
</fileset>
|
|
<fileset dir="${build.dir}">
|
|
<include name="isfreetype/javadoc/**/*.*"/>
|
|
</fileset>
|
|
<fileset dir="..">
|
|
<include name="isfreetype/ant/**/*.*"/>
|
|
</fileset>
|
|
</zip>
|
|
</target>
|
|
|
|
</project>
|
|
|