source: branches/4.2/components/autogen/build.xml @ 6496

Revision 6496, 2.8 KB checked in by melissa, 10 years ago (diff)

Updated bf-cpp to compile with latest ome.xml.* and loci.formats.meta.* changes.

Line 
1<!--
2build.xml
3
4Ant build file for LOCI code generators.
5Download Apache Ant from http://ant.apache.org/.
6Type "ant -p" for a list of targets.
7-->
8
9<project name="autogen" default="jar" basedir=".">
10  <description>Build file for LOCI code generators</description>
11  <property name="root.dir" location="../.."/>
12  <import file="${root.dir}/ant/java.xml"/>
13  <property file="build.properties"/>
14
15  <target name="gen-meta" depends="compile"
16    description="generate code for Bio-Formats metadata classes">
17    <java classname="${component.main-class}"
18      classpath="${classes.dir}:${component.runtime-cp}"
19      fork="true" dir="${component.meta-dir}"/>
20  </target>
21
22  <target name="gen-bf-ice" depends="compile"
23    description="generate code for Bio-Formats Ice framework">
24    <java classname="${component.main-class}"
25      classpath="${classes.dir}:${component.runtime-cp}"
26      fork="true" dir="${component.ice-dir}">
27      <arg value="-ice"/>
28    </java>
29  </target>
30
31  <target name="gen-meta-support" depends="compile"
32    description="generate docs for Bio-Formats metadata support">
33    <if>
34      <isset property="omexml.version"/>
35      <then>
36        <java classname="${component.meta-support-class}"
37          classpath="${classes.dir}:${component.runtime-cp}"
38          fork="true" dir="${component.meta-support-dir}">
39            <arg value="${omexml.version}"/>
40        </java>
41      </then>
42      <else>
43<echo>
44Please set the omexml.version property to match
45the latest release of the OME-XML schema. E.g.:
46  ant -Domexml.version=2008-09 gen-meta-support
47</echo>
48      </else>
49    </if>
50  </target>
51
52  <target name="gen-bf-cpp" depends="compile"
53    description="generate header for Bio-Formats C++ bindings">
54    <java classname="${component.jace-header-class}"
55      classpath="${classes.dir}:${component.runtime-cp}"
56      fork="true" dir="${component.jace-header-dir}">
57      <arg value="bio-formats"/>
58      <arg value="${root.dir}/components/bio-formats/src"/>
59    </java>
60    <java classname="${component.jace-header-class}"
61      classpath="${classes.dir}:${component.runtime-cp}"
62      fork="true" dir="${component.jace-header-dir}">
63      <arg value="loci-common"/>
64      <arg value="${root.dir}/components/common/src"/>
65    </java>
66    <java classname="${component.jace-header-class}"
67      classpath="${classes.dir}:${component.runtime-cp}"
68      fork="true" dir="${component.jace-header-dir}">
69      <arg value="ome-xml"/>
70      <arg value="${root.dir}/components/ome-xml/src"/>
71    </java>
72    <java classname="${component.jace-header-class}"
73      classpath="${classes.dir}:${component.runtime-cp}"
74      fork="true" dir="${component.jace-header-dir}">
75      <arg value="flow-cytometry"/>
76      <arg value="${root.dir}/components/flow-cytometry/src"/>
77    </java>
78  </target>
79
80</project>
Note: See TracBrowser for help on using the repository browser.