OSDN Git Service

da6e05b0692ce3e6d74585e0939f40bd8914f852
[nxt-jsp/lejos_nxj.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         
17         <!-- cleans all compilation artifacts -->
18         <target name="clean" description="cleans all compilation artifacts">
19                 <delete>
20                         <fileset dir=".">
21                                 <include name="*.o"/>
22                                 <include name="platform_config.h"/>
23                         </fileset>
24                 </delete>
25         </target>
26         
27         <!-- make the emu runtime tools --> 
28         <target name="make" depends="clean,emu-dump,emu-lejosrun" description="makes the emu runtime tools">
29         </target>
30
31         <!-- make emu-dump --> 
32         <target name="emu-dump" depends="platform_config" description="makes emu-dump">
33                 <cc subsystem="console" 
34                                 outfile="emu-dump"
35                                 objdir="." 
36                                 outtype="executable" 
37                                 debug="false"
38                             exceptions="false"
39                             rtti="true"
40                             optimize="speed"
41                                 name="gcc">
42                                 <fileset dir=".">
43                                         <include name="dump.c"/>
44                                         <include name="load.c"/>
45                                 </fileset>
46                                 <includepath>
47                                         <pathelement location="."/>
48                                         <pathelement location="../../javavm"/>
49                                 </includepath>
50                                 <versioninfo refid="lejos nxt 0.1"/>
51                 </cc>
52         </target>
53
54         <!-- make platform_config.h --> 
55         <target name="platform_config" description="makes platform_config.h">
56         <cc subsystem="console" 
57                                 outfile="dump_config"
58                                 objdir="." 
59                                 outtype="executable" 
60                                 debug="false"
61                             exceptions="false"
62                             rtti="true"
63                             optimize="speed"
64                                 name="gcc">
65                                 <fileset dir=".">
66                                         <include name="dump_config.c"/>
67                                 </fileset>
68                                 <includepath>
69                                         <pathelement location="."/>
70                                 </includepath>
71                                 <versioninfo refid="lejos nxt 0.1"/>
72                 </cc>
73                 <exec executable="${basedir}/dump_config" failonerror="true" dir=".">
74                         <redirector outputproperty="platform_config.h">
75                                 <outputmapper type="merge" to="platform_config.h" />
76                         </redirector>
77                 </exec>
78         </target>
79
80         <!-- make emu-lejosrun --> 
81         <target name="emu-lejosrun" description="makes emu-lejosrun">
82                 <cc subsystem="console" 
83                                 outfile="emu-lejosrun"
84                                 objdir="." 
85                                 outtype="executable" 
86                                 debug="false"
87                             exceptions="false"
88                             rtti="true"
89                             optimize="speed"
90                                 name="gcc">
91                                 <fileset dir="../../javavm">
92                                         <include name="interpreter.c"/>
93                                         <include name="threads.c"/> 
94                                         <include name="exceptions.c"/>
95                                         <include name="memory.c"/>
96                                         <include name="language.c"/>
97                                         <include name="poll.c"/>
98                                 </fileset>
99                                 <fileset dir=".">
100                                         <include name="verbose.c"/>
101                                         <include name="sensors.c"/>
102                                         <include name="tvmemul.c"/> 
103                                         <include name="traceemul.c"/>
104                                         <include name="nativeemul.c"/>
105                                         <include name="load.c"/>
106                                         <include name="opcodeinfo.c"/>
107                                 </fileset>
108                                 <includepath>
109                                         <pathelement location="."/>
110                                         <pathelement location="../../javavm"/>
111                                 </includepath>
112                                 <versioninfo refid="lejos nxt 0.1"/>
113                 </cc>
114         </target>
115
116 </project>
117