OSDN Git Service

Modify its project name.
[nxt-jsp/etrobo-atk.git] / nxtOSEK / lejos_nxj / src / nxtvm / platform / unix / build.xml
1 <!-- ant file to make the emu runtime tools -->
2
3 <project name="emu-runtime-tools" default="make" basedir=".">
4         <!-- cpptasks task & type def -->
5         <taskdef resource="cpptasks.tasks">
6           <classpath>
7             <pathelement location="../../../jtools/3rdparty/lib/cpptasks.jar"/>
8           </classpath>
9         </taskdef>
10         <typedef resource="cpptasks.types">
11           <classpath>
12             <pathelement location="../../../jtools/3rdparty/lib/cpptasks.jar"/>
13           </classpath>
14         </typedef>
15         
16         <!-- cleans all compilation artifacts -->
17         <target name="clean" description="cleans all compilation artifacts">
18                 <delete>
19                         <fileset dir=".">
20                                 <include name="*.o"/>
21                                 <include name="platform_config.h"/>
22                         </fileset>
23                 </delete>
24         </target>
25         
26         <!-- make the emu runtime tools --> 
27         <target name="make" depends="clean,emu-dump,emu-lejosrun" description="makes the emu runtime tools">
28         </target>
29
30         <!-- make emu-dump --> 
31         <target name="emu-dump" depends="platform_config" description="makes emu-dump">
32                 <cc subsystem="console" 
33                                 outfile="emu-dump"
34                                 objdir="." 
35                                 outtype="executable" 
36                                 debug="false"
37                             exceptions="false"
38                             rtti="true"
39                             optimize="speed"
40                                 name="gcc">
41                                 <fileset dir=".">
42                                         <include name="dump.c"/>
43                                         <include name="load.c"/>
44                                 </fileset>
45                                 <includepath>
46                                         <pathelement location="."/>
47                                         <pathelement location="../../javavm"/>
48                                 </includepath>
49                                 <versioninfo refid="lejos nxt 0.1"/>
50                 </cc>
51         </target>
52
53         <!-- make platform_config.h --> 
54         <target name="platform_config" description="makes platform_config.h">
55         <cc subsystem="console" 
56                                 outfile="dump_config"
57                                 objdir="." 
58                                 outtype="executable" 
59                                 debug="false"
60                             exceptions="false"
61                             rtti="true"
62                             optimize="speed"
63                                 name="gcc">
64                                 <fileset dir=".">
65                                         <include name="dump_config.c"/>
66                                 </fileset>
67                                 <includepath>
68                                         <pathelement location="."/>
69                                 </includepath>
70                                 <versioninfo refid="lejos nxt 0.1"/>
71                 </cc>
72                 <exec executable="${basedir}/dump_config" failonerror="true" dir=".">
73                         <redirector outputproperty="platform_config.h">
74                                 <outputmapper type="merge" to="platform_config.h" />
75                         </redirector>
76                 </exec>
77         </target>
78
79         <!-- make emu-lejosrun --> 
80         <target name="emu-lejosrun" description="makes emu-lejosrun">
81                 <cc subsystem="console" 
82                                 outfile="emu-lejosrun"
83                                 objdir="." 
84                                 outtype="executable" 
85                                 debug="false"
86                             exceptions="false"
87                             rtti="true"
88                             optimize="speed"
89                                 name="gcc">
90                                 <fileset dir="../../javavm">
91                                         <include name="interpreter.c"/>
92                                         <include name="threads.c"/> 
93                                         <include name="exceptions.c"/>
94                                         <include name="memory.c"/>
95                                         <include name="language.c"/>
96                                         <include name="poll.c"/>
97                                 </fileset>
98                                 <fileset dir=".">
99                                         <include name="verbose.c"/>
100                                         <include name="sensors.c"/>
101                                         <include name="tvmemul.c"/> 
102                                         <include name="traceemul.c"/>
103                                         <include name="nativeemul.c"/>
104                                         <include name="load.c"/>
105                                         <include name="opcodeinfo.c"/>
106                                 </fileset>
107                                 <includepath>
108                                         <pathelement location="."/>
109                                         <pathelement location="../../javavm"/>
110                                 </includepath>
111                                 <versioninfo refid="lejos nxt 0.1"/>
112                 </cc>
113         </target>
114
115 </project>
116