make/idea/build.xml
author kbarrett
Thu, 04 Jul 2019 13:26:41 -0400
changeset 55592 fd1a4c4b7616
parent 51565 7e5f08c619e3
permissions -rw-r--r--
8226793: Replace OopStorage dup_name with os::strdup Summary: Use os::strdup and os::free. Reviewed-by: tschatzl

<!-- importing.xml -->
<project name="jdk">

    <script language="javascript" classpath="${idea.dir}/classes">
        var JdkLogger = Java.type("idea.JdkIdeaAntLogger");
        new JdkLogger(project)
    </script>

    <macrodef name="call-make">
        <attribute name="dir"/>
        <attribute name="args"/>
        <sequential>
            <exec executable="make" dir="@{dir}" failonerror="true">
                <arg line="@{args}"/>
                <env key="CLASSPATH" value = ""/>
            </exec>
        </sequential>
    </macrodef>

    <target name="cond-clean" unless="${intellij.ismake}">
        <antcall target="clean"/>
    </target>

    <target name="post-make" depends="cond-clean, build-module"/>

    <!--
        **** Global JDK Build Targets
    -->

    <target name="clean">
        <echo message="base = ${basedir}"/>
        <call-make dir = "${build.target.dir}" args = "reconfigure"/>
        <call-make dir = "${build.target.dir}" args = "clean"/>
    </target>

    <target name="images">
        <call-make dir = "${build.target.dir}" args = "images"/>
    </target>

    <target name="build-module">
        <call-make dir = "${build.target.dir}" args = "${module.name}"/>
    </target>
</project>