22 export.debug : Export all debug binaries |
22 export.debug : Export all debug binaries |
23 export.release : Export all release binaries |
23 export.release : Export all release binaries |
24 export.lib : Export native libraries |
24 export.lib : Export native libraries |
25 export.lib.debug : Export debug native libraries |
25 export.lib.debug : Export debug native libraries |
26 export.lib.release : Export release native libraries |
26 export.lib.release : Export release native libraries |
27 run.tests : Run JUnit and MT tests |
27 run.tests : Run JUnit and MT tests |
28 </echo> |
28 </echo> |
29 </target> |
29 </target> |
30 |
30 |
31 <target name="init" depends="init.env, init.export.path"> |
31 <target name="init" depends="init.env, init.export.path"> |
32 <property file="./build.properties"></property> |
32 <property file="./build.properties"></property> |
36 <property name="build.result.dir" value="${basedir}"/> |
36 <property name="build.result.dir" value="${basedir}"/> |
37 <property name="download.destination" value="${basedir}"/> |
37 <property name="download.destination" value="${basedir}"/> |
38 <property name="lib.path" value = "${plugin.dir}/Eclipse_SWT_PI/qt/library"/> |
38 <property name="lib.path" value = "${plugin.dir}/Eclipse_SWT_PI/qt/library"/> |
39 <property name="lib.gfx.path" value = "${plugin.dir}/Eclipse_SWT_PI/qt/library/graphics"/> |
39 <property name="lib.gfx.path" value = "${plugin.dir}/Eclipse_SWT_PI/qt/library/graphics"/> |
40 <property name="odc.location" value = "${plugin.dir}/Eclipse_SWT_PI/s60"/> |
40 <property name="odc.location" value = "${plugin.dir}/Eclipse_SWT_PI/s60"/> |
41 <mkdir dir="${lib.path}/${generated.native.dir}"/> |
41 <mkdir dir="${lib.path}/${generated.native.dir}"/> |
42 <!-- Platform Specific properties --> |
42 <mkdir dir="${lib.path}/${generated.native.dir.webkit}"/> |
43 </target> |
43 </target> |
44 |
44 |
45 <target name="init.env"> |
45 <target name="init.env"> |
46 <property environment = "env"/> |
46 <property environment = "env"/> |
47 <fail message="JAVA_SRC_ROOT system variable not defined"> |
47 <fail message="JAVA_SRC_ROOT system variable not defined"> |
64 <property name="export.jar.debug.path" value = "${env.JAVA_BIN_ROOT}/jsr/classes"/> |
64 <property name="export.jar.debug.path" value = "${env.JAVA_BIN_ROOT}/jsr/classes"/> |
65 <property name="export.jar.release.path" value = "${env.JAVA_BIN_ROOT}/jsr/classes"/> |
65 <property name="export.jar.release.path" value = "${env.JAVA_BIN_ROOT}/jsr/classes"/> |
66 <property name="export.lib.debug.path" value = "${env.JAVA_BIN_ROOT}/lib"/> |
66 <property name="export.lib.debug.path" value = "${env.JAVA_BIN_ROOT}/lib"/> |
67 <property name="export.lib.release.path" value = "${env.JAVA_BIN_ROOT}/lib"/> |
67 <property name="export.lib.release.path" value = "${env.JAVA_BIN_ROOT}/lib"/> |
68 </target> |
68 </target> |
69 |
69 |
70 <target name="download" depends="init"> |
70 <target name="download" depends="init"> |
71 <delete dir="${temp.dir}"/> |
71 <delete dir="${temp.dir}"/> |
72 <mkdir dir="${temp.dir}/swtdownload/"/> |
72 <mkdir dir="${temp.dir}/swtdownload/"/> |
73 <antcall target="build.jar"/> |
73 <antcall target="build.jar"/> |
74 <jar jarfile="${build.result.dir}/${jar.filename}" basedir="${basedir}/release/" |
74 <jar jarfile="${build.result.dir}/${jar.filename}" basedir="${basedir}/release/" |
75 update="true" includes="eswt*.dll,libeswt*.so"/> |
75 update="true" includes="eswt*.dll,libeswt*.so"/> |
76 <copy file="${build.result.dir}/${jar.filename}" todir="${temp.dir}/swtdownload"/> |
76 <copy file="${build.result.dir}/${jar.filename}" todir="${temp.dir}/swtdownload"/> |
77 <antcall target="src.zip"/> |
77 <antcall target="src.zip"/> |
78 <copy file="${build.result.dir}/src.zip" todir="${temp.dir}/swtdownload"/> |
78 <copy file="${build.result.dir}/src.zip" todir="${temp.dir}/swtdownload"/> |
79 <copy file="${plugin.dir}/build/.project" todir="${temp.dir}/swtdownload"/> |
79 <copy file="${plugin.dir}/build/.project" todir="${temp.dir}/swtdownload"/> |
80 <copy file="${plugin.dir}/build/.classpath" todir="${temp.dir}/swtdownload"/> |
80 <copy file="${plugin.dir}/build/.classpath" todir="${temp.dir}/swtdownload"/> |
98 <fileset dir="${plugin.dir}/Eclipse SWT Drag and Drop/qt/" includes="**/*.java" excludes=""/> |
98 <fileset dir="${plugin.dir}/Eclipse SWT Drag and Drop/qt/" includes="**/*.java" excludes=""/> |
99 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/" includes="**/*.java" excludes=""/> |
99 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/" includes="**/*.java" excludes=""/> |
100 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/library/"/> |
100 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/library/"/> |
101 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/graphics_library/"/> |
101 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/graphics_library/"/> |
102 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/" includes="**/*.java" excludes=""/> |
102 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/" includes="**/*.java" excludes=""/> |
|
103 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/linux/" includes="**/*.java" excludes=""/> |
|
104 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/webkit/" includes="**/*.java" excludes=""/> |
103 <fileset dir="${plugin.dir}/../com.nokia.swt.extensions/extensions/" includes="**/*.java" excludes=""/> |
105 <fileset dir="${plugin.dir}/../com.nokia.swt.extensions/extensions/" includes="**/*.java" excludes=""/> |
104 <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.properties" excludes=""/> |
106 <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.properties" excludes=""/> |
105 <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/> |
107 <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/> |
106 <fileset dir="${basedir}" includes="about.html,about_files/" excludes=""/> |
108 <fileset dir="${basedir}" includes="about.html,about_files/" excludes=""/> |
107 </zip> |
109 </zip> |
123 <fileset dir="${plugin.dir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/> |
125 <fileset dir="${plugin.dir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/> |
124 <fileset dir="${plugin.dir}/Eclipse SWT Browser/qt/" includes="**/*.java" excludes=""/> |
126 <fileset dir="${plugin.dir}/Eclipse SWT Browser/qt/" includes="**/*.java" excludes=""/> |
125 <fileset dir="${plugin.dir}/Eclipse SWT Drag and Drop/qt/" includes="**/*.java" excludes=""/> |
127 <fileset dir="${plugin.dir}/Eclipse SWT Drag and Drop/qt/" includes="**/*.java" excludes=""/> |
126 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/" includes="**/*.java" excludes=""/> |
128 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/" includes="**/*.java" excludes=""/> |
127 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/" includes="**/*.java" excludes=""/> |
129 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/" includes="**/*.java" excludes=""/> |
|
130 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/linux/" includes="**/*.java" excludes=""/> |
|
131 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/webkit/" includes="**/*.java" excludes=""/> |
128 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/library/"/> |
132 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/library/"/> |
129 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/graphics_library/"/> |
133 <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/graphics_library/"/> |
130 <fileset dir="${plugin.dir}/../com.nokia.swt.extensions/extensions/" includes="**/*.java" excludes=""/> |
134 <fileset dir="${plugin.dir}/../com.nokia.swt.extensions/extensions/" includes="**/*.java" excludes=""/> |
131 <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.properties" excludes=""/> |
135 <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.properties" excludes=""/> |
132 <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/> |
136 <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/> |
187 <src path="${plugin.dir}/Eclipse SWT/qt/"/> |
191 <src path="${plugin.dir}/Eclipse SWT/qt/"/> |
188 <src path="${plugin.dir}/Eclipse SWT Browser/common/"/> |
192 <src path="${plugin.dir}/Eclipse SWT Browser/common/"/> |
189 <src path="${plugin.dir}/Eclipse SWT Browser/qt/"/> |
193 <src path="${plugin.dir}/Eclipse SWT Browser/qt/"/> |
190 <src path="${plugin.dir}/Eclipse SWT Drag and Drop/qt/"/> |
194 <src path="${plugin.dir}/Eclipse SWT Drag and Drop/qt/"/> |
191 <src path="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/"/> |
195 <src path="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/"/> |
192 <!-- Use S60 CommandPresentationStrategy also for Linux J2ME target --> |
|
193 <src path="${plugin.dir}/Eclipse_SWT_PI/s60/"/> |
|
194 <src path="${plugin.dir}/Eclipse_SWT_PI/qt/"/> |
196 <src path="${plugin.dir}/Eclipse_SWT_PI/qt/"/> |
|
197 <src path="${plugin.dir}/Eclipse_SWT_PI/linux/"/> |
|
198 <src path="${plugin.dir}/Eclipse_SWT_PI/webkit/"/> |
195 <src path="${plugin.dir}/../com.nokia.swt.extensions/extensions/"/> |
199 <src path="${plugin.dir}/../com.nokia.swt.extensions/extensions/"/> |
196 <src path="${plugin.dir}/../com.nokia.swt.extensions/midp_common/"/> |
200 <src path="${plugin.dir}/../com.nokia.swt.extensions/midp/"/> |
197 <classpath> |
201 <classpath> |
198 <pathelement location="./java_signature_test.jar"/> |
202 <pathelement location="./java_signature_test.jar"/> |
199 <pathelement location="${plugin.dir}/extra_jars/cdc-compilation-support.jar"/> |
203 <pathelement location="${plugin.dir}/extra_jars/cdc-compilation-support.jar"/> |
200 </classpath> |
204 </classpath> |
201 </javac> |
205 </javac> |
219 |
223 |
220 <target name="build.lib.debug" depends="init"> |
224 <target name="build.lib.debug" depends="init"> |
221 <antcall target="build.lib.common"> |
225 <antcall target="build.lib.common"> |
222 <param name="build.lib.common.config" value="debug"/> |
226 <param name="build.lib.common.config" value="debug"/> |
223 </antcall> |
227 </antcall> |
|
228 <antcall target="build.lib.common.webkit"> |
|
229 <param name="build.lib.common.config" value="debug"/> |
|
230 </antcall> |
224 </target> |
231 </target> |
225 |
232 |
226 <target name="build.lib.release" depends="init"> |
233 <target name="build.lib.release" depends="init"> |
227 <antcall target="build.lib.common"> |
234 <antcall target="build.lib.common"> |
|
235 <param name="build.lib.common.config" value="release"/> |
|
236 </antcall> |
|
237 <antcall target="build.lib.common.webkit"> |
228 <param name="build.lib.common.config" value="release"/> |
238 <param name="build.lib.common.config" value="release"/> |
229 </antcall> |
239 </antcall> |
230 </target> |
240 </target> |
231 |
241 |
232 <target name="build.lib.common" depends="init" description="params: config"> |
242 <target name="build.lib.common" depends="init" description="params: config"> |
249 <mkdir dir="${build.result.dir}/${build.lib.common.config}/"/> |
259 <mkdir dir="${build.result.dir}/${build.lib.common.config}/"/> |
250 <copy file="${lib.path}/${build.lib.common.config}/${lib.filename}" |
260 <copy file="${lib.path}/${build.lib.common.config}/${lib.filename}" |
251 tofile="${build.result.dir}/${build.lib.common.config}/${lib.filename}" overwrite="true" verbose="true"/> |
261 tofile="${build.result.dir}/${build.lib.common.config}/${lib.filename}" overwrite="true" verbose="true"/> |
252 </target> |
262 </target> |
253 |
263 |
|
264 <target name="build.lib.common.webkit" depends="init" description="params: config"> |
|
265 <javah destdir="${lib.path}/${generated.native.dir.webkit}/" classpath="${plugin.dir}/bin" verbose="yes"> |
|
266 <class name="org.eclipse.swt.internal.qt.webkit.OS_webkit"/> |
|
267 </javah> |
|
268 <antcall target="qmake"> |
|
269 <param name="qmake.dir" value="${lib.path}/webkit"/> |
|
270 <param name="qmake.target" value="${build.lib.common.config}"/> |
|
271 <param name="qmake.spec" value="${lib.spec}"/> |
|
272 <param name="qmake.file" value="${lib.makefile}.${build.lib.common.config}"/> |
|
273 </antcall> |
|
274 <antcall target="make"> |
|
275 <param name="make.dir" value="${lib.path}/webkit"/> |
|
276 <param name="make.file" value="${lib.makefile}.${build.lib.common.config}"/> |
|
277 <param name="make.target" value="all"/> |
|
278 </antcall> |
|
279 <mkdir dir="${build.result.dir}/${build.lib.common.config}/"/> |
|
280 <copy file="${lib.path}/webkit/${build.lib.common.config}/${lib.filename.webkit}" |
|
281 tofile="${build.result.dir}/${build.lib.common.config}/${lib.filename.webkit}" overwrite="true" verbose="true"/> |
|
282 </target> |
|
283 |
254 <target name="clean"> |
284 <target name="clean"> |
255 <antcall target="clean.jar"/> |
285 <antcall target="clean.jar"/> |
256 <antcall target="clean.lib"/> |
286 <antcall target="clean.lib"/> |
257 </target> |
287 </target> |
258 |
288 |
259 <target name="clean.jar" depends="init" description=""> |
289 <target name="clean.jar" depends="init" description=""> |
260 <delete dir="${plugin.dir}/bin"/> |
290 <delete dir="${plugin.dir}/bin"/> |
261 <delete file="${build.result.dir}/${jar.filename}" verbose="true"/> |
291 <delete file="${build.result.dir}/${jar.filename}" verbose="true"/> |
262 <delete file="${export.jar.debug.path}/${jar.filename}" verbose="true"/> |
292 <delete file="${export.jar.debug.path}/${jar.filename}" verbose="true"/> |
263 <delete file="${export.jar.release.path}/${jar.filename}" verbose="true"/> |
293 <delete file="${export.jar.release.path}/${jar.filename}" verbose="true"/> |
264 </target> |
294 </target> |
265 |
295 |
266 <target name="clean.lib"> |
296 <target name="clean.lib"> |
267 <antcall target="clean.lib.debug"/> |
297 <antcall target="clean.lib.debug"/> |
268 <antcall target="clean.lib.release"/> |
298 <antcall target="clean.lib.release"/> |
287 <param name="make.file" value="${lib.makefile}.${clean.lib.common.config}"/> |
317 <param name="make.file" value="${lib.makefile}.${clean.lib.common.config}"/> |
288 <param name="fail" value="false"/> |
318 <param name="fail" value="false"/> |
289 </antcall> |
319 </antcall> |
290 <delete file="${lib.path}/${lib.makefile}.${clean.lib.common.config}" verbose="true"/> |
320 <delete file="${lib.path}/${lib.makefile}.${clean.lib.common.config}" verbose="true"/> |
291 <delete dir="${lib.path}/${generated.native.dir}" verbose="true"/> |
321 <delete dir="${lib.path}/${generated.native.dir}" verbose="true"/> |
292 <delete dir="${lib.path}/${clean.lib.common.config}" verbose="true"/> |
322 <delete dir="${lib.path}/${generated.native.dir.webkit}" verbose="true"/> |
|
323 <delete dir="${lib.path}/${clean.lib.common.config}" verbose="true"/> |
293 <delete file="${build.result.dir}/${clean.lib.common.config}/${lib.filename}" verbose="true"/> |
324 <delete file="${build.result.dir}/${clean.lib.common.config}/${lib.filename}" verbose="true"/> |
294 <condition property="clean.lib.common.export.path" value="${export.lib.debug.path}" else="${export.lib.release.path}"> |
325 <condition property="clean.lib.common.export.path" value="${export.lib.debug.path}" else="${export.lib.release.path}"> |
295 <equals arg1="${clean.lib.common.config}" arg2="debug"/> |
326 <equals arg1="${clean.lib.common.config}" arg2="debug"/> |
296 </condition> |
327 </condition> |
297 <delete file="${clean.lib.common.export.path}/${lib.filename}" verbose="true"/> |
328 <delete file="${clean.lib.common.export.path}/${lib.filename}" verbose="true"/> |
362 <arg value="CONFIG+=${qmake.target}"/> |
393 <arg value="CONFIG+=${qmake.target}"/> |
363 <arg value="DESTDIR=${qmake.target}"/> |
394 <arg value="DESTDIR=${qmake.target}"/> |
364 <arg value="OBJECTS_DIR=${qmake.target}/${qmake.spec}/build"/> |
395 <arg value="OBJECTS_DIR=${qmake.target}/${qmake.spec}/build"/> |
365 </exec> |
396 </exec> |
366 </target> |
397 </target> |
367 |
398 |
368 <target name="build.tests" depends="init,build.release"> |
399 <target name="build.tests" depends="init,build.release"> |
369 <mkdir dir="${tests.utils.dir}/java/bin"/> |
400 <mkdir dir="${tests.utils.dir}/java/bin"/> |
370 <mkdir dir="${tests.junit.dir}/bin"/> |
401 <mkdir dir="${tests.junit.dir}/bin"/> |
371 <mkdir dir="${tests.mt.dir}/bin"/> |
402 <mkdir dir="${tests.mt.dir}/bin"/> |
|
403 |
372 <javac destdir="${tests.utils.dir}/java/bin" source="${javac.source}" target="${javac.target}" |
404 <javac destdir="${tests.utils.dir}/java/bin" source="${javac.source}" target="${javac.target}" |
373 debug="${javac.debug}" debuglevel="lines,vars,source" verbose="true" failonerror="true"> |
405 debug="${javac.debug}" debuglevel="lines,vars,source" verbose="true" failonerror="true"> |
374 <src path="${tests.utils.dir}/java/src/"/> |
406 <src path="${tests.utils.dir}/java/src/"/> |
375 <classpath> |
407 <classpath> |
376 <pathelement path="${plugin.dir}/bin/"/> |
408 <pathelement path="${plugin.dir}/bin/"/> |
377 </classpath> |
409 </classpath> |
378 </javac> |
410 </javac> |
379 |
411 |
380 <javah outputfile="${tests.utils.dir}/native/os.h" classpath="${tests.utils.dir}/java/bin" verbose="yes"> |
412 <javah outputfile="${tests.utils.dir}/native/os.h" classpath="${tests.utils.dir}/java/bin" verbose="yes"> |
381 <class name="com.nokia.mj.impl.uitestutils.XlibUtils"/> |
413 <class name="com.nokia.mj.impl.uitestutils.XlibUtils"/> |
382 </javah> |
414 </javah> |
383 <antcall target="qmake"> |
415 <antcall target="qmake"> |
384 <param name="qmake.dir" value="${tests.utils.dir}/native"/> |
416 <param name="qmake.dir" value="${tests.utils.dir}/native"/> |
385 <param name="qmake.target" value="release"/> |
417 <param name="qmake.target" value="release"/> |