2 |
<project basedir="." default="all" name="utils"> |
<project basedir="." default="all" name="utils"> |
3 |
<property environment="env"/> |
<property environment="env"/> |
4 |
|
|
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 |
CONFIGURATION PARAMETERS |
CONFIGURATION PARAMETERS |
10 |
Modify here the parameters according to your own system |
Modify here the parameters according to your own system |
22 |
<property name="ant-contrib.lib" |
<property name="ant-contrib.lib" |
23 |
value="/opt/ant-contrib/lib"/> |
value="/opt/ant-contrib/lib"/> |
24 |
<!-- temporary base directory for compilation --> |
<!-- temporary base directory for compilation --> |
25 |
<property name="compilationFolder" |
<!--<property name="compilationFolder" |
26 |
value="${env.HOME}/tmp/compiler"/> |
value="${env.HOME}/tmp/compiler"/>--> |
27 |
<!-- yoda source base directory --> |
<!-- yoda source base directory --> |
28 |
<property name="utils.src" |
<property name="utils.src" |
29 |
value="${basedir}"/> |
value="${basedir}"/> |
30 |
|
|
31 |
<!-- CONFIGURATION FILE. The properties in this file overwrite the previous properties --> |
|
|
<property file="../KYoda.properties"/> |
|
|
<!-- CONFIGURATION FILE. The properties in this file overwrite the previous properties --> |
|
32 |
|
|
33 |
<!-- |
<!-- |
34 |
CONFIGURATION PARAMETERS (optional) |
CONFIGURATION PARAMETERS (optional) |
98 |
<property name="utils.compilationFolder" value="${env.HOME}/tmp/${compilationFolder}"/> |
<property name="utils.compilationFolder" value="${env.HOME}/tmp/${compilationFolder}"/> |
99 |
<property name="utils.obj" value="${utils.compilationFolder}/obj"/> |
<property name="utils.obj" value="${utils.compilationFolder}/obj"/> |
100 |
<property name="utils.lib" value="${utils.compilationFolder}/lib"/> |
<property name="utils.lib" value="${utils.compilationFolder}/lib"/> |
101 |
|
<property name="utils.bin" value="${utils.compilationFolder}/bin"/> |
102 |
|
|
103 |
<!-- Deploy parameters --> |
<!-- Deploy parameters --> |
104 |
<property name="deploy" value="${pamSoftware}"/> |
<property name="deploy" value="${pamSoftware}"/> |
116 |
<compilerarg value="-g"/> |
<compilerarg value="-g"/> |
117 |
</compiler> |
</compiler> |
118 |
|
|
119 |
|
<compiler id="util-fort" name="g77"> |
120 |
|
<compilerarg value="-c"/> |
121 |
|
<compilerarg value="-O0"/> |
122 |
|
</compiler> |
123 |
|
|
124 |
<linker id="utils-link"> |
<linker id="utils-link"> |
125 |
<libset dir="${root.lib}" libs="Cint, Core, Tree"/> |
<libset dir="${root.lib}" libs="Cint, Core, Tree, Graf, Hist, Matrix"/> |
126 |
<libset dir="${log4cxx.lib}" libs="log4cxx"/> |
<libset dir="${log4cxx.lib}" libs="log4cxx"/> |
127 |
<libset libs="stdc++"/> |
<libset libs="stdc++"/> |
128 |
</linker> |
</linker> |
135 |
<mkdir dir="${utils.compilationFolder}"/> |
<mkdir dir="${utils.compilationFolder}"/> |
136 |
<mkdir dir="${utils.obj}"/> |
<mkdir dir="${utils.obj}"/> |
137 |
<mkdir dir="${utils.lib}"/> |
<mkdir dir="${utils.lib}"/> |
138 |
|
<exec dir="${utils.src}" executable="rootcint"> |
139 |
|
<arg line="-f UtilDict.cpp -c -I.. |
140 |
|
YMagnGeo.h |
141 |
|
RegistryEvent.h |
142 |
|
LinkDef.h"/> |
143 |
|
</exec> |
144 |
<cc objdir="${utils.obj}" outfile="${utils.lib}/utils" outtype="shared"> |
<cc objdir="${utils.obj}" outfile="${utils.lib}/utils" outtype="shared"> |
145 |
<compiler extends="utils-gcc"> |
<compiler extends="utils-gcc"> |
146 |
<fileset dir="${utils.src}" includes="**/*.cpp"/> |
<fileset dir="${utils.src}" includes="*.cpp, sgp4/*.cpp"/> |
147 |
|
<includepath location="${utils.src}/sgp4"/> |
148 |
<includepath location="${pamSoftware}/yoda"/> |
<includepath location="${pamSoftware}/yoda"/> |
149 |
<includepath location="${utils.src}"/> |
<includepath location="${utils.src}"/> |
150 |
</compiler> |
</compiler> |
151 |
|
<compiler extends="util-fort"> |
152 |
|
<fileset dir="${utils.src}/igrf" includes="igrf_sub.for, bilcal.for"/> |
153 |
|
</compiler> |
154 |
<linker extends="utils-link"/> |
<linker extends="utils-link"/> |
155 |
</cc> |
</cc> |
156 |
</target> |
</target> |
157 |
|
|
158 |
|
|
159 |
|
<target depends="cleanUtils, initUtils" description="Create Yoda flight library" name="compileProfiler"> |
160 |
|
<mkdir dir="${utils.bin}"/> |
161 |
|
<mkdir dir="${utils.obj}"/> |
162 |
|
<cc objdir="${utils.obj}" outfile="${utils.bin}/YodaProfiler" outtype="executable"> |
163 |
|
<compiler extends="utils-gcc"> |
164 |
|
<fileset dir="${utils.src}/YodaProfiler" includes="*.cpp"/> |
165 |
|
<includepath location="${utils.src}"/> |
166 |
|
<includepath location="${utils.src}/YodaProfiler"/> |
167 |
|
<includepath location="${utils.src}/sgp4"/> |
168 |
|
<includepath location="${pamSoftware}/include/yoda"/> |
169 |
|
</compiler> |
170 |
|
<linker extends="utils-link"> |
171 |
|
<libset dir="${pamSoftware}/lib" libs="yoda, utils"/> |
172 |
|
</linker> |
173 |
|
</cc> |
174 |
|
</target> |
175 |
|
|
176 |
<target depends="compileUtilsLib" description="Deploy the Utils lib" name="deployUtilities"> |
<target depends="compileUtilsLib" description="Deploy the Utils lib" name="deployUtilities"> |
177 |
<mkdir dir="${deploy}"/> |
<mkdir dir="${deploy}"/> |
178 |
<mkdir dir="${deploy.lib}"/> |
<mkdir dir="${deploy.lib}"/> |
179 |
<mkdir dir="${deploy.include}"/> |
<mkdir dir="${deploy.include}"/> |
180 |
<copy todir="${deploy.include}/utils"> |
<copy todir="${deploy.include}/utils"> |
181 |
<fileset dir="${utils.src}" includes="**/*.h"/> |
<fileset dir="${utils.src}" includes="**/*.h"/> |
182 |
</copy> |
</copy> |
183 |
<copy todir="${deploy.lib}"> |
<copy todir="${deploy.lib}"> |
185 |
</copy> |
</copy> |
186 |
<chmod dir="${deploy.bin}" perm="775" includes="**/*"/> |
<chmod dir="${deploy.bin}" perm="775" includes="**/*"/> |
187 |
</target> |
</target> |
188 |
|
|
189 |
|
<target depends="compileProfiler" description="Deploy the YodaProfiler" name="deployProfiler"> |
190 |
|
<mkdir dir="${deploy}"/> |
191 |
|
<mkdir dir="${deploy.lib}"/> |
192 |
|
<mkdir dir="${deploy.include}"/> |
193 |
|
<copy todir="${deploy.bin}"> |
194 |
|
<fileset dir="${utils.bin}" includes="*" excludes="*.*"/> |
195 |
|
</copy> |
196 |
|
<chmod dir="${deploy.bin}" perm="775" includes="**/*"/> |
197 |
|
</target> |
198 |
|
|
199 |
|
<target depends="deployUtilities, deployProfiler" description="Deploy the Utils + YodaProfiler" name="all"> |
200 |
|
<mkdir dir="${deploy}"/> |
201 |
|
<mkdir dir="${deploy.lib}"/> |
202 |
|
<mkdir dir="${deploy.include}"/> |
203 |
|
<copy todir="${deploy.bin}"> |
204 |
|
<fileset dir="${utils.bin}" includes="*" excludes="*.*"/> |
205 |
|
</copy> |
206 |
|
<chmod dir="${deploy.bin}" perm="775" includes="**/*"/> |
207 |
|
</target> |
208 |
</project> |
</project> |
209 |
|
|
210 |
|
|