gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 641ca94)
raw | patch | inline | side by side (parent: 641ca94)
author | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 25 Sep 2013 21:35:21 +0000 (23:35 +0200) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 25 Sep 2013 21:35:21 +0000 (23:35 +0200) |
build.xml | patch | blob | history |
diff --git a/build.xml b/build.xml
index c97de4092b4bde20bf12dbcc5a85c71070821c0b..4b35a7a6fb9460a3252754839b0b9a3d847b802b 100644 (file)
--- a/build.xml
+++ b/build.xml
<project name="mjc2wsl" default="all">
- <property name="mjc2wsl.class.dir" value="bin" />
- <property name="mjc2wsl.src.dir" value="src" />
- <property name="mjc2wsl.options" value="" />
-
- <property name="compiler.class.dir" value="compiler-bin" />
- <property name="compiler.src.dir" value="compiler" />
+ <property name="mjc2wsl.class.dir" value="bin" />
+ <property name="mjc2wsl.src.dir" value="src" />
+ <property name="mjc2wsl.options" value="" />
+
+ <property name="compiler.class.dir" value="compiler-bin" />
+ <property name="compiler.src.dir" value="compiler" />
- <target name="help">
- <echo>Possible options:
- all - build the tool and the compiler and test on the samples
- build - build the mjc2wsl tool
- mj-build - build the mj compiler
- mj-samples - run the mj compiler on the samples (build if needed)
- </echo>
- </target>
-
+ <target name="help">
+ <echo>Possible options:
+ all - build the tool and the compiler and test on the samples
+ build - build the mjc2wsl tool
+ mj-build - build the mj compiler
+ mj-samples - run the mj compiler on the samples (build if needed)
+ </echo>
+ </target>
+
<target name="init">
<mkdir dir="${mjc2wsl.class.dir}"/>
<mkdir dir="${compiler.class.dir}"/>
</target>
- <target name="build" depends="init">
- <javac srcdir="${mjc2wsl.src.dir}" destdir="${mjc2wsl.class.dir}" includeAntRuntime='no' />
- </target>
+ <target name="build" depends="init">
+ <javac srcdir="${mjc2wsl.src.dir}" destdir="${mjc2wsl.class.dir}" includeAntRuntime='no' />
+ </target>
- <target name="mj-build" depends="init">
- <javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
- </target>
-
- <target name="mj-compile">
- <echo message="${filename}" />
- <java classpath="${compiler.class.dir}" classname="Compiler">
- <arg value="${filename}" />
- </java>
- </target>
-
- <target name="mj-samples" depends="mj-build">
- <antcall target="mj-compile">
- <param name="filename" value="samples/sample.mj" />
- </antcall>
- <antcall target="mj-compile">
- <param name="filename" value="samples/sample1.mj" />
- </antcall>
- <antcall target="mj-compile">
- <param name="filename" value="samples/sample0.mj" />
- </antcall>
- </target>
-
- <target name="mjc2wsl">
- <echo message="${filename}" />
- <java classpath="${mjc2wsl.class.dir}" classname="mjc2wsl">
- <arg line="${mjc2wsl.options}" />
- <arg value="${filename}" />
- </java>
- </target>
-
- <target name="mjc2wsl-samples" depends="build">
- <antcall target="mjc2wsl">
- <param name="filename" value="samples/sample0.obj" />
- </antcall>
- </target>
-
- <target name="all" depends='mj-samples,mjc2wsl-samples'>
-
- </target>
-
- <target name="clean" >
- <delete includeemptydirs="true">
+ <target name="mj-build" depends="init">
+ <javac srcdir="${compiler.src.dir}" destdir="${compiler.class.dir}" includeAntRuntime='no' />
+ </target>
+
+ <target name="mj-compile">
+ <echo message="${filename}" />
+ <java classpath="${compiler.class.dir}" classname="Compiler">
+ <arg value="${filename}" />
+ </java>
+ </target>
+
+ <target name="mj-samples" depends="mj-build">
+ <antcall target="mj-compile">
+ <param name="filename" value="samples/sample.mj" />
+ </antcall>
+ <antcall target="mj-compile">
+ <param name="filename" value="samples/sample1.mj" />
+ </antcall>
+ <antcall target="mj-compile">
+ <param name="filename" value="samples/sample0.mj" />
+ </antcall>
+ </target>
+
+ <target name="mjc2wsl">
+ <echo message="${filename}" />
+ <java classpath="${mjc2wsl.class.dir}" classname="mjc2wsl">
+ <arg line="${mjc2wsl.options}" />
+ <arg value="${filename}" />
+ </java>
+ </target>
+
+ <target name="mjc2wsl-samples" depends="build">
+ <antcall target="mjc2wsl">
+ <param name="filename" value="samples/sample0.obj" />
+ </antcall>
+ </target>
+
+ <target name="all" depends='mj-samples,mjc2wsl-samples'>
+
+ </target>
+
+ <target name="clean" >
+ <delete includeemptydirs="true">
<fileset dir=".">
<include name="${mjc2wsl.class.dir}/*.class"/>
<include name="${compiler.class.dir}/*.class"/>
<include name="${compiler.class.dir}"/>
</dirset>
</delete>
- </target>
+ </target>
</project>
\ No newline at end of file