2011-12-06 07:50:25 +04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- Version: $Id: build.xml 495 2011-07-07 20:14:37Z chth $ -->
|
|
|
|
<project name="openseadragon"
|
2012-06-05 15:52:00 +04:00
|
|
|
default="www">
|
2011-12-06 07:50:25 +04:00
|
|
|
|
|
|
|
<tstamp/>
|
|
|
|
|
2011-12-13 02:22:01 +04:00
|
|
|
<description>
|
2011-12-06 07:50:25 +04:00
|
|
|
Build file for Zoomable User Interface HTML5 project OpenSeadragon.
|
|
|
|
</description>
|
|
|
|
|
2011-12-13 02:22:01 +04:00
|
|
|
<!-- YOU CAN OVERRIDE PROPERTIES PER YOUR NEED IN local.properties -->
|
|
|
|
<property file="local.properties" />
|
|
|
|
|
2011-12-06 07:50:25 +04:00
|
|
|
<!-- BASIC PROJECT PROPERTIES TO HELP TRACK VERSION -->
|
|
|
|
<property file="build.properties" />
|
|
|
|
|
|
|
|
<target name="build">
|
|
|
|
<echo>| OpenSeadragon </echo>
|
|
|
|
<filelist id="openseadragon.javascript"
|
|
|
|
dir=".">
|
|
|
|
<file name="src/openseadragon.js" />
|
2011-12-15 03:22:02 +04:00
|
|
|
<file name="src/eventhandler.js" />
|
2011-12-06 07:50:25 +04:00
|
|
|
<file name="src/mousetracker.js" />
|
|
|
|
<file name="src/control.js" />
|
2012-03-09 20:04:28 +04:00
|
|
|
<file name="src/controldock.js" />
|
2011-12-06 07:50:25 +04:00
|
|
|
<file name="src/viewer.js" />
|
2012-03-07 07:20:00 +04:00
|
|
|
<file name="src/navigator.js" />
|
2011-12-06 07:50:25 +04:00
|
|
|
<file name="src/strings.js" />
|
|
|
|
<file name="src/point.js" />
|
2012-01-25 23:14:02 +04:00
|
|
|
<!--file name="src/profiler.js" /-->
|
2011-12-06 07:50:25 +04:00
|
|
|
<file name="src/tilesource.js" />
|
|
|
|
<file name="src/dzitilesource.js" />
|
2012-02-23 08:02:54 +04:00
|
|
|
<file name="src/legacytilesource.js" />
|
2011-12-06 07:50:25 +04:00
|
|
|
<file name="src/button.js" />
|
|
|
|
<file name="src/buttongroup.js" />
|
|
|
|
<file name="src/rectangle.js" />
|
2012-08-29 22:46:34 +04:00
|
|
|
<file name="src/referencestrip.js" />
|
2011-12-06 07:50:25 +04:00
|
|
|
<file name="src/displayrectangle.js" />
|
|
|
|
<file name="src/spring.js" />
|
|
|
|
<file name="src/tile.js" />
|
|
|
|
<file name="src/overlay.js" />
|
|
|
|
<file name="src/drawer.js" />
|
|
|
|
<file name="src/viewport.js" />
|
|
|
|
</filelist>
|
|
|
|
|
|
|
|
<echo>| Building OpenSeadragon Javascript </echo>
|
|
|
|
<concat destFile="openseadragon.js">
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="VERSION" value="${VERSION}"/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
<filelist refid="openseadragon.javascript" />
|
|
|
|
</concat>
|
2012-06-05 15:52:00 +04:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name='www' depends='build'>
|
|
|
|
<echo>| Compiling OpenSeadragon Web Site </echo>
|
|
|
|
<publish page='overlay-highlights' title='Overlay Highlights | '/>
|
|
|
|
|
|
|
|
<publish page='tilesource-custom' title='Custom Tile Source | '/>
|
|
|
|
<publish page='tilesource-dzi' title='DZI Tile Source | '/>
|
|
|
|
<publish page='tilesource-iiif' title='IIIF Tile Source | '/>
|
|
|
|
<publish page='tilesource-legacy' title='Legacy Tile Sources | '/>
|
|
|
|
<publish page='tilesource-sequence' title='Tile Source Sequence | '/>
|
|
|
|
|
|
|
|
<publish page='ui-binding-custom-buttons' title='Binding Custom Buttons | '/>
|
2012-08-29 22:46:34 +04:00
|
|
|
<publish page='ui-collections' title='Image Reference Strip | '/>
|
2012-06-05 15:52:00 +04:00
|
|
|
<publish page='ui-toolbar' title='Toolbar | '/>
|
|
|
|
<publish page='ui-viewport-navigator' title='Viewport Navigator | '/>
|
2011-12-13 02:22:01 +04:00
|
|
|
|
|
|
|
<copy todir='${WWW}' file='openseadragon.js' />
|
2011-12-06 07:50:25 +04:00
|
|
|
</target>
|
|
|
|
|
2012-01-25 23:14:02 +04:00
|
|
|
|
|
|
|
<target name='doc'
|
|
|
|
depends='build'>
|
|
|
|
<echo>| Generating Public API Documentation </echo>
|
|
|
|
<java jar="../jsdoc-toolkit/jsrun.jar"
|
|
|
|
fork="true">
|
|
|
|
<arg value="bin/jsdoc/run.js"/>
|
|
|
|
<arg value="openseadragon.js"/>
|
|
|
|
<arg value="--template=bin/jsdoc/templates"/>
|
|
|
|
<arg value="--directory=${WWW_DOCS}"/>
|
|
|
|
<arg value="--verbose"/>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2012-06-05 15:52:00 +04:00
|
|
|
|
|
|
|
<macrodef name='publish'>
|
|
|
|
<attribute name='page'/>
|
|
|
|
<attribute name='title'/>
|
|
|
|
<sequential>
|
|
|
|
<loadfile property='@{page}.html' srcfile='www/@{page}.html' />
|
|
|
|
<mkdir dir='${WWW}/examples/@{page}'/>
|
|
|
|
<copy file='www/base.html'
|
|
|
|
tofile="${WWW}/examples/@{page}/index.html"
|
|
|
|
overwrite='true'>
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="EXAMPLE" value='${@{page}.html}'/>
|
|
|
|
<token key="TITLE" value='@{title}'/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
|
|
|
<loadfile property='index.html' srcfile='www/index.html' />
|
|
|
|
<copy file='www/base.html' tofile="${WWW}/index.html" overwrite='true'>
|
|
|
|
<filterchain>
|
|
|
|
<replacetokens>
|
|
|
|
<token key="EXAMPLE" value='${index.html}'/>
|
|
|
|
<token key="TITLE" value=''/>
|
|
|
|
</replacetokens>
|
|
|
|
</filterchain>
|
|
|
|
</copy>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
|
|
|
|
2011-12-06 07:50:25 +04:00
|
|
|
</project>
|