view make/build-graal.xml @ 8637:ce5750014c3d

moved Replacements and MacroSubstitution from the graal.api.replacements project to graal.nodes project and reversed the dependency between these two projects (the latter now/again depends on the former)
author Doug Simon <doug.simon@oracle.com>
date Fri, 05 Apr 2013 01:22:36 +0200
parents 75db7afee829
children a33b6378cb76
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

 This code is free software; you can redistribute it and/or modify it
 under the terms of the GNU General Public License version 2 only, as
 published by the Free Software Foundation.  Oracle designates this
 particular file as subject to the "Classpath" exception as provided
 by Oracle in the LICENSE file that accompanied this code.

 This code is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 version 2 for more details (a copy is included in the LICENSE file that
 accompanied this code).

 You should have received a copy of the GNU General Public License version
 2 along with this work; if not, write to the Free Software Foundation,
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 or visit www.oracle.com if you need additional information or have any
 questions.
-->
<project basedir="." default="main" name="graal">
  <property name="src.dir" value="${gamma.dir}/graal"/>
  <property name="classes.dir" value="${shared.dir}/graal"/>
  <property name="jar.dir" value="${shared.dir}"/>
  <property name="jar.file" value="${jar.dir}/graal.jar"/>
  <target depends="jar" name="main"/>
  <target name="compile">
    <mkdir dir="${classes.dir}"/>
    <javac debug="on" destdir="${classes.dir}" includeantruntime="false">
      <src path="${src.dir}/com.oracle.graal.api.meta"/>
      <src path="${src.dir}/com.oracle.graal.api.code"/>
      <src path="${src.dir}/com.oracle.graal.graph"/>
      <src path="${src.dir}/com.oracle.graal.debug"/>
      <src path="${src.dir}/com.oracle.graal.api.replacements"/>
      <src path="${src.dir}/com.oracle.graal.nodes"/>
      <src path="${src.dir}/com.oracle.graal.phases"/>
      <src path="${src.dir}/com.oracle.graal.phases.common"/>
      <src path="${src.dir}/com.oracle.graal.virtual"/>
      <src path="${src.dir}/com.oracle.graal.loop"/>
      <src path="${src.dir}/com.oracle.graal.alloc"/>
      <src path="${src.dir}/com.oracle.graal.asm"/>
      <src path="${src.dir}/com.oracle.graal.lir"/>
      <src path="${src.dir}/com.oracle.graal.compiler"/>
      <src path="${src.dir}/com.oracle.graal.bytecode"/>
      <src path="${src.dir}/com.oracle.graal.java"/>
      <src path="${src.dir}/com.oracle.graal.word"/>
      <src path="${src.dir}/com.oracle.graal.api.runtime"/>
      <src path="${src.dir}/com.oracle.graal.replacements"/>
      <src path="${src.dir}/com.oracle.graal.printer"/>
      <src path="${src.dir}/com.oracle.graal.hotspot"/>
      <src path="${src.dir}/com.oracle.graal.amd64"/>
      <src path="${src.dir}/com.oracle.graal.asm.amd64"/>
      <src path="${src.dir}/com.oracle.graal.lir.amd64"/>
      <src path="${src.dir}/com.oracle.graal.compiler.amd64"/>
      <src path="${src.dir}/com.oracle.graal.replacements.amd64"/>
      <src path="${src.dir}/com.oracle.graal.hotspot.amd64"/>
      <src path="${src.dir}/com.oracle.graal.sparc"/>
      <src path="${src.dir}/com.oracle.graal.asm.sparc"/>
      <src path="${src.dir}/com.oracle.graal.lir.sparc"/>
      <src path="${src.dir}/com.oracle.graal.compiler.sparc"/>
      <src path="${src.dir}/com.oracle.graal.hotspot.sparc"/>
      <compilerarg value="-XDignore.symbol.file"/>
      <classpath>
        <fileset dir="${java.home}/../lib">
          <include name="tools.jar"/>
        </fileset>
      </classpath>
    </javac>
  </target>
  <target depends="compile" name="jar">
    <mkdir dir="${jar.dir}"/>
    <jar basedir="${classes.dir}" destfile="${jar.file}"/>
  </target>
  <target name="clean">
    <delete dir="${classes.dir}"/>
    <delete file="${jar.filr}"/>
  </target>
</project>