view make/build-graal.xml @ 9849:e876c2a6954f

extensible option system (GRAAL-27) partial conversion from GraalOptions to new system
author Doug Simon <doug.simon@oracle.com>
date Mon, 03 Jun 2013 21:59:44 +0200
parents 705aca4ebf2f
children 6898d8995866 477fb9a9a06d
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 depends="cleanclasses" name="compile">
    <mkdir dir="${classes.dir}"/>
    <javac debug="on" destdir="${classes.dir}" includeantruntime="false">
      <src path="${src.dir}/com.oracle.graal.api.runtime"/>
      <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.options"/>
      <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.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}">
      <service type="com.oracle.graal.nodes.spi.ReplacementsProvider">
        <provider classname="com.oracle.graal.hotspot.replacements.CallSiteSubstitutions"/>
        <provider classname="com.oracle.graal.hotspot.replacements.HotSpotNmethodIntrinsics"/>
        <provider classname="com.oracle.graal.replacements.GraalMethodSubstitutions"/>
      </service>
      <service type="com.oracle.graal.options.OptionProvider">
        <provider classname="com.oracle.graal.compiler.GraalCompiler_VerifyUsageWithEquals"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_DebugEnabled"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_Dump"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_DumpOnError"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_Log"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_Meter"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_MethodFilter"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_PerThreadDebugValues"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_SummarizeDebugValues"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_SummarizePerPhase"/>
        <provider classname="com.oracle.graal.compiler.GraalDebugConfig_Time"/>
        <provider classname="com.oracle.graal.hotspot.CompilationTask_SlowQueueCutoff"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_BenchmarkDynamicCounters"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_GenericDynamicCounters"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_LogFile"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_PrintQueue"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_PriorityCompileQueue"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_SlowCompileThreads"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_Threads"/>
        <provider classname="com.oracle.graal.hotspot.bridge.VMToCompilerImpl_TimedBootstrap"/>
      </service>
      <service type="com.oracle.graal.phases.tiers.CompilerConfiguration">
        <provider classname="com.oracle.graal.compiler.phases.BasicCompilerConfiguration"/>
      </service>
      <service type="javax.annotation.processing.Processor">
        <provider classname="com.oracle.graal.options.OptionProcessor"/>
      </service>
    </jar>
  </target>
  <target name="cleanclasses">
    <delete dir="${classes.dir}"/>
  </target>
  <target depends="cleanclasses" name="clean">
    <delete file="${jar.file}"/>
  </target>
</project>