gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
2ac74355bb2f33278af91ce1c70bc556df802918
[mjc2wsl.git] / build.xml
1 <project name="mjc2wsl" default="all">
3 <property name="mjc2wsl.class.dir" value="bin" />
4 <property name="mjc2wsl.src.dir" value="src" />
5 <property name="mjc2wsl.options" value="" />
7 <property name="compiler.class.dir" value="compiler" />
8 <property name="compiler.src.dir" value="compiler" />
10 <target name="help">
11 <echo>Possible options:
12 all - build the tool and the compiler and test on the samples
13 build - build the mjc2wsl tool
14 mj-build - build the mj compiler
15 mj-samples - run the mj compiler on the samples (build if needed)
16 </echo>
17 </target>
19 <target name="build">
20 <javac srcdir="${mjc2wsl.src.dir}" destdir="${mjc2wsl.class.dir}" includeAntRuntime='no' />
21 </target>
23 <target name="mj-build">
24 <javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
25 </target>
27 <target name="mj-compile">
28 <echo message="${filename}" />
29 <java classpath="${compiler.class.dir}" classname="Compiler">
30 <arg value="${filename}" />
31 </java>
32 </target>
34 <target name="mj-samples" depends="mj-build">
35 <antcall target="mj-compile">
36 <param name="filename" value="samples/sample.mj" />
37 </antcall>
38 <antcall target="mj-compile">
39 <param name="filename" value="samples/sample1.mj" />
40 </antcall>
41 <antcall target="mj-compile">
42 <param name="filename" value="samples/sample0.mj" />
43 </antcall>
44 </target>
46 <target name="mjc2wsl">
47 <echo message="${filename}" />
48 <java classpath="${mjc2wsl.class.dir}" classname="mjc2wsl">
49 <arg line="${mjc2wsl.options}" />
50 <arg value="${filename}" />
51 </java>
52 </target>
54 <target name="mjc2wsl-samples" depends="build">
55 <antcall target="mjc2wsl">
56 <param name="filename" value="samples/sample0.obj" />
57 </antcall>
58 </target>
60 <target name="all" depends='mj-samples,mjc2wsl-samples'>
62 </target>
64 </project>
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner