view example/task_config/tasks.xml @ 329:d3ea1d049230 draft

add task/config/tasks.xml lib/tasks.xml
author aaa
date Fri, 12 Jun 2009 15:29:27 +0900
parents
children 82e217ed5af5
line wrap: on
line source

<!-- Cerium Task Configuration 
     CPU_PPE = 0, // default                                                   
     CPU_SPE = 1,
     SPE_ANY = CPU_SPE,
     SPE_0 = 2,
     SPE_1 = 3,
     SPE_2 = 4,
     SPE_3 = 5,
     SPE_4 = 6,
     SPE_5 = 7,
  -->

<directory>
  <path> Task </path>
  <task name="Hello">
    <target>
      <path> spe </path>
      <cpu> SPE_ANY </cpu>
      <cc cc:compiler="spu-g++"/>
    </target>
    
    <target>
      <path> ppe </path>
      <cpu> CPU_PPE </cpu>
      <cc cc:compiler="ppu-g++"/>
    </target>
    
    <target>
      <path> macosx </path>
      <cpu> CPU_PPE </cpu>
      <cc cc:compiler="mac-g++"/>
    </target>

    <target name="linux">
      <path> linux </path>
      <cpu> CPU_PPE </cpu>
      <cc cc:compiler="linux-g++"/>
    </target>

    <source> Hello.cc </source>
  </task>

</directory>

<directory>
  <path> ${CERIUM}/Renderer/Task </path>
  <task name="Hello">
    <target name="cell">
      <path> spe </path>
      <cpu> SPE_ANY </cpu>
      <cc cc:compiler="spu-g++"/>
    </target>
    
    <target name="cell">
      <path> ppe </path>
      <cpu> CPU_PPE </cpu>
      <cc cc:compiler="ppu-g++"/>
    </target>
    
    <target name="macosx">
      <path> macosx </path>
      <cpu> CPU_PPE </cpu>
      <cc cc:compiler="mac-g++"/>
    </target>

    <target name="linux">
      <path> linux </path>
      <cpu> CPU_PPE </cpu>
      <cc cc:compiler="linux-g++"/>
    </target>
    
    <source> Hello.cc </source>
    
  </task>

</directory>