0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<project basedir="." default="pde_headless_build" name="TDEP_Build">
|
|
3 |
|
|
4 |
<target name="init">
|
|
5 |
<property environment="env" />
|
|
6 |
<property name="tdep.destination" value="${env.EPOCROOT}epoc32/tools/TDEP" />
|
|
7 |
<property name="tdep.eclipse" value="${env.ECLIPSEHOME}" />
|
|
8 |
<property name="tdep.carbide" value="${env.CARBIDEHOME}" />
|
|
9 |
<property name="tdep.eclipse.startupjar" value="${env.ECLIPSEHOME}/plugins/org.eclipse.equinox.launcher.jar" />
|
|
10 |
<property name="BuildType" value="I" />
|
|
11 |
<property name="BuildId" value="svstestdev"/>
|
|
12 |
<property name="TDEPArchive.Name" value="tdep"/>
|
|
13 |
<property name="CarbideTemplateArchive.Name" value="carbide_template"/>
|
|
14 |
|
|
15 |
<property name="td.builddir" value="${env.EPOCROOT}epoc32/BUILD/TDBuildDir" />
|
|
16 |
<property name="TDArchive.Name" value="testdriver2"/>
|
|
17 |
<available file="${env.EPOCROOT}${TDArchive.Name}.zip" property="TDArchive.present"/>
|
|
18 |
|
|
19 |
<!-- create tmp duild dir -->
|
|
20 |
<property name="tdep.builddir" value="${env.EPOCROOT}epoc32/BUILD/TDEPBuildDir" />
|
|
21 |
<property name="tdep.plugins" value="${tdep.builddir}/plugins" />
|
|
22 |
<property name="tdep.features" value="${tdep.builddir}/features" />
|
|
23 |
|
|
24 |
</target>
|
|
25 |
|
|
26 |
<target name="buildTD" unless="TDArchive.present">
|
|
27 |
<echo>Build TestDriver</echo>
|
|
28 |
<ant antfile="build.xml" dir="../../../testmgmt/testdriver/group/"/>
|
|
29 |
</target>
|
|
30 |
|
|
31 |
<target name="removeTD" unless="TDArchive.present">
|
|
32 |
<echo>Remove TestDriver.</echo>
|
|
33 |
<delete file="${env.EPOCROOT}${TDArchive.Name}.zip"/>
|
|
34 |
</target>
|
|
35 |
|
|
36 |
<target name="disassembleTD" depends="init,buildTD">
|
|
37 |
<echo>Disassemble TestDriver.</echo>
|
|
38 |
<property name="tdeptmp" value="${tdep.builddir}/tdeptmp" />
|
|
39 |
<property name="tdeptmp.plugins" value="${tdeptmp}/testdriver/eclipse/plugins" />
|
|
40 |
<property name="tdeptmp.features" value="${tdeptmp}/testdriver/eclipse/features" />
|
|
41 |
<mkdir dir="${tdeptmp}" />
|
|
42 |
<unzip overwrite="false" src="${env.EPOCROOT}${TDArchive.Name}.zip" dest="${tdep.plugins}">
|
|
43 |
<patternset
|
|
44 |
includes="testdriver/eclipse/plugins/**"
|
|
45 |
excludes="testdriver/eclipse/plugins/org.eclipse.*.jar testdriver/eclipse/plugins/org.eclipse.*/** testdriver/eclipse/plugins/com.ibm.icu*.jar"/>
|
|
46 |
<mapper type="glob" from="testdriver/eclipse/plugins/*" to="*"/>
|
|
47 |
</unzip>
|
|
48 |
|
|
49 |
<zip destfile="${tdeptmp}/${TDArchive.Name}-plugin.zip" filesonly="true" whenempty="skip" update="false">
|
|
50 |
<zipfileset
|
|
51 |
src="${env.EPOCROOT}${TDArchive.Name}.zip"
|
|
52 |
includes="testdriver/eclipse/automation/**"/>
|
|
53 |
<zipfileset
|
|
54 |
src="${env.EPOCROOT}${TDArchive.Name}.zip"
|
|
55 |
includes="testdriver/eclipse/plugins/**"
|
|
56 |
excludes="testdriver/eclipse/plugins/org.eclipse.*.jar testdriver/eclipse/plugins/org.eclipse.*/** testdriver/eclipse/plugins/com.ibm.icu*.jar"/>
|
|
57 |
</zip>
|
|
58 |
<antcall target="removeTD"/>
|
|
59 |
</target>
|
|
60 |
|
|
61 |
<target name="copysource" depends="init,disassembleTD">
|
|
62 |
|
|
63 |
<mkdir dir="${tdep.builddir}" />
|
|
64 |
<mkdir dir="${tdep.builddir}/features" />
|
|
65 |
<mkdir dir="${tdep.builddir}/plugins" />
|
|
66 |
|
|
67 |
<!--copy plugins to tmp build dir-->
|
|
68 |
|
|
69 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.driver.edit"> <fileset dir="../driver/com.symbian.driver.edit"/>
|
|
70 |
</copy>
|
|
71 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.driver.editor"> <fileset dir="../driver/com.symbian.driver.editor"/>
|
|
72 |
</copy>
|
|
73 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.driver.report.edit"> <fileset dir="../driver/com.symbian.driver.report.edit"/>
|
|
74 |
</copy>
|
|
75 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.ini"> <fileset dir="../ini/com.symbian.ini"/>
|
|
76 |
</copy>
|
|
77 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.ini.edit"> <fileset dir="../ini/com.symbian.ini.edit"/>
|
|
78 |
</copy>
|
|
79 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.ini.editor"> <fileset dir="../ini/com.symbian.ini.editor"/>
|
|
80 |
</copy>
|
|
81 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.tef.script"> <fileset dir="../script/com.symbian.tef.script"/>
|
|
82 |
</copy>
|
|
83 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.tef.script.edit"> <fileset dir="../script/com.symbian.tef.script.edit"/>
|
|
84 |
</copy>
|
|
85 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.tef.script.editor"> <fileset dir="../script/com.symbian.tef.script.editor"/>
|
|
86 |
</copy>
|
|
87 |
<copy overwrite="false" todir="${tdep.plugins}/com.symbian.tdep.templates.carbide"> <fileset dir="../tef/com.symbian.tdep.templates.carbide"/>
|
|
88 |
</copy>
|
|
89 |
|
|
90 |
<!-- copy features -->
|
|
91 |
<copy overwrite="false" todir="${tdep.features}/com.symbian.tef.templates.carbide.feature"> <fileset dir="../tef/com.symbian.tef.templates.carbide.feature"/>
|
|
92 |
</copy>
|
|
93 |
<copy overwrite="false" todir="${tdep.features}/com.symbian.tdep"> <fileset dir="com.symbian.tdep"/>
|
|
94 |
</copy>
|
|
95 |
<copy overwrite="false" todir="${tdep.features}/com.symbian.driver.editor.feature"> <fileset dir="../driver/com.symbian.driver.editor.feature"/>
|
|
96 |
</copy>
|
|
97 |
<copy overwrite="false" todir="${tdep.features}/com.symbian.ini.feature"> <fileset dir="../ini/com.symbian.ini.feature"/>
|
|
98 |
</copy>
|
|
99 |
<copy overwrite="false" todir="${tdep.features}/com.symbian.tef.script.feature"> <fileset dir="../script/com.symbian.tef.script.feature"/>
|
|
100 |
</copy>
|
|
101 |
|
|
102 |
<!-- copy 3rdparty plugins -->
|
|
103 |
<copy overwrite="false" todir="${tdep.plugins}/org.antlr"> <fileset dir="../../../../../dev/eclipseenv/eclipseplugins/antlr-2.7.7"/>
|
|
104 |
</copy>
|
|
105 |
|
|
106 |
</target>
|
|
107 |
|
|
108 |
<!-- =================================
|
|
109 |
target: default_target
|
|
110 |
build testdriver as am rcp application,
|
|
111 |
build tep
|
|
112 |
update zip files
|
|
113 |
copy to epoc tree
|
|
114 |
================================= -->
|
|
115 |
<target name="pde_headless_build" depends="copysource">
|
|
116 |
|
|
117 |
<copy tofile="${env.ECLIPSEHOME}/plugins/org.eclipse.equinox.launcher.jar">
|
|
118 |
<fileset dir="${env.ECLIPSEHOME}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar"/>
|
|
119 |
</copy>
|
|
120 |
|
|
121 |
<!-- build tdep -->
|
|
122 |
<echo> Building TDEP project template feature </echo>
|
|
123 |
<java classname="org.eclipse.core.launcher.Main" fork="yes" clonevm="true">
|
|
124 |
<classpath>
|
|
125 |
<pathelement location="${tdep.eclipse.startupjar}" />
|
|
126 |
</classpath>
|
|
127 |
<arg line="-application org.eclipse.ant.core.antRunner -buildfile ${basedir}/tdep.builder/build.xml -Dbuilder=${basedir}/tdep.builder -DcarbideLocation=${env.CARBIDEHOME} -Dbase=${env.ECLIPSEHOME}/.. -DbuildDirectory=${tdep.builddir} -DbuildType=${BuildType} -DbuildId=${BuildId} -Dtdep.archivename=${TDEPArchive.Name} -DjavacDebugInfo=false -DjavacFailOnError=true -DjavacVerbose=false -DjavacSource=1.5 -DjavacTarget=1.5 -DcompilerArg=-nowarn" />
|
|
128 |
</java>
|
|
129 |
|
|
130 |
<echo> Building TDEP editors features </echo>
|
|
131 |
<java classname="org.eclipse.core.launcher.Main" fork="yes" clonevm="true">
|
|
132 |
<classpath>
|
|
133 |
<pathelement location="${tdep.eclipse.startupjar}" />
|
|
134 |
</classpath>
|
|
135 |
<arg line="-application org.eclipse.ant.core.antRunner -buildfile ${basedir}/tdep.builder2/build.xml -Dbuilder=${basedir}/tdep.builder2 -DcarbideLocation=${env.CARBIDEHOME} -Dbase=${env.ECLIPSEHOME}/.. -DbuildDirectory=${tdep.builddir} -DbuildType=${BuildType} -DbuildId=${BuildId} -Dtdep.archivename=${TDEPArchive.Name} -DjavacDebugInfo=false -DjavacFailOnError=true -DjavacVerbose=false -DjavacSource=1.5 -DjavacTarget=1.5 -DcompilerArg=-nowarn" />
|
|
136 |
</java>
|
|
137 |
|
|
138 |
<!-- merge the two zip files into one.-->
|
|
139 |
<!-- first unzip carbide in a tmp folder -->
|
|
140 |
<mkdir dir="${tdep.builddir}/tdeptmp" />
|
|
141 |
|
|
142 |
<unzip overwrite="false" src="${tdep.builddir}/${BuildType}.${BuildId}/${CarbideTemplateArchive.Name}.zip" dest="${tdep.builddir}/tdeptmp" />
|
|
143 |
<unzip overwrite="false" src="${tdep.builddir}/${BuildType}.${BuildId}/${TDEPArchive.Name}.zip" dest="${tdep.builddir}/tdeptmp" />
|
|
144 |
<unzip overwrite="false" src="${tdeptmp}/${TDArchive.Name}-plugin.zip" dest="${tdep.builddir}/tdeptmp">
|
|
145 |
<mapper type="glob" from="testdriver/eclipse/*" to="eclipse/*"/>
|
|
146 |
</unzip>
|
|
147 |
|
|
148 |
<unjar overwrite="false" dest="${tdep.builddir}/tdeptmp/eclipse/plugins/com.symbian.tdep.templates.carbide_1.0.0" src="${tdep.builddir}/tdeptmp/eclipse/plugins/com.symbian.tdep.templates.carbide_1.0.0.jar"/>
|
|
149 |
|
|
150 |
<delete file="${tdep.builddir}/tdeptmp/eclipse/plugins/com.symbian.tdep.templates.carbide_1.0.0.jar"/>
|
|
151 |
|
|
152 |
<delete file="${tdep.builddir}/${BuildType}.${BuildId}/${TDEPArchive.Name}.zip"/>
|
|
153 |
|
|
154 |
<!-- Copy the files to epoc tree -->
|
|
155 |
<copy todir="${env.EPOCROOT}" overwrite="true">
|
|
156 |
<fileset dir="${tdep.builddir}/tdeptmp/eclipse"/>
|
|
157 |
</copy>
|
|
158 |
</target>
|
|
159 |
|
|
160 |
<!-- =================================
|
|
161 |
target: clean
|
|
162 |
- This target is mandatory for the Symbian buid process.
|
|
163 |
- Please clean up all generated files during the build proccess.
|
|
164 |
- Used by "abld clean" and "abld reallyclean".
|
|
165 |
================================= -->
|
|
166 |
<target name="clean" depends="init">
|
|
167 |
|
|
168 |
<java classname="org.eclipse.core.launcher.Main" fork="yes" clonevm="true">
|
|
169 |
<classpath>
|
|
170 |
<pathelement location="${tdep.eclipse.startupjar}" />
|
|
171 |
</classpath>
|
|
172 |
<arg line="-application org.eclipse.ant.core.antRunner clean -buildfile ${basedir}/tdep.builder/build.xml -Dbuilder=${basedir}/tdep.builder -DcarbideLocation=${env.CARBIDEHOME} -Dbase=${env.ECLIPSEHOME}/.. -DbuildDirectory=${tdep.builddir} -DbuildType=${BuildType} -DbuildId=${BuildId} -Dtdep.archivename=${TDEPArchive.Name}" />
|
|
173 |
</java>
|
|
174 |
|
|
175 |
<java classname="org.eclipse.core.launcher.Main" fork="yes" clonevm="true">
|
|
176 |
<classpath>
|
|
177 |
<pathelement location="${tdep.eclipse.startupjar}" />
|
|
178 |
</classpath>
|
|
179 |
<arg line="-application org.eclipse.ant.core.antRunner clean -buildfile ${basedir}/tdep.builder2/build.xml -Dbuilder=${basedir}/tdep.builder2 -DcarbideLocation=${env.CARBIDEHOME} -Dbase=${env.ECLIPSEHOME}/.. -DbuildDirectory=${tdep.builddir} -DbuildType=${BuildType} -DbuildId=${BuildId} -Dtdep.archivename=${TDEPArchive.Name}" />
|
|
180 |
</java>
|
|
181 |
|
|
182 |
<delete dir="${tdep.destination}" />
|
|
183 |
<delete dir="${tdep.builddir}/${BuildType}.${BuildId}" />
|
|
184 |
|
|
185 |
</target>
|
|
186 |
|
|
187 |
<!-- =================================
|
|
188 |
target: what
|
|
189 |
|
|
190 |
- This target is mandatory for the Symbian buid process.
|
|
191 |
- Please echo all created files, sperated by whitespace.
|
|
192 |
- Used by "abld build -what".
|
|
193 |
================================= -->
|
|
194 |
<target name="what" depends="init" description="Prints out all releasables">
|
|
195 |
<pathconvert pathsep="${line.separator}" property="output">
|
|
196 |
<fileset id="automation" dir="/automation" casesensitive="no"/>
|
|
197 |
<fileset id="features" dir="/features" casesensitive="no">
|
|
198 |
<include name="com.symbian.driver.editor.feature*/*" />
|
|
199 |
<include name="com.symbian.ini.feature*/*" />
|
|
200 |
<include name="com.symbian.tdep*/*" />
|
|
201 |
<include name="com.symbian.tef.script.feature*/*" />
|
|
202 |
<include name="com.symbian.tef.templates.carbide.feature*/*" />
|
|
203 |
</fileset>
|
|
204 |
<fileset id="plugins" dir="/plugins" casesensitive="no">
|
|
205 |
<include name="com.symbian.tdep.templates.carbide*/**" />
|
|
206 |
<include name="org.antlr*/**" />
|
|
207 |
<include name="org.apache.commons_cli*/**" />
|
|
208 |
<include name="org.apache.commons_net*/**" />
|
|
209 |
<include name="org.apache.oro*/**" />
|
|
210 |
<include name="org.java.javax.mail*/**" />
|
|
211 |
<include name="org.jdom*/**" />
|
|
212 |
<include name="org.junit*/**" />
|
|
213 |
<include name="org.RXTX*/**" />
|
|
214 |
<include name="com.symbian.driver*.jar" />
|
|
215 |
<include name="com.symbian.ini*.jar" />
|
|
216 |
<include name="com.symbian.tef.script*.jar" />
|
|
217 |
<include name="com.symbian.jstat*.jar" />
|
|
218 |
<include name="com.symbian.nativeprocesshandler*.jar" />
|
|
219 |
<include name="com.symbian.utils*.jar" />
|
|
220 |
</fileset>
|
|
221 |
</pathconvert>
|
|
222 |
<echo message="${output}" />
|
|
223 |
</target>
|
|
224 |
|
|
225 |
<target name="init.cc" depends="init">
|
|
226 |
<property environment="env" />
|
|
227 |
<property name="tdep.destination" value="${basedir}/results" />
|
|
228 |
<property name="tdep.eclipse" value="C:/apps/eclipse/eclipse_3_2/eclipse/" />
|
|
229 |
<property name="tdep.eclipse.startupjar" value="${tdep.eclipse}startup.jar" />
|
|
230 |
<property name="tdep.carbide" value="C:/apps/carbide/carbide_1_2/Carbide.c++v1.2/" />
|
|
231 |
</target>
|
|
232 |
|
|
233 |
<target name="copyfiles.cc" depends="init.cc">
|
|
234 |
<antcall taget="copyfiles"/>
|
|
235 |
</target>
|
|
236 |
|
|
237 |
<target name="build.tdep.cc" depends="copyfiles.cc">
|
|
238 |
<antcall target="pde_headless_build" />
|
|
239 |
</target>
|
|
240 |
|
|
241 |
<target name="tdep.clean.cc" depends="init.cc">
|
|
242 |
<antcall target="clean" />
|
|
243 |
</target>
|
|
244 |
|
|
245 |
</project>
|