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

Annotation of /quicklook/dataToXML/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download) (as text)
Wed Jun 14 07:23:21 2006 UTC (18 years, 6 months ago) by kusanagi
Branch: MAIN
CVS Tags: dataToXML1_02/01, dataToXML1_02/00, dataToXML1_03/00, dataToXML1_03/01, dataToXML1_03_02
Changes since 1.5: +4 -2 lines
File MIME type: text/xml
Update:
modified after the ArrDump and TabDump bug fix for little-endian representation.

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 kusanagi 1.6 <includepath location="${pamSoftware}/include/utils"/>
125 kusanagi 1.1 </compiler>
126     <linker extends="scripts-link">
127 kusanagi 1.6 <libset dir="${pamSoftware}/lib" libs="yoda, utils"/>
128 kusanagi 1.1 </linker>
129     </cc>
130     </target>
131    
132     <target depends="initScripts" description="Create initScripts" name="compileVarToXML">
133     <mkdir dir="${scripts.bin}"/>
134     <mkdir dir="${scripts.obj}"/>
135     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/VarDumpToXML" outtype="executable">
136     <compiler extends="scripts-gcc">
137     <fileset dir="${scripts.src}" includes="VarDumpToXML.cpp">
138     </fileset>
139     <includepath location="${scripts.src}"/>
140     <includepath location="${pamSoftware}/include"/>
141     <includepath location="${pamSoftware}/include/yoda"/>
142     </compiler>
143     <linker extends="scripts-link">
144     <libset dir="${pamSoftware}/lib" libs="yoda"/>
145     </linker>
146     </cc>
147     </target>
148    
149     <target depends="initScripts" description="Create initScripts" name="compileLogToXML">
150     <mkdir dir="${scripts.bin}"/>
151     <mkdir dir="${scripts.obj}"/>
152     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/LogToXML" outtype="executable">
153     <compiler extends="scripts-gcc">
154     <fileset dir="${scripts.src}" includes="LogToXML.cpp">
155     </fileset>
156     <includepath location="${scripts.src}"/>
157     <includepath location="${pamSoftware}/include"/>
158     <includepath location="${pamSoftware}/include/yoda"/>
159     </compiler>
160     <linker extends="scripts-link">
161     <libset dir="${pamSoftware}/lib" libs="yoda"/>
162     </linker>
163     </cc>
164     </target>
165    
166     <target depends="initScripts" description="Create initScripts" name="physEndRunToXML">
167     <mkdir dir="${scripts.bin}"/>
168     <mkdir dir="${scripts.obj}"/>
169     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/PhysEndRunToXML" outtype="executable">
170     <compiler extends="scripts-gcc">
171     <fileset dir="${scripts.src}" includes="PhysEndRunToXML.cpp">
172     </fileset>
173     <includepath location="${scripts.src}"/>
174     <includepath location="${pamSoftware}/include"/>
175     <includepath location="${pamSoftware}/include/yoda"/>
176     </compiler>
177     <linker extends="scripts-link">
178     <libset dir="${pamSoftware}/lib" libs="yoda"/>
179     </linker>
180     </cc>
181     </target>
182    
183     <target depends="initScripts" description="Create initScripts" name="runHeaderToXML">
184     <mkdir dir="${scripts.bin}"/>
185     <mkdir dir="${scripts.obj}"/>
186     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/RunHeaderToXML" outtype="executable">
187     <compiler extends="scripts-gcc">
188     <fileset dir="${scripts.src}" includes="RunHeaderToXML.cpp">
189     </fileset>
190     <includepath location="${scripts.src}"/>
191     <includepath location="${pamSoftware}/include"/>
192     <includepath location="${pamSoftware}/include/yoda"/>
193     </compiler>
194     <linker extends="scripts-link">
195     <libset dir="${pamSoftware}/lib" libs="yoda"/>
196     </linker>
197     </cc>
198     </target>
199    
200     <target depends="initScripts" description="Create initScripts" name="McmdToXML">
201     <mkdir dir="${scripts.bin}"/>
202     <mkdir dir="${scripts.obj}"/>
203     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/McmdToXML" outtype="executable">
204     <compiler extends="scripts-gcc">
205     <fileset dir="${scripts.src}" includes="McmdToXML.cpp">
206     </fileset>
207     <includepath location="${scripts.src}"/>
208     <includepath location="${pamSoftware}/include/utils"/>
209     <includepath location="${pamSoftware}/include/yoda"/>
210     </compiler>
211     <linker extends="scripts-link">
212     <libset dir="${pamSoftware}/lib" libs="yoda, utils"/>
213     </linker>
214     </cc>
215     </target>
216    
217     <target depends="initScripts" description="Create initScripts" name="compileTabToXML">
218     <mkdir dir="${scripts.bin}"/>
219     <mkdir dir="${scripts.obj}"/>
220     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/TabDumpToXML" outtype="executable">
221     <compiler extends="scripts-gcc">
222     <fileset dir="${scripts.src}" includes="TabDumpToXML.cpp">
223     </fileset>
224     <includepath location="${scripts.src}"/>
225     <includepath location="${pamSoftware}/include"/>
226     <includepath location="${pamSoftware}/include/yoda"/>
227 kusanagi 1.6 <includepath location="${pamSoftware}/include/utils"/>
228 kusanagi 1.1 </compiler>
229     <linker extends="scripts-link">
230 kusanagi 1.6 <libset dir="${pamSoftware}/lib" libs="yoda, utils"/>
231 kusanagi 1.1 </linker>
232     </cc>
233     </target>
234    
235 kusanagi 1.2 <target depends="initScripts" description="Create initScripts" name="orbitalRate">
236     <mkdir dir="${scripts.bin}"/>
237     <mkdir dir="${scripts.obj}"/>
238     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/OrbitalRate" outtype="executable">
239     <compiler extends="scripts-gcc">
240     <fileset dir="${scripts.src}" includes="OrbitalRate.cpp">
241     </fileset>
242     <includepath location="${scripts.src}"/>
243     <includepath location="${pamSoftware}/include/utils"/>
244     <includepath location="${pamSoftware}/include/utils/sgp4"/>
245     <includepath location="${pamSoftware}/include/yoda"/>
246     </compiler>
247     <linker extends="scripts-link">
248     <libset dir="${pamSoftware}/lib" libs="yoda, utils"/>
249     </linker>
250     </cc>
251     </target>
252    
253 kusanagi 1.3 <target depends="compileArrToXML, compileVarToXML, compileTabToXML, compileLogToXML, physEndRunToXML, runHeaderToXML, McmdToXML, orbitalRate" description="Deploy the scripts" name="deployDataToXML">
254 kusanagi 1.1 <mkdir dir="${deploy}"/>
255     <mkdir dir="${deploy.lib}"/>
256     <mkdir dir="${deploy.bin}"/>
257     <mkdir dir="${deploy.data}"/>
258     <copy todir="${deploy.bin}">
259     <fileset dir="${scripts.bin}" includes="*" excludes="*.*"/>
260     </copy>
261     <copy todir="${deploy.data}">
262 kusanagi 1.4 <fileset dir="Data" includes="**/*.*"/>
263 kusanagi 1.1 </copy>
264     <chmod dir="${deploy.bin}" perm="775" includes="**/*"/>
265     </target>
266     </project>

  ViewVC Help
Powered by ViewVC 1.1.23