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

Contents of /quicklook/dataToXML/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download) (as text)
Tue May 2 14:32:23 2006 UTC (18 years, 7 months ago) by kusanagi
Branch: MAIN
CVS Tags: dataToXML1_00/00, dataToXML1_01/00
Changes since 1.3: +1 -1 lines
File MIME type: text/xml
Add -map to OrbitalRate code to force the user to insert a proper Mercator-like earth map.

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

  ViewVC Help
Powered by ViewVC 1.1.23