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

Annotation of /quicklook/dataToXML/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download) (as text)
Fri Dec 8 09:52:00 2006 UTC (18 years ago) by pam-rm2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +10 -22 lines
File MIME type: text/xml
Removed OrbitalRate from this module.

Nico

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 pam-rm2 1.7 <compiler id="scripts-gcc" name="g++">
93 kusanagi 1.1 <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 pam-rm2 1.7
100     <compiler id="util-fort" name="g77">
101     <compilerarg value="-c"/>
102     <compilerarg value="-O0"/>
103     </compiler>
104 kusanagi 1.1
105     <linker id="scripts-link">
106 kusanagi 1.2 <libset dir="${root.lib}" libs="Cint, Core, Tree, Hist, Gpad, Graf, Matrix, HistPainter"/>
107 kusanagi 1.1 <libset dir="${log4cxx.lib}" libs="log4cxx"/>
108     <libset libs="stdc++"/>
109     </linker>
110    
111    
112     <!--
113     Clean the compilation folder
114     -->
115     <target description="Clean all build products." name="cleanScripts">
116     <delete dir="${scripts.compilationFolder}"/>
117     </target>
118    
119     <target depends="initScripts" description="Create initScripts" name="compileArrToXML">
120     <mkdir dir="${scripts.bin}"/>
121     <mkdir dir="${scripts.obj}"/>
122     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/ArrDumpToXML" outtype="executable">
123     <compiler extends="scripts-gcc">
124     <fileset dir="${scripts.src}" includes="ArrDumpToXML.cpp">
125     </fileset>
126     <includepath location="${scripts.src}"/>
127     <includepath location="${pamSoftware}/include"/>
128     <includepath location="${pamSoftware}/include/yoda"/>
129 kusanagi 1.6 <includepath location="${pamSoftware}/include/utils"/>
130 kusanagi 1.1 </compiler>
131     <linker extends="scripts-link">
132 pam-rm2 1.7 <libset dir="${pamSoftware}/lib" libs="yoda, sgp4"/>
133 kusanagi 1.1 </linker>
134     </cc>
135     </target>
136    
137     <target depends="initScripts" description="Create initScripts" name="compileVarToXML">
138     <mkdir dir="${scripts.bin}"/>
139     <mkdir dir="${scripts.obj}"/>
140     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/VarDumpToXML" outtype="executable">
141     <compiler extends="scripts-gcc">
142     <fileset dir="${scripts.src}" includes="VarDumpToXML.cpp">
143     </fileset>
144     <includepath location="${scripts.src}"/>
145     <includepath location="${pamSoftware}/include"/>
146     <includepath location="${pamSoftware}/include/yoda"/>
147     </compiler>
148     <linker extends="scripts-link">
149     <libset dir="${pamSoftware}/lib" libs="yoda"/>
150     </linker>
151     </cc>
152     </target>
153    
154     <target depends="initScripts" description="Create initScripts" name="compileLogToXML">
155     <mkdir dir="${scripts.bin}"/>
156     <mkdir dir="${scripts.obj}"/>
157     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/LogToXML" outtype="executable">
158     <compiler extends="scripts-gcc">
159     <fileset dir="${scripts.src}" includes="LogToXML.cpp">
160     </fileset>
161     <includepath location="${scripts.src}"/>
162     <includepath location="${pamSoftware}/include"/>
163     <includepath location="${pamSoftware}/include/yoda"/>
164     </compiler>
165     <linker extends="scripts-link">
166     <libset dir="${pamSoftware}/lib" libs="yoda"/>
167     </linker>
168     </cc>
169     </target>
170    
171     <target depends="initScripts" description="Create initScripts" name="physEndRunToXML">
172     <mkdir dir="${scripts.bin}"/>
173     <mkdir dir="${scripts.obj}"/>
174     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/PhysEndRunToXML" outtype="executable">
175     <compiler extends="scripts-gcc">
176     <fileset dir="${scripts.src}" includes="PhysEndRunToXML.cpp">
177     </fileset>
178     <includepath location="${scripts.src}"/>
179     <includepath location="${pamSoftware}/include"/>
180     <includepath location="${pamSoftware}/include/yoda"/>
181     </compiler>
182     <linker extends="scripts-link">
183     <libset dir="${pamSoftware}/lib" libs="yoda"/>
184     </linker>
185     </cc>
186     </target>
187    
188     <target depends="initScripts" description="Create initScripts" name="runHeaderToXML">
189     <mkdir dir="${scripts.bin}"/>
190     <mkdir dir="${scripts.obj}"/>
191     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/RunHeaderToXML" outtype="executable">
192     <compiler extends="scripts-gcc">
193     <fileset dir="${scripts.src}" includes="RunHeaderToXML.cpp">
194     </fileset>
195     <includepath location="${scripts.src}"/>
196     <includepath location="${pamSoftware}/include"/>
197     <includepath location="${pamSoftware}/include/yoda"/>
198     </compiler>
199     <linker extends="scripts-link">
200     <libset dir="${pamSoftware}/lib" libs="yoda"/>
201     </linker>
202     </cc>
203     </target>
204    
205     <target depends="initScripts" description="Create initScripts" name="McmdToXML">
206     <mkdir dir="${scripts.bin}"/>
207     <mkdir dir="${scripts.obj}"/>
208     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/McmdToXML" outtype="executable">
209     <compiler extends="scripts-gcc">
210     <fileset dir="${scripts.src}" includes="McmdToXML.cpp">
211     </fileset>
212     <includepath location="${scripts.src}"/>
213     <includepath location="${pamSoftware}/include/utils"/>
214     <includepath location="${pamSoftware}/include/yoda"/>
215     </compiler>
216     <linker extends="scripts-link">
217 pam-rm2 1.7 <libset dir="${pamSoftware}/lib" libs="yoda, sgp4"/>
218 kusanagi 1.1 </linker>
219     </cc>
220     </target>
221    
222     <target depends="initScripts" description="Create initScripts" name="compileTabToXML">
223     <mkdir dir="${scripts.bin}"/>
224     <mkdir dir="${scripts.obj}"/>
225     <cc objdir="${scripts.obj}" outfile="${scripts.bin}/TabDumpToXML" outtype="executable">
226     <compiler extends="scripts-gcc">
227     <fileset dir="${scripts.src}" includes="TabDumpToXML.cpp">
228     </fileset>
229     <includepath location="${scripts.src}"/>
230     <includepath location="${pamSoftware}/include"/>
231     <includepath location="${pamSoftware}/include/yoda"/>
232 kusanagi 1.6 <includepath location="${pamSoftware}/include/utils"/>
233 kusanagi 1.1 </compiler>
234     <linker extends="scripts-link">
235 kusanagi 1.6 <libset dir="${pamSoftware}/lib" libs="yoda, utils"/>
236 kusanagi 1.1 </linker>
237     </cc>
238     </target>
239    
240 pam-rm2 1.7 <target depends="compileArrToXML, compileVarToXML, compileTabToXML, compileLogToXML, physEndRunToXML, runHeaderToXML, McmdToXML" description="Deploy the scripts" name="deployDataToXML">
241 kusanagi 1.1 <mkdir dir="${deploy}"/>
242     <mkdir dir="${deploy.lib}"/>
243     <mkdir dir="${deploy.bin}"/>
244     <mkdir dir="${deploy.data}"/>
245     <copy todir="${deploy.bin}">
246     <fileset dir="${scripts.bin}" includes="*" excludes="*.*"/>
247     </copy>
248     <copy todir="${deploy.data}">
249 kusanagi 1.4 <fileset dir="Data" includes="**/*.*"/>
250 kusanagi 1.1 </copy>
251     <chmod dir="${deploy.bin}" perm="775" includes="**/*"/>
252     </target>
253 pam-rm2 1.7
254 kusanagi 1.1 </project>

  ViewVC Help
Powered by ViewVC 1.1.23