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="compileUtilsLib" description="Deploy the Utils lib" name="deployUtilities"> |
<target depends="compileUtilsLib" description="Deploy the Utils lib" name="deployUtilities"> |
160 |
<mkdir dir="${deploy}"/> |
<mkdir dir="${deploy}"/> |
161 |
<mkdir dir="${deploy.lib}"/> |
<mkdir dir="${deploy.lib}"/> |
162 |
<mkdir dir="${deploy.include}"/> |
<mkdir dir="${deploy.include}"/> |
163 |
<copy todir="${deploy.include}/utils"> |
<copy todir="${deploy.include}/utils"> |
164 |
<fileset dir="${utils.src}" includes="**/*.h"/> |
<fileset dir="${utils.src}" includes="**/*.h"/> |
165 |
</copy> |
</copy> |
166 |
<copy todir="${deploy.lib}"> |
<copy todir="${deploy.lib}"> |
168 |
</copy> |
</copy> |
169 |
<chmod dir="${deploy.bin}" perm="775" includes="**/*"/> |
<chmod dir="${deploy.bin}" perm="775" includes="**/*"/> |
170 |
</target> |
</target> |
171 |
|
|
172 |
|
<target depends="deployUtilities" description="Deploy the Utils" name="all"> |
173 |
|
<mkdir dir="${deploy}"/> |
174 |
|
<mkdir dir="${deploy.lib}"/> |
175 |
|
<mkdir dir="${deploy.include}"/> |
176 |
|
<copy todir="${deploy.bin}"> |
177 |
|
<fileset dir="${utils.bin}" includes="*" excludes="*.*"/> |
178 |
|
</copy> |
179 |
|
<chmod dir="${deploy.bin}" perm="775" includes="**/*"/> |
180 |
|
</target> |
181 |
</project> |
</project> |
182 |
|
|
183 |
|
|