/[PAMELA software]/quicklook/dataToXML/build.xml
ViewVC logotype

Annotation of /quicklook/dataToXML/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download) (as text)
Mon Jun 12 06:13:43 2006 UTC (18 years, 6 months ago) by kusanagi
Branch: MAIN
Changes since 1.4: +5 -4 lines
File MIME type: text/xml
Code refactoring.

1 kusanagi 1.1 <?xml version="1.0" encoding="UTF-8"?>
2     <project basedir="." default="compileAll" name="scripts">
3     <property environment="env"/>
4    
5 kusanagi 1.5 <!-- CONFIGURATION FILE. The properties in this file overwrite the previous properties -->
6     <property file="../../KYoda.properties"/>
7     <!-- CONFIGURATION FILE. The properties in this file overwrite the previous properties -->
8    
9 kusanagi 1.1 <!--
10     CONFIGURATION PARAMETERS
11     Modify here the parameters according to your own system
12     -->
13     <!-- PAMELA Software(s) root directory -->
14     <property name="pamSoftware"
15     value="${env.HOME}/pamela"/>
16     <!-- CERN's ROOT base directory -->
17     <property name="root"
18     value="/opt/root"/>
19     <!-- LOG4CXX base directory -->
20     <property name="log4cxx"
21     value="/opt/log4cxx"/>
22     <!-- ant-contrib base directory -->
23     <property name="ant-contrib.lib"
24     value="/opt/ant-contrib/lib"/>
25     <!-- source base directory -->
26     <property name="scripts.src"
27     value="${basedir}"/>
28    
29 kusanagi 1.5
30 kusanagi 1.1
31     <!--
32     PARAMETRIZED PARAMETERS
33     From here to the end there is NO NEED to modify anything
34     -->
35     <!-- Linux -->
36     <property name="local" value="/usr/local"/>
37     <property name="local.include" value="${local}/include"/>
38     <property name="local.lib" value="${local}/lib"/>
39    
40     <!-- CERN's ROOT -->
41     <property name="root.include" value="${root}/include"/>
42     <property name="root.lib" value="${root}/lib"/>
43    
44     <!-- log4cxx -->
45     <property name="log4cxx.include" value="${log4cxx}/include"/>
46     <property name="log4cxx.lib" value="${log4cxx}/lib"/>
47    
48     <!-- ant-contrib library -->
49     <path id="classpath">
50     <pathelement location="${ant-contrib.lib}/cpptasks.jar"/>
51     </path>
52    
53    
54     <!--
55     Load definition of C/C++ Tasks and Types
56     To allow the compilation and linking of C/C++ code
57     -->
58     <taskdef classpathref="classpath" loaderref="classpath.loaderRef" resource="cpptasks.tasks"/>
59     <typedef classpathref="classpath" loaderref="classpath.loaderRef" resource="cpptasks.types"/>
60    
61     <!--
62     Load definition of Additional Tasks and Types
63     -->
64     <taskdef resource="net/sf/antcontrib/antcontrib.properties">
65     <classpath>
66     <pathelement location="${ant-contrib.lib}/ant-contrib.jar"/>
67     </classpath>
68     </taskdef>
69    
70     <target name="initScripts" unless="${compilationFolder}">
71     <tstamp>
72     <format property="compilationFolder" pattern="hmsS" unit="millisecond"/>
73     </tstamp>
74     <!-- Compiler parameters -->
75     <property name="compilationFolder.lib" value="${compilationFolder}/lib"/>
76     <property name="compilationFolder.include" value="${compilationFolder}/include"/>
77    
78     <!-- scripts parameters -->
79     <property name="scripts.compilationFolder" value="${env.HOME}/tmp/${compilationFolder}"/>
80     <property name="scripts.obj" value="${scripts.compilationFolder}/obj"/>
81     <property name="scripts.lib" value="${scripts.compilationFolder}/lib"/>
82     <property name="scripts.bin" value="${scripts.compilationFolder}/bin"/>
83    
84     <!-- Deploy parameters -->
85     <property name="deploy" value="${pamSoftware}"/>
86     <property name="deploy.lib" value="${deploy}/lib"/>
87     <property name="deploy.include" value="${deploy}/include"/>
88     <property name="deploy.bin" value="${deploy}/bin"/>
89     <property name="deploy.data" value="${deploy}/data"/>
90     </target>
91    
92     <compiler id="scripts-gcc" name="gcc">
93     <includepath location="${local.include}"/>
94     <includepath location="${log4cxx.include}"/>
95     <includepath location="${root.include}"/>
96     <compilerarg value="-O"/>
97     <compilerarg value="-g"/>
98     </compiler>
99    
100     <linker id="scripts-link">
101 kusanagi 1.2 <libset dir="${root.lib}" libs="Cint, Core, Tree, Hist, Gpad, Graf, Matrix, HistPainter"/>
102 kusanagi 1.1 <libset dir="${log4cxx.lib}" libs="log4cxx"/>
103     <libset libs="stdc++"/>
104     </linker>
105    
106    
107     <!--
108     Clean the compilation folder
109     -->
110     <target description="Clean all build products." name="cleanScripts">
111     <delete dir="${scripts.compilationFolder}"/>
112     </target>
113    
114     <target depends="initScripts" description="Create initScripts" name="compileArrToXML">
115     <mkdir dir="${scripts.bin}"/>
116     <mkdir dir="${scripts.obj}"/>
117     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/ArrDumpToXML" outtype="executable">
118     <compiler extends="scripts-gcc">
119     <fileset dir="${scripts.src}" includes="ArrDumpToXML.cpp">
120     </fileset>
121     <includepath location="${scripts.src}"/>
122     <includepath location="${pamSoftware}/include"/>
123     <includepath location="${pamSoftware}/include/yoda"/>
124     </compiler>
125     <linker extends="scripts-link">
126     <libset dir="${pamSoftware}/lib" libs="yoda"/>
127     </linker>
128     </cc>
129     </target>
130    
131     <target depends="initScripts" description="Create initScripts" name="compileVarToXML">
132     <mkdir dir="${scripts.bin}"/>
133     <mkdir dir="${scripts.obj}"/>
134     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/VarDumpToXML" outtype="executable">
135     <compiler extends="scripts-gcc">
136     <fileset dir="${scripts.src}" includes="VarDumpToXML.cpp">
137     </fileset>
138     <includepath location="${scripts.src}"/>
139     <includepath location="${pamSoftware}/include"/>
140     <includepath location="${pamSoftware}/include/yoda"/>
141     </compiler>
142     <linker extends="scripts-link">
143     <libset dir="${pamSoftware}/lib" libs="yoda"/>
144     </linker>
145     </cc>
146     </target>
147    
148     <target depends="initScripts" description="Create initScripts" name="compileLogToXML">
149     <mkdir dir="${scripts.bin}"/>
150     <mkdir dir="${scripts.obj}"/>
151     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/LogToXML" outtype="executable">
152     <compiler extends="scripts-gcc">
153     <fileset dir="${scripts.src}" includes="LogToXML.cpp">
154     </fileset>
155     <includepath location="${scripts.src}"/>
156     <includepath location="${pamSoftware}/include"/>
157     <includepath location="${pamSoftware}/include/yoda"/>
158     </compiler>
159     <linker extends="scripts-link">
160     <libset dir="${pamSoftware}/lib" libs="yoda"/>
161     </linker>
162     </cc>
163     </target>
164    
165     <target depends="initScripts" description="Create initScripts" name="physEndRunToXML">
166     <mkdir dir="${scripts.bin}"/>
167     <mkdir dir="${scripts.obj}"/>
168     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/PhysEndRunToXML" outtype="executable">
169     <compiler extends="scripts-gcc">
170     <fileset dir="${scripts.src}" includes="PhysEndRunToXML.cpp">
171     </fileset>
172     <includepath location="${scripts.src}"/>
173     <includepath location="${pamSoftware}/include"/>
174     <includepath location="${pamSoftware}/include/yoda"/>
175     </compiler>
176     <linker extends="scripts-link">
177     <libset dir="${pamSoftware}/lib" libs="yoda"/>
178     </linker>
179     </cc>
180     </target>
181    
182     <target depends="initScripts" description="Create initScripts" name="runHeaderToXML">
183     <mkdir dir="${scripts.bin}"/>
184     <mkdir dir="${scripts.obj}"/>
185     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/RunHeaderToXML" outtype="executable">
186     <compiler extends="scripts-gcc">
187     <fileset dir="${scripts.src}" includes="RunHeaderToXML.cpp">
188     </fileset>
189     <includepath location="${scripts.src}"/>
190     <includepath location="${pamSoftware}/include"/>
191     <includepath location="${pamSoftware}/include/yoda"/>
192     </compiler>
193     <linker extends="scripts-link">
194     <libset dir="${pamSoftware}/lib" libs="yoda"/>
195     </linker>
196     </cc>
197     </target>
198    
199     <target depends="initScripts" description="Create initScripts" name="McmdToXML">
200     <mkdir dir="${scripts.bin}"/>
201     <mkdir dir="${scripts.obj}"/>
202     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/McmdToXML" outtype="executable">
203     <compiler extends="scripts-gcc">
204     <fileset dir="${scripts.src}" includes="McmdToXML.cpp">
205     </fileset>
206     <includepath location="${scripts.src}"/>
207     <includepath location="${pamSoftware}/include/utils"/>
208     <includepath location="${pamSoftware}/include/yoda"/>
209     </compiler>
210     <linker extends="scripts-link">
211     <libset dir="${pamSoftware}/lib" libs="yoda, utils"/>
212     </linker>
213     </cc>
214     </target>
215    
216     <target depends="initScripts" description="Create initScripts" name="compileTabToXML">
217     <mkdir dir="${scripts.bin}"/>
218     <mkdir dir="${scripts.obj}"/>
219     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/TabDumpToXML" outtype="executable">
220     <compiler extends="scripts-gcc">
221     <fileset dir="${scripts.src}" includes="TabDumpToXML.cpp">
222     </fileset>
223     <includepath location="${scripts.src}"/>
224     <includepath location="${pamSoftware}/include"/>
225     <includepath location="${pamSoftware}/include/yoda"/>
226     </compiler>
227     <linker extends="scripts-link">
228     <libset dir="${pamSoftware}/lib" libs="yoda"/>
229     </linker>
230     </cc>
231     </target>
232    
233 kusanagi 1.2 <target depends="initScripts" description="Create initScripts" name="orbitalRate">
234     <mkdir dir="${scripts.bin}"/>
235     <mkdir dir="${scripts.obj}"/>
236     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/OrbitalRate" outtype="executable">
237     <compiler extends="scripts-gcc">
238     <fileset dir="${scripts.src}" includes="OrbitalRate.cpp">
239     </fileset>
240     <includepath location="${scripts.src}"/>
241     <includepath location="${pamSoftware}/include/utils"/>
242     <includepath location="${pamSoftware}/include/utils/sgp4"/>
243     <includepath location="${pamSoftware}/include/yoda"/>
244     </compiler>
245     <linker extends="scripts-link">
246     <libset dir="${pamSoftware}/lib" libs="yoda, utils"/>
247     </linker>
248     </cc>
249     </target>
250    
251 kusanagi 1.3 <target depends="compileArrToXML, compileVarToXML, compileTabToXML, compileLogToXML, physEndRunToXML, runHeaderToXML, McmdToXML, orbitalRate" description="Deploy the scripts" name="deployDataToXML">
252 kusanagi 1.1 <mkdir dir="${deploy}"/>
253     <mkdir dir="${deploy.lib}"/>
254     <mkdir dir="${deploy.bin}"/>
255     <mkdir dir="${deploy.data}"/>
256     <copy todir="${deploy.bin}">
257     <fileset dir="${scripts.bin}" includes="*" excludes="*.*"/>
258     </copy>
259     <copy todir="${deploy.data}">
260 kusanagi 1.4 <fileset dir="Data" includes="**/*.*"/>
261 kusanagi 1.1 </copy>
262     <chmod dir="${deploy.bin}" perm="775" includes="**/*"/>
263     </target>
264     </project>

  ViewVC Help
Powered by ViewVC 1.1.23