<!-- -->
<!-- Ant Scripts for Transpile -->
<!-- -->
<!-- Warranty & Liability -->
<!-- To the extent permitted by applicable law and unless explicitly -->
<!-- otherwise agreed upon, XLOG Technologies AG makes no warranties -->
<!-- regarding the provided information. XLOG Technologies AG assumes -->
<!-- no liability that any problems might be solved with the information -->
<!-- provided by XLOG Technologies AG. -->
<!-- -->
<!-- Rights & License -->
<!-- All industrial property rights regarding the information - copyright -->
<!-- and patent rights in particular - are the sole property of XLOG -->
<!-- Technologies AG. If the company was not the originator of some -->
<!-- excerpts, XLOG Technologies AG has at least obtained the right to -->
<!-- reproduce, change and translate the information. -->
<!-- -->
<!-- Reproduction is restricted to the whole unaltered document. Reproduction -->
<!-- of the information is only allowed for non-commercial uses. Selling, -->
<!-- giving away or letting of the execution of the library is prohibited. -->
<!-- The library can be distributed as part of your applications and libraries -->
<!-- for execution provided this comment remains unchanged. -->
<!-- -->
<!-- Restrictions -->
<!-- Only to be distributed with programs that add significant and primary -->
<!-- functionality to the library. Not to be distributed with additional -->
<!-- software intended to replace any components of the library. -->
<!-- -->
<!-- Trademarks -->
<!-- Jekejeke is a registered trademark of XLOG Technologies AG. -->
<!-- -->

<project name="run_unicode_dogelog" default="main">
    <import file="../envir.xml"/>

    <target name="main" depends="unicode_compile, unicode_run">
    </target>

    <target name="main_jek" depends="unicode_compile_jek, unicode_run_jek">
    </target>

    <!--                                                           -->
    <!-- Compile                                                   -->
    <!--                                                           -->

    <target name="unicode_compile" depends="unicode_compile_common,
                unicode_compile_js, unicode_compile_py">
    </target>

    <target name="unicode_compile_common">
        <javac executable="${jdk9c}"
               includeantruntime="false"
               srcdir="../../transpiler/unicode"
               destdir="../../transpiler/unicode"
               debug="true">
            <compilerarg value="--source"/>
            <compilerarg value="21"/>
            <compilerarg value="--target"/>
            <compilerarg value="21"/>
            <include name="Compress.java"/>
        </javac>
    </target>

    <target name="unicode_compile_js">
        <delete file="../../player/unicode/Unicode.class"/>
        <javac executable="${jdk9c}"
               includeantruntime="false"
               srcdir="../../player/unicode"
               destdir="../../player/unicode"
               debug="true">
            <compilerarg value="--source"/>
            <compilerarg value="21"/>
            <compilerarg value="--target"/>
            <compilerarg value="21"/>
            <classpath>
                <pathelement location="../../transpiler/unicode"/>
            </classpath>
            <include name="Unicode.java"/>
        </javac>
    </target>

    <target name="unicode_compile_py">
        <delete file="../../playerpy/unicode/UnicodePy.class"/>
        <javac executable="${jdk9c}"
               includeantruntime="false"
               srcdir="../../playerpy/unicode"
               destdir="../../playerpy/unicode"
               debug="true">
            <compilerarg value="--source"/>
            <compilerarg value="21"/>
            <compilerarg value="--target"/>
            <compilerarg value="21"/>
            <classpath>
                <pathelement location="../../transpiler/unicode"/>
            </classpath>
            <include name="UnicodePy.java"/>
        </javac>
    </target>

    <target name="unicode_compile_jek" depends="unicode_compile_common,
                unicode_compile_js, unicode_compile_py,
                unicode_compile_cs">
    </target>

    <target name="unicode_compile_cs">
        <javac executable="${jdk9c}"
               includeantruntime="false"
               srcdir="../../playercs/unicode"
               destdir="../../playercs/unicode"
               debug="true">
            <compilerarg value="--source"/>
            <compilerarg value="21"/>
            <compilerarg value="--target"/>
            <compilerarg value="21"/>
            <classpath>
                <pathelement location="../../transpiler/unicode"/>
            </classpath>
            <include name="UnicodeCs.java"/>
        </javac>
    </target>

    <!--                                                           -->
    <!-- Run                                                       -->
    <!--                                                           -->

    <target name="unicode_run" depends="unicode_run_js,
                   unicode_run_py">
    </target>

    <target name="unicode_run_js">
        <java jvm="${jdk9}"
              classname="Unicode"
              fork="true">
            <classpath>
                <pathelement location="../../player/unicode"/>
                <pathelement location="../../transpiler/unicode"/>
            </classpath>
            <arg value="../../player/drawer/nova/unicode.mjs"/>
        </java>
    </target>

    <target name="unicode_run_py">
        <java jvm="${jdk9}"
              classname="UnicodePy"
              fork="true">
            <classpath>
                <pathelement location="../../playerpy/unicode"/>
                <pathelement location="../../transpiler/unicode"/>
            </classpath>
            <arg value="../../playerpy/drawer/nova/unicode.py"/>
        </java>
    </target>

    <target name="unicode_run_jek" depends="unicode_run_js,
                   unicode_run_py, unicode_run_cs">
    </target>

    <target name="unicode_run_cs">
        <java jvm="${jdk9}"
              classname="UnicodeCs"
              fork="true">
            <classpath>
                <pathelement location="../../playercs/unicode"/>
                <pathelement location="../../transpiler/unicode"/>
            </classpath>
            <arg value="../../playercs/drawer/nova/unicode.cs"/>
        </java>
    </target>

</project>