blob: b80d2d841f3b92f743f8c32995de0480c45d8543 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2009 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
IBM Corporation - initial API and implementation
-->
<!--
TAG: a tag param can be passed in to work on branch. If no tag is set HEAD is used.
For example: ant -f build.xml build_all -DTAG=-rR3_5_maintenance
natives_changed: when starting a integration build the increment of the version
can be forced by setting this project. If property is not defined the increment
is determine automatically based on changes in the native code since the last
revision in the swp.map.
for Example: ant -f build.xml increment_version -Dnatives_changed=true
This script can be used from within Eclipse to build the natives for the current
platform. Call the task named build_[platform]. For example:
Before running the tasks you need to set the basedir to {workspace_loc}
To void clean after build define a property named "clean" to empty ("").
To run only clean define a property named "targets" to empty ("").
ant -f build.xml build_gtk_linux_ppc
-->
<project name="swtbuild" basedir="../..">
<property name="tasks" value="org.eclipse.swt/tasks"/>
<import file="${basedir}/${tasks}/properties.xml"/>
<!-- CVS values -->
<property name="cvsRootAnon" value=":pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse"/>
<property name="cvsRoot" value=":ext:fheidric@dev.eclipse.org:/cvsroot/eclipse"/>
<property name="TAG" value=""/>
<property name="builddir" value="org.eclipse.swt/bin/library"/>
<property name="logdir" value="S:/swt-builddir/logs"/>
<property name="tmphome" value="S:/swt-builddir/tmp"/>
<property name="ant_home" value="~/build/apache-ant-1.7.1"/>
<property name="cp_common" value="'org.eclipse.swt/Eclipse SWT/common/library' 'org.eclipse.swt/Eclipse SWT Mozilla/common/library' 'org.eclipse.swt/Eclipse SWT PI/common/library'"/>
<property name="cp_win32" value="${cp_common} 'org.eclipse.swt/Eclipse SWT PI/win32/library' 'org.eclipse.swt/Eclipse SWT AWT/win32/library' 'org.eclipse.swt/Eclipse SWT OpenGL/win32/library'"/>
<property name="cp_wpf" value="${cp_common} 'org.eclipse.swt/Eclipse SWT PI/wpf/library' 'org.eclipse.swt/Eclipse SWT PI/wpf_win32/library'"/>
<property name="cp_gtk" value="${cp_common} 'org.eclipse.swt/Eclipse SWT PI/gtk/library' 'org.eclipse.swt/Eclipse SWT AWT/gtk/library' 'org.eclipse.swt/Eclipse SWT OpenGL/glx/library' 'org.eclipse.swt/Eclipse SWT PI/cairo/library' 'org.eclipse.swt/Eclipse SWT Program/gnome/library' 'org.eclipse.swt/Eclipse SWT Program/cde/library'"/>
<property name="cp_motif" value="${cp_common} 'org.eclipse.swt/Eclipse SWT PI/motif/library' 'org.eclipse.swt/Eclipse SWT PI/motif_gtk/library' 'org.eclipse.swt/Eclipse SWT AWT/motif/library' 'org.eclipse.swt/Eclipse SWT OpenGL/glx/library' 'org.eclipse.swt/Eclipse SWT PI/cairo/library' 'org.eclipse.swt/Eclipse SWT Program/gnome/library' 'org.eclipse.swt/Eclipse SWT Program/cde/library'"/>
<property name="cp_carbon" value="${cp_common} 'org.eclipse.swt/Eclipse SWT PI/carbon/library' 'org.eclipse.swt/Eclipse SWT OpenGL/carbon/library'"/>
<property name="cp_cocoa" value="${cp_common} 'org.eclipse.swt/Eclipse SWT PI/cocoa/library' 'org.eclipse.swt/Eclipse SWT AWT/cocoa/library'"/>
<property name="cp_photon" value="${cp_common} 'org.eclipse.swt/Eclipse SWT PI/photon/library'"/>
<!-- Low level build tasks -->
<target name="init_build" if="eclipse.pdebuild.home">
<eclipse.refreshLocal resource="org.eclipse.swt" depth="infinite"/>
<eclipse.incrementalBuild project="org.eclipse.swt" kind="incr"/>
</target>
<target name="refresh_fragment" if="eclipse.pdebuild.home">
<echo>refreshing ${fragment}</echo>
<eclipse.refreshLocal resource="${fragment}" depth="infinite"/>
</target>
<target name="build_win32_x86" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="x86 install"/>
<exec dir="${basedir}/${builddir}" executable="${basedir}/${builddir}/build.bat" failonerror="true">
<env key="JAVA_HOME" value=""/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.win32.win32.x86"/>
</antcall>
</target>
<target name="build_win32_x86_64" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="x86_64 install"/>
<exec dir="${basedir}/${builddir}" executable="${basedir}/${builddir}/build.bat" failonerror="true">
<env key="JAVA_HOME" value=""/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.win32.win32.x86_64"/>
</antcall>
</target>
<target name="build_win32_ia64" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="ia64 install"/>
<exec dir="${basedir}/${builddir}" executable="${basedir}/${builddir}/build.bat" failonerror="true">
<env key="JAVA_HOME" value=""/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.win32.win32.ia64"/>
</antcall>
</target>
<target name="build_wince" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="install"/>
<exec dir="${basedir}/${builddir}" executable="${basedir}/${builddir}/build-ce.bat" failonerror="true">
<env key="JAVA_HOME" value=""/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.win32.wce_ppc.arm"/>
</antcall>
</target>
<target name="build_wpf_x86" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="install"/>
<exec dir="${basedir}/${builddir}" executable="${basedir}/${builddir}/build.bat" failonerror="true">
<env key="JAVA_HOME" value=""/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.wpf.win32.x86"/>
</antcall>
</target>
<target name="build_gtk_linux_rh3_x86" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_mozilla install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/IBMJava2-141"/>
<env key="MOZILLA_SDK" value="/bluebird/teamswt/swt-builddir/mozilla/1.4/linux_gtk2/mozilla/dist/sdk"/>
<env key="GCC_VERSION" value="-gcc3"/>
<env key="MOZILLA_INCLUDES" value="-include ${MOZILLA_SDK}/mozilla-config.h -I${MOZILLA_SDK}/../include/xpcom -I${MOZILLA_SDK}/../include/nspr -I${MOZILLA_SDK}/../include/embed_base -I${MOZILLA_SDK}/../include/embedstring -I${MOZILLA_SDK}/../include/string"/>
<env key="MOZILLA_LIBS" value="${MOZILLA_SDK}/../lib/libembedstring.a -L${MOZILLA_SDK}/../bin -L${MOZILLA_SDK}/../lib/ -lxpcom -lnspr4 -lplds4 -lplc4"/>
<env key="PKG_CONFIG_PATH" value="/bluebird/teamswt/swt-builddir/cairo_1.0.2/linux_x86/lib/pkgconfig"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86"/>
</antcall>
</target>
<target name="build_gtk_linux_rh4_x86" depends="init_build">
<property name="clean" value="clean" />
<property name="targets" value="make_mozilla make_xulrunner make_xpcominit" />
<exec dir="${basedir}/${builddir}" executable="make" failonerror="true">
<arg line="-f make_linux.mak"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/IBMJava2-141" />
<env key="MOZILLA_SDK" value="/bluebird/teamswt/swt-builddir/mozilla/1.4/linux_gtk2/mozilla/dist/sdk" />
<env key="XULRUNNER_SDK" value="/bluebird/teamswt/swt-builddir/geckoSDK/1.8.0.4/gecko-sdk" />
<env key="MOZILLA_INCLUDES" value="-include ${MOZILLA_SDK}/mozilla-config.h -I${MOZILLA_SDK}/../include/xpcom -I${MOZILLA_SDK}/../include/nspr -I${MOZILLA_SDK}/../include/embed_base -I${MOZILLA_SDK}/../include/embedstring -I${MOZILLA_SDK}/../include/string" />
<env key="MOZILLA_LIBS" value="${MOZILLA_SDK}/../lib/libembedstring.a -L${MOZILLA_SDK}/../bin -L${MOZILLA_SDK}/../lib/ -lxpcom -lnspr4 -lplds4 -lplc4" />
<env key="XULRUNNER_INCLUDES" value="-include ${XULRUNNER_SDK}/include/mozilla-config.h -I${XULRUNNER_SDK}/include" />
<env key="XULRUNNER_LIBS" value="-L${XULRUNNER_SDK}/lib -lxpcomglue" />
<arg line="${targets}" />
</exec>
<copy todir="org.eclipse.swt.gtk.linux.x86">
<fileset dir="${basedir}/${builddir}">
<include name="*.so" />
</fileset>
</copy>
<exec dir="${basedir}/${builddir}" executable="make" failonerror="true">
<arg line="-f make_linux.mak"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86" />
</antcall>
</target>
<target name="build_gtk_linux_rh3_x86_64" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_mozilla install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/jdk1.5.0"/>
<env key="MOZILLA_SDK" value="/bluebird/teamswt/swt-builddir/mozilla/1.7/amd64/mozilla/dist/sdk"/>
<env key="XULRUNNER_SDK" value="/bluebird/teamswt/swt-builddir/xulrunner/1.8.0.1/amd64/mozilla/dist/sdk/"/>
<env key="GCC_VERSION" value="-gcc3"/>
<env key="MOZILLA_INCLUDES" value="-include ${MOZILLA_SDK}/include/mozilla-config.h -I${MOZILLA_SDK}/include"/>
<env key="MOZILLA_LIBS" value="-L${MOZILLA_SDK}/lib -L${MOZILLA_SDK}/bin -lxpcom -lnspr4 -lplds4 -lplc4"/>
<env key="XULRUNNER_INCLUDES" value="-include ${XULRUNNER_SDK}/include/mozilla-config.h -I${XULRUNNER_SDK}/include"/>
<env key="XULRUNNER_LIBS" value="-L${XULRUNNER_SDK}/lib -lxpcomglue"/>
<env key="PKG_CONFIG_PATH" value="/bluebird/teamswt/swt-builddir/cairo_1.0.2/linux_x86_64/lib/pkgconfig"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86_64"/>
</antcall>
</target>
<target name="build_gtk_linux_rh4_x86_64" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_mozilla make_xulrunner make_xpcominit"/>
<exec dir="${basedir}/${builddir}" executable="make" failonerror="true">
<arg line="-f make_linux.mak"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/jdk1.5.0"/>
<env key="MOZILLA_SDK" value="/bluebird/teamswt/swt-builddir/mozilla/1.7/amd64/mozilla/dist/sdk"/>
<env key="XULRUNNER_SDK" value="/bluebird/teamswt/swt-builddir/xulrunner/1.8.0.1/amd64/mozilla/dist/sdk/"/>
<env key="MOZILLA_INCLUDES" value="-include ${MOZILLA_SDK}/include/mozilla-config.h -I${MOZILLA_SDK}/include"/>
<env key="MOZILLA_LIBS" value="-L${MOZILLA_SDK}/lib -L${MOZILLA_SDK}/bin -lxpcom -lnspr4 -lplds4 -lplc4"/>
<env key="XULRUNNER_INCLUDES" value="-include ${XULRUNNER_SDK}/include/mozilla-config.h -I${XULRUNNER_SDK}/include"/>
<env key="XULRUNNER_LIBS" value="-L${XULRUNNER_SDK}/lib -lxpcomglue"/>
<env key="PKG_CONFIG_PATH" value="/bluebird/teamswt/swt-builddir/cairo_1.0.2/linux_x86_64/lib/pkgconfig"/>
<arg line="${targets}"/>
</exec>
<copy todir="org.eclipse.swt.gtk.linux.x86_64">
<fileset dir="${basedir}/${builddir}">
<include name="*.so" />
</fileset>
</copy>
<exec dir="${basedir}/${builddir}" executable="make" failonerror="true">
<arg line="-f make_linux.mak"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86_64"/>
</antcall>
</target>
<target name="build_gtk_linux_ppc" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_mozilla make_xulrunner make_xpcominit install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/IBMJava2-ppc-142"/>
<env key="MOZILLA_SDK" value=" /bluebird/teamswt/swt-builddir/mozilla/1.7/ppc/mozilla/dist/sdk"/>
<env key="XULRUNNER_SDK" value="/bluebird/teamswt/swt-builddir/xulrunner/1.8.1.1/ppc/mozilla/dist/sdk/"/>
<env key="MODEL" value="ppc"/>
<env key="MOZILLA_INCLUDES" value="-include ${MOZILLA_SDK}/include/mozilla-config.h -I${MOZILLA_SDK}/include"/>
<env key="MOZILLA_LIBS" value="-L${MOZILLA_SDK}/lib -L${MOZILLA_SDK}/bin -lxpcom -lnspr4 -lplds4 -lplc4"/>
<env key="XULRUNNER_INCLUDES" value="-include ${XULRUNNER_SDK}/include/mozilla-config.h -I${XULRUNNER_SDK}/include"/>
<env key="XULRUNNER_LIBS" value="-L${XULRUNNER_SDK}/lib -lxpcomglue"/>
<env key="PKG_CONFIG_PATH" value="/bluebird/teamswt/swt-builddir/cairo_1.0.2/linux_ppc/lib/pkgconfig/"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.gtk.linux.ppc"/>
</antcall>
</target>
<target name="build_gtk_solaris_x86" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_mozilla install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="CC" value="cc"/>
<env key="CXX" value="CC"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/IBMJava2-141"/>
<env key="MOZILLA_SDK" value="/bluebird/teamswt/bog/mozilla/solaris_x86/1.7/mozilla/dist/sdk"/>
<env key="XULRUNNER_SDK" value="/bluebird/teamswt/swt-builddir/xulrunner/1.8.0.1/solaris-x86/mozilla/dist/sdk"/>
<env key="MOZILLA_INCLUDES" value="-include ${MOZILLA_SDK}/include/mozilla-config.h -I${MOZILLA_SDK}/include"/>
<env key="MOZILLA_LIBS" value="-L${MOZILLA_SDK}/lib -L${MOZILLA_SDK}/bin -lxpcom -lnspr4 -lplds4 -lplc4"/>
<env key="XULRUNNER_INCLUDES" value="-include ${XULRUNNER_SDK}/include/mozilla-config.h -I${XULRUNNER_SDK}/include"/>
<env key="XULRUNNER_LIBS" value="-L${XULRUNNER_SDK}/lib -lxpcomglue"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.gtk.solaris.x86"/>
</antcall>
</target>
<target name="build_gtk_solaris_sparc" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_mozilla install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="CC" value="cc"/>
<env key="CXX" value="CC"/>
<env key="CDE_HOME" value="/usr/dt"/>
<env key="JAVA_HOME" value="/usr/j2se"/>
<env key="PKG_CONFIG_PATH" value="/usr/local/cairo-1.4.10/lib/pkgconfig/"/>
<env key="MOZILLA_SDK" value="/bluebird/teamswt/swt-builddir/geckoSDK/1.4/gecko-sdk"/>
<env key="MOZILLA_INCLUDES" value="-I${MOZILLA_SDK} -I${MOZILLA_SDK}/xpcom/include -I${MOZILLA_SDK}/nspr/include -I${MOZILLA_SDK}/embed_base/include -I${MOZILLA_SDK}/embedstring/include -I${MOZILLA_SDK}/string/include"/>
<env key="MOZILLA_LIBS" value="${MOZILLA_SDK}/embedstring/bin/libembedstring.a -L${MOZILLA_SDK}/xpcom/bin -L${MOZILLA_SDK}/nspr/bin -lxpcom -lnspr4 -lplds4 -lplc4"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.gtk.solaris.sparc"/>
</antcall>
</target>
<target name="build_motif_linux" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_mozilla make_xulrunner make_xpcominit make_cairo install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/IBMJava2-141"/>
<env key="MOTIF_HOME" value="/bluebird/teamswt/swt-builddir/motif21"/>
<env key="MOZILLA_SDK" value="/bluebird/teamswt/swt-builddir/mozilla/1.4/linux_gtk2/mozilla/dist/sdk"/>
<env key="XULRUNNER_SDK" value="/bluebird/teamswt/swt-builddir/geckoSDK/1.8.0.4/gecko-sdk"/>
<env key="MOZILLA_INCLUDES" value="-include ${MOZILLA_SDK}/mozilla-config.h -I${MOZILLA_SDK}/../include/xpcom -I${MOZILLA_SDK}/../include/nspr -I${MOZILLA_SDK}/../include/embed_base -I${MOZILLA_SDK}/../include/embedstring -I${MOZILLA_SDK}/../include/string"/>
<env key="MOZILLA_LIBS" value="${MOZILLA_SDK}/../lib/libembedstring.a -L${MOZILLA_SDK}/../bin -L${MOZILLA_SDK}/../lib/ -lxpcom -lnspr4 -lplds4 -lplc4"/>
<env key="XULRUNNER_INCLUDES" value="-include ${XULRUNNER_SDK}/include/mozilla-config.h -I${XULRUNNER_SDK}/include"/>
<env key="XULRUNNER_LIBS" value="-L${XULRUNNER_SDK}/lib -lxpcomglue"/>
<env key="PKG_CONFIG_PATH" value="/bluebird/teamswt/swt-builddir/cairo_1.0.2/linux_x86/lib/pkgconfig"/>
<!--Need to add? setenv GCC_VERSION -gcc3 -->
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.motif.linux.x86"/>
</antcall>
</target>
<target name="build_motif_aix" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_cairo install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="JAVA_HOME" value="/bluebird/teamswt/swt-builddir/aixj9_r5"/>
<env key="AWT_HOME" value="/bluebird/teamswt/swt-builddir/aixj9_r5/jre/bin"/>
<env key="MOTIF_HOME" value="/bluebird/teamswt/swt-builddir/motif21"/>
<env key="PKG_CONFIG_PATH" value="/usr/local/cairo1.6.0/lib/pkgconfig/"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.motif.aix.ppc"/>
</antcall>
</target>
<target name="build_motif_solaris" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="make_cairo install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="PKG_CONFIG_PATH" value="/usr/local/cairo-1.4.10/lib/pkgconfig/"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.motif.solaris.sparc"/>
</antcall>
</target>
<target name="build_motif_hpux" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg value="build.sh"/>
<env key="JAVA_HOME" value="/opt/java1.5/"/>
<env key="AWT_HOME" value="/opt/java1.5/jre/lib/IA64N/"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.motif.hpux.ia64_32"/>
</antcall>
</target>
<target name="build_cocoa_x86_and_ppc" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg line="build32.sh"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.cocoa.macosx"/>
</antcall>
</target>
<target name="build_cocoa_x86_64" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="install_x86_64"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg line="build64.sh"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.cocoa.macosx.x86_64"/>
</antcall>
</target>
<target name="build_carbon" depends="init_build">
<property name="clean" value="clean"/>
<property name="targets" value="install"/>
<exec dir="${basedir}/${builddir}" executable="sh" failonerror="true">
<arg line="build.sh"/>
<arg line="${targets}"/>
<arg line="${clean}"/>
</exec>
<antcall target="refresh_fragment">
<param name="fragment" value="org.eclipse.swt.carbon.macosx"/>
</antcall>
</target>
<target name="build_photon" depends="init_build">
<echo>Photon is not being built</echo>
</target>
<!-- common build tasks -->
<target name="increment_version" depends="check_natives_changed" if="natives_changed">
<property name="cvsRsh" value="plink"/>
<property name="library_j2se" value="org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java"/>
<property name="library_j2me" value="org.eclipse.swt/Eclipse SWT PI/common_j2me/org/eclipse/swt/internal/Library.java"/>
<property name="make_common" value="org.eclipse.swt/Eclipse SWT/common/library/make_common.mak"/>
<property name="version_file" value="org.eclipse.swt/Eclipse SWT/common/version.txt"/>
<property name="tmpdir" value="${tmphome}/inc"/>
<delete dir="${tmpdir}" quiet="true"/>
<mkdir dir="${tmpdir}"/>
<cvs cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument value="${library_j2se}"/>
<argument value="${library_j2me}"/>
<argument value="${make_common}"/>
<argument value="${version_file}"/>
</commandline>
</cvs>
<copy file="${tmpdir}/${make_common}" tofile="${tmpdir}/tmp.txt"/>
<replace file="${tmpdir}/tmp.txt" token="min_ver" value="new_min_ver"/>
<propertyfile file="${tmpdir}/tmp.txt">
<entry key="new_min_ver" value="=" type="int" operation="+"/>
</propertyfile>
<loadproperties srcFile="${tmpdir}/${make_common}"/>
<loadproperties srcFile="${tmpdir}/tmp.txt"/>
<property name="swt_version" value="${maj_ver}${min_ver}"/>
<property name="new_version" value="${maj_ver}${new_min_ver}"/>
<echo>Version current ${swt_version} -> New ${new_version}</echo>
<replace file="${tmpdir}/${library_j2se}" token="MINOR_VERSION = ${min_ver}" value="MINOR_VERSION = ${new_min_ver}"/>
<replace file="${tmpdir}/${library_j2me}" token="MINOR_VERSION = ${min_ver}" value="MINOR_VERSION = ${new_min_ver}"/>
<replace file="${tmpdir}/${version_file}" token="version ${maj_ver}.${min_ver}" value="version ${maj_ver}.${new_min_ver}"/>
<replace file="${tmpdir}/${make_common}" token="min_ver=${min_ver}" value="min_ver=${new_min_ver}"/>
<echo file="${tmpdir}/ver.txt">new_comma_ver=${new_version}</echo>
<replaceregexp file="${tmpdir}/ver.txt" match="(\d)(\d)(\d)(\d)" replace="\1,\2,\3,\4" byline="true"/>
<loadproperties srcFile="${tmpdir}/ver.txt"/>
<replace file="${tmpdir}/${make_common}" token="comma_ver=${comma_ver}" value="comma_ver=${new_comma_ver}"/>
<cvs cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="commit"/>
<argument value="-m"/>
<argument line="'Update current version from v${swt_version} to v${new_version}'"/>
<argument value="${library_j2se}"/>
<argument value="${library_j2me}"/>
<argument value="${make_common}"/>
<argument value="${version_file}"/>
</commandline>
</cvs>
<delete dir="${tmpdir}" quiet="true"/>
</target>
<target name="get_tag">
<property name="tmpdir" value="${tmphome}/tag"/>
<delete dir="${tmpdir}" quiet="true"/>
<mkdir dir="${tmpdir}"/>
<property name="rlog_file" value="org.eclipse.swt/.project"/>
<property name="version_file" value="org.eclipse.swt/Eclipse SWT/common/library/make_common.mak"/>
<property name="tags_file" value="${tmpdir}/tags.txt"/>
<cvs cvsRoot="${cvsRootAnon}" cvsrsh="${cvsRsh}" failonerror="true" output="${tags_file}">
<commandline>
<argument value="rlog"/>
<argument value="${rlog_file}"/>
</commandline>
</cvs>
<cvs cvsRoot="${cvsRootAnon}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument value="${version_file}"/>
</commandline>
</cvs>
<loadproperties srcFile="${tmpdir}/${version_file}"/>
<property name="swt_version" value="v${maj_ver}${min_ver}"/>
<loadfile property="tags" srcfile="${tags_file}"/>
<script language="javascript">
<![CDATA[
tags = project.getProperty("tags");
swt_version = project.getProperty("swt_version");
if (!tags.match(swt_version)) {
project.setProperty("version_tag", swt_version);
} else {
for (i=97; i<123; i++) {
t = swt_version + String.fromCharCode(i);
if (!tags.match(t)) {
project.setProperty("version_tag", t);
break;
}
}
}
]]>
</script>
<fail message="Unable to determine new tag">
<condition>
<not>
<isset property="version_tag"/>
</not>
</condition>
</fail>
<delete dir="${tmpdir}" quiet="true"/>
<echo>New tag=${version_tag}</echo>
</target>
<target name="get_version" >
<property name="version_file" value="org.eclipse.swt/Eclipse SWT/common/library/make_common.mak"/>
<cvs cvsRoot="${cvsRootAnon}" cvsrsh="${cvsRsh}" failonerror="true">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument value="${version_file}"/>
</commandline>
</cvs>
<copy file="${version_file}" tofile="tmp"/>
<loadproperties srcFile="${version_file}"/>
<propertyfile file="tmp">
<entry key="old_min_ver" default="${min_ver}" type="int" operation="-"/>
</propertyfile>
<loadproperties srcFile="tmp"/>
<delete file="tmp"/>
<property name="swt_version" value="${maj_ver}${min_ver}"/>
<property name="old_version" value="${maj_ver}${old_min_ver}"/>
<echo>Version ${swt_version} ${old_version}</echo>
</target>
<target name="check_natives_changed" unless="natives_changed">
<property name="tmpdir" value="${tmphome}/map"/>
<delete dir="${tmpdir}" quiet="true"/>
<mkdir dir="${tmpdir}"/>
<cvs cvsRoot="${cvsRootAnon}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument line="${cp_win32}"/>
<argument line="${cp_wpf}"/>
<argument line="${cp_gtk}"/>
<argument line="${cp_motif}"/>
<argument line="${cp_carbon}"/>
<argument line="${cp_cocoa}"/>
<argument line="${cp_photon}"/>
</commandline>
</cvs>
<!-- Read in last tagged revision from map file -->
<property name="map" value="org.eclipse.releng/maps/swt.map"/>
<cvs cvsRoot="${cvsRootAnon}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument value="${map}"/>
</commandline>
</cvs>
<loadfile property="revision" srcfile="${tmpdir}/${map}">
<filterchain>
<striplinebreaks/>
<tokenfilter>
<containsstring contains="plugin@org.eclipse.swt="/>
<replaceregex pattern="(.*)(v\d\d\d\d[a-z]?)(.*)" replace="\2"/>
</tokenfilter>
</filterchain>
</loadfile>
<echo>Revision -${revision}-</echo>
<!-- Verify for changes in the native code -->
<cvs cvsRoot="${cvsRootAnon}" dest="${tmpdir}" output="${tmpdir}/diff.txt">
<commandline>
<argument value="diff"/>
<argument value="-u"/>
<argument value="-r"/>
<argument value="${revision}"/>
<argument value="org.eclipse.swt"/>
</commandline>
</cvs>
<condition property="natives_changed">
<length file="${tmpdir}/diff.txt" when="greater" length="0"/>
</condition>
<echo>Natives changed: ${natives_changed}</echo>
</target>
<target name="new_version" if="is_new_version">
<echo>Removing ${removed_files}</echo>
<cvs dest="${fragment}" command="remove -f ${removed_files}" cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true"/>
<echo>Commiting ${removed_files}</echo>
<cvs dest="${fragment}" command="commit -m 'remove v${old_version}' ${removed_files}" cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true"/>
<echo>Adding ${added_files}</echo>
<cvs dest="${fragment}" command="add -kb ${added_files}" cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true"/>
</target>
<!-- Params: cvsRsh, tmpdir, and version_tag -->
<target name="update_buildnotes">
<tstamp>
<format property="header.time" pattern="EEEE MMMMM dd, yyyy" offset="1" unit="day"/>
</tstamp>
<tstamp>
<format property="url.from.time" pattern="yyyy-MM-dd" offset="-7" unit="day"/>
</tstamp>
<tstamp>
<format property="url.to.time" pattern="yyyy-MM-dd"/>
</tstamp>
<property name="build_notes" value="org.eclipse.swt/buildnotes_swt.html"/>
<cvs cvsRoot="${cvsRootAnon}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument value="${build_notes}"/>
</commandline>
</cvs>
<property name="match_line" value="SWT&lt;/h1&gt;"/>
<property name="delimiter" value="&#13;&#10;"/>
<property name="url" value="https://bugs.eclipse.org/bugs/buglist.cgi?bug_file_loc=;bug_file_loc_type=allwordssubstr;bug_id=;bugidtype=include;chfield=resolution;chfieldfrom=${url.from.time};chfieldto=${url.to.time};chfieldvalue=FIXED;classification=Eclipse;component=SWT;email1=;email2=;emailtype1=substring;emailtype2=substring;field-1-0-0=classification;field-1-1-0=product;field-1-2-0=component;field0-0-0=noop;keywords=;keywords_type=allwords;long_desc=;long_desc_type=allwordssubstr;product=Platform;query_format=advanced;remaction=;short_desc=;short_desc_type=allwordssubstr;status_whiteboard=;status_whiteboard_type=allwordssubstr;type-1-0-0=anyexact;type-1-1-0=anyexact;type-1-2-0=anyexact;type0-0-0=noop;value-1-0-0=Eclipse;value-1-1-0=Platform;value-1-2-0=SWT;value0-0-0=;votes=;query_based_on="/>
<property name="body" value="${delimiter}${delimiter}&lt;h2&gt;SWT Build ${version_tag} - ${header.time}&lt;/h2&gt;${delimiter}${delimiter}&lt;blockquote&gt;${delimiter}&lt;a href=${url}&gt;Bugs fixed&lt;/a&gt;${delimiter}&lt;/blockquote&gt;"/>
<replace file="${tmpdir}/${build_notes}" token="${match_line}" value="${match_line}${body}"/>
<cvs cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="commit"/>
<argument value="-m"/>
<argument value="'new version v${version_tag}'"/>
<argument value="${build_notes}"/>
</commandline>
</cvs>
</target>
<!-- Params: fragment -->
<target name="commit_fragment" depends="get_version" if="native_changed">
<copy todir="${fragment}" overwrite="false">
<fileset dir="${fragment}" includes="*${old_version}*"/>
<regexpmapper from="(.*)${old_version}(.*)" to="\1${swt_version}\2"/>
</copy>
<fileset id="removeid" dir="${fragment}" includes="*${old_version}*"/>
<property name="rfiles" refid="removeid"/>
<echo file="tmp">removed_files=${rfiles}</echo>
<replace file="tmp" token=";" value=" "/>
<loadproperties srcfile="tmp"/>
<delete file="tmp"/>
<fileset id= "addid" dir="${fragment}" includes="*${swt_version}*"/>
<property name="afiles" refid="addid"/>
<echo file="tmp">added_files=${afiles}</echo>
<replace file="tmp" token=";" value=" "/>
<loadproperties srcfile="tmp"/>
<delete file="tmp"/>
<condition property="is_new_version">
<not>
<equals arg1="" arg2="${removed_files}"/>
</not>
</condition>
<antcall target="new_version"/>
<echo>"Commiting ${added_files}</echo>
<cvs dest="${fragment}" command="commit -m 'v${swt_version}' ${added_files}" cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true"/>
</target>
<!-- depends on 'get_new_tag' to define version_tag, swt_version, maj_ver and min_ver -->
<target name="tag_projects" depends="get_tag">
<property name="cvsRsh" value="plink"/>
<property name="tmpdir" value="${tmphome}/tag"/>
<delete dir="${tmpdir}" quiet="true"/>
<mkdir dir="${tmpdir}"/>
<!-- update and commit the buildnotes_swt.html file -->
<!--antcall target="update_buildnotes"/-->
<!-- tags fragments and plugins listed in swt.map -->
<property name="map" value="org.eclipse.releng/maps/swt.map"/>
<property name="map_copy" value="${tmpdir}/swt_map.txt"/>
<property name="map_xml" value="${tmpdir}/swt_map.xml"/>
<cvs cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument value="${map}"/>
</commandline>
</cvs>
<copy file="${tmpdir}/${map}" tofile="${map_copy}"/>
<replace file="${map_copy}" token="=" value="&quot; old=&quot;"/>
<replace file="${map_copy}" token="fragment@" value="&lt;element project=&quot;"/>
<replace file="${map_copy}" token="plugin@" value="&lt;element project=&quot;"/>
<replace file="${map_copy}" token=":pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse," value="&quot;/&gt;"/>
<replaceregexp file="${map_copy}" match="!(.*)" replace="" byline="true"/>
<loadfile property="body" srcfile="${map_copy}"/>
<echo file="${map_xml}">&lt;project&gt;</echo>
<echo file="${map_xml}" append="true">${body}</echo>
<echo file="${map_xml}" append="true">&lt;/project&gt;</echo>
<xslt style="${tasks}/swtmap.xls" in="${tmpdir}/swt_map.xml" out="${tmpdir}/tagCommand.xml">
<param name="TAG" expression="${TAG}"/>
<param name="cvsRoot" expression="${cvsRoot}"/>
<param name="cvsRsh" expression="${cvsRsh}"/>
<param name="version_tag" expression="${version_tag}"/>
<param name="map" expression="${tmpdir}/${map}"/>
</xslt>
<ant antfile="${tmpdir}/tagCommand.xml" target="tag_files"/>
<ant antfile="${tmpdir}/tagCommand.xml" target="update_map"/>
<cvs cvsRoot="${cvsRoot}" cvsrsh="${cvsRsh}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="commit"/>
<argument value="-m"/>
<argument value="'new version ${version_tag}'"/>
<argument value="${map}"/>
</commandline>
</cvs>
<delete file="${tmpdir}"/>
</target>
<!-- Params: build_target -->
<target name="build_natives" if="native_changed">
<copy todir="${builddir}" flatten="true">
<fileset dir="org.eclipse.swt" includes="**/library/"/>
</copy>
<antcall target="${build_target}"/>
</target>
<!-- Params: cp, fragment, build_target -->
<target name="build_fragment">
<property name="cvsRsh" value="ssh"/>
<property name="map" value="org.eclipse.releng/maps/swt.map"/>
<!-- check out classpath, fragments, and natives -->
<cvs cvsRoot="${cvsRootAnon}" failonerror="true">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument line="${cp}"/>
<argument value="${fragment}"/>
<argument value="${map}"/>
</commandline>
</cvs>
<!-- Check if there are changes in the native code -->
<loadfile property="revision" srcfile="${map}">
<filterchain>
<striplinebreaks/>
<tokenfilter>
<containsstring contains="plugin@org.eclipse.swt="/>
<replaceregex pattern="(.*)(v\d\d\d\d[a-z]?)(.*)" replace="\2"/>
</tokenfilter>
</filterchain>
</loadfile>
<tstamp>
<format property="last_build.time" pattern="yyyy-MM-dd hh:mm aa" offset="-1" unit="day"/>
</tstamp>
<!-- during maintenance builds (TAG is set) there is no nightly, so don't ever use timestamps (which are no good for branch)-->
<condition property="diff_tag" value="-r${revision}" else="-D${last_build.time}">
<length string="${TAG}" trim="true" when="greater" length="0"/>
</condition>
<cvs cvsRoot="${cvsRootAnon}" output="diff.txt">
<commandline>
<argument value="diff"/>
<argument line="${diff_tag}"/>
<argument value="-u"/>
<argument value="org.eclipse.swt"/>
</commandline>
</cvs>
<condition property="native_changed">
<length file="diff.txt" when="greater" length="0"/>
</condition>
<echo>Has native changes: ${native_changed}, compared against ${diff_tag}</echo>
<!-- build natives -->
<antcall target="build_natives"/>
<!-- commint libraries -->
<antcall target="commit_fragment"/>
</target>
<!-- Params: cp, fragment, build_target -->
<target name="build_local">
<property name="tmpdir" value="${tmphome}/${fragment}"/>
<property name="build_version" value=""/>
<delete dir="${tmpdir}" quiet="true"/>
<mkdir dir="${tmpdir}"/>
<cvs cvsRoot="${cvsRootAnon}" failonerror="true" dest="${tmpdir}">
<commandline>
<argument value="checkout"/>
<argument line="${TAG}"/>
<argument value="${tasks}"/>
</commandline>
</cvs>
<ant antfile="${tasks}/build.xml" output="${logdir}/${build_version}/${fragment}.log" dir="${tmpdir}" target="build_fragment">
<property name="cvsRsh" value="plink"/>
<property name="cp" value="${cp}"/>
<property name="fragment" value="${fragment}"/>
<property name="build_target" value="${build_target}"/>
</ant>
<delete dir="${tmpdir}"/>
</target>
<target name="set_natives_changed" if="natives_changed">
<property name="extra_properties" value="-Dnatives_changed=${natives_changed}"/>
</target>
<!-- Params: machine, pre_commands, cp, fragment, build_target -->
<target name="build_ssh" depends="set_natives_changed">
<property name="tmpdir" value="~/build/${machine}_${fragment}"/>
<property name="pre_commands" value=""/>
<property name="build_version" value=""/>
<property name="extra_properties" value=""/>
<property name="properties" value="-Dcp=&quot;${cp}&quot; -Dfragment=${fragment} -Dbuild_target=${build_target} -DTAG=${TAG} ${extra_properties}"/>
<sshexec host="${machine}"
username="swtbuild"
keyfile="${keyfile}"
trust="true"
output="${logdir}/${build_version}/${fragment}.log"
command="${pre_commands} rm -rf ${tmpdir}; mkdir ${tmpdir}; cd ${tmpdir}; cvs -d ${cvsRootAnon} checkout ${TAG} ${tasks}; if ant -f ${tasks}/build.xml build_fragment ${properties}; then cd; rm -rf ${tmpdir}; else cd; rm -rf ${tmpdir}; exit 1; fi"/>
</target>
<!-- Convert SWT 32 bit java and C source to 64 bit -->
<target name="replace.32.to.64" depends="init_build">
<echo>Converting java files to 64 bit in org.eclipse.swt project</echo>
<replace dir="." includes="**/*.java" token="int /*long*/" value="long /*int*/"/>
<replace dir="." includes="**/*.java" token="int[] /*long[]*/" value="long[] /*int[]*/"/>
<replace dir="." includes="**/*.java" token="float /*double*/" value="double /*float*/"/>
<replace dir="." includes="**/*.java" token="float[] /*double[]*/" value="double[] /*float[]*/"/>
<antcall target="init"/>
</target>
<!-- Convert SWT 64 bit java and C source to 32 bit -->
<target name="replace.64.to.32" depends="init_build">
<echo>Converting java files to 32 bit in org.eclipse.swt project</echo>
<replace dir="." includes="**/*.java" token="long /*int*/" value="int /*long*/"/>
<replace dir="." includes="**/*.java" token="long[] /*int[]*/" value="int[] /*long[]*/"/>
<replace dir="." includes="**/*.java" token="double /*float*/" value="float /*double*/"/>
<replace dir="." includes="**/*.java" token="double[] /*float[]*/" value="float[] /*double[]*/"/>
<antcall target="init"/>
</target>
<!-- all platforms -->
<target name="win32_x86">
<antcall target="build_local">
<param name="cp" value="${cp_win32}"/>
<param name="fragment" value="org.eclipse.swt.win32.win32.x86"/>
<param name="build_target" value="build_win32_x86"/>
</antcall>
</target>
<target name="win32_x86_64">
<antcall target="build_local">
<param name="cp" value="${cp_win32}"/>
<param name="fragment" value="org.eclipse.swt.win32.win32.x86_64"/>
<param name="build_target" value="build_win32_x86_64"/>
</antcall>
</target>
<target name="win32_ia64">
<antcall target="build_local">
<param name="cp" value="${cp_win32}"/>
<param name="fragment" value="org.eclipse.swt.win32.win32.ia64"/>
<param name="build_target" value="build_win32_ia64"/>
</antcall>
</target>
<target name="wince">
<antcall target="build_local">
<param name="cp" value="${cp_win32}"/>
<param name="fragment" value="org.eclipse.swt.win32.wce_ppc.arm"/>
<param name="build_target" value="build_wince"/>
</antcall>
</target>
<target name="wpf_x86">
<antcall target="build_local">
<param name="cp" value="${cp_wpf}"/>
<param name="fragment" value="org.eclipse.swt.wpf.win32.x86"/>
<param name="build_target" value="build_wpf_x86"/>
</antcall>
</target>
<target name="gtk_linux_x86">
<antcall target="build_ssh">
<param name="machine" value="${m_linux_rh3_x86}"/>
<param name="cp" value="${cp_gtk}"/>
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86"/>
<param name="build_target" value="build_gtk_linux_rh3_x86"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/x32/jdk1.6.0_14; export ANT_HOME=${ant_home}; export PATH=${ant_home}/bin:$PATH;"/>
</antcall>
<antcall target="build_ssh">
<param name="machine" value="${m_linux_x86}"/>
<param name="cp" value="${cp_gtk}"/>
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86"/>
<param name="build_target" value="build_gtk_linux_rh4_x86"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/x32/jdk1.6.0_14; export PATH=${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="gtk_linux_x86_64">
<antcall target="build_ssh">
<param name="machine" value="${m_linux_rh3_x86_64}"/>
<param name="cp" value="${cp_gtk}"/>
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86_64"/>
<param name="build_target" value="build_gtk_linux_rh3_x86_64"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/x64/jdk1.6.0_14; export ANT_HOME=${ant_home}; export PATH=${ant_home}/bin:$PATH; "/>
</antcall>
<sshexec host="${m_linux_rh3_x86_64}"
username="swtbuild"
keyfile="${keyfile}"
trust="true"
command="sudo /sbin/shutdown -r now"/>
<waitfor maxwait="5" maxwaitunit="minute" checkevery="10" checkeveryunit="second">
<socket server="${m_linux_x86_64}" port="22" />
</waitfor>
<antcall target="build_ssh">
<param name="machine" value="${m_linux_x86_64}"/>
<param name="cp" value="${cp_gtk}"/>
<param name="fragment" value="org.eclipse.swt.gtk.linux.x86_64"/>
<param name="build_target" value="build_gtk_linux_rh4_x86_64"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/x64/jdk1.6.0_14; export PATH=${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="gtk_linux_ppc">
<antcall target="build_ssh">
<param name="machine" value="${m_linux_ppc}"/>
<param name="cp" value="${cp_gtk}"/>
<param name="fragment" value="org.eclipse.swt.gtk.linux.ppc"/>
<param name="build_target" value="build_gtk_linux_ppc"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/PPC/ibm-java-ppc-60/; export PATH=${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="gtk_solaris_x86">
<antcall target="build_ssh">
<param name="machine" value="${m_solaris_x86}"/>
<param name="cp" value="${cp_gtk}"/>
<param name="fragment" value="org.eclipse.swt.gtk.solaris.x86"/>
<param name="build_target" value="build_gtk_solaris_x86"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/Solaris_x86/jdk1.6.0_14/; export PATH=${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="gtk_solaris_sparc">
<antcall target="build_ssh">
<param name="machine" value="${m_solaris_sparc}"/>
<param name="cp" value="${cp_gtk}"/>
<param name="fragment" value="org.eclipse.swt.gtk.solaris.sparc"/>
<param name="build_target" value="build_gtk_solaris_sparc"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/SPARC/jdk1.6.0_14/; export PATH=/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/local/bin:${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="motif_linux">
<antcall target="build_ssh">
<param name="machine" value="${m_linux_x86}"/>
<param name="cp" value="${cp_motif}"/>
<param name="fragment" value="org.eclipse.swt.motif.linux.x86"/>
<param name="build_target" value="build_motif_linux"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/x32/jdk1.6.0_14; export PATH=${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="motif_aix">
<antcall target="build_ssh">
<param name="machine" value="${m_aix}"/>
<param name="cp" value="${cp_motif}"/>
<param name="fragment" value="org.eclipse.swt.motif.aix.ppc"/>
<param name="build_target" value="build_motif_aix"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/AIX/sdk; export PATH=${ant_home}/bin:~/build/cvs_bin/AIX:$PATH;"/>
</antcall>
</target>
<target name="motif_solaris">
<antcall target="build_ssh">
<param name="machine" value="${m_solaris_sparc}"/>
<param name="java_home" value="~/build/JRE/SPARC/jdk1.6.0_14"/>
<param name="cp" value="${cp_motif}"/>
<param name="fragment" value="org.eclipse.swt.motif.solaris.sparc"/>
<param name="build_target" value="build_motif_solaris"/>
<param name="pre_commands" value="export JAVA_HOME=~/build/JRE/SPARC/jdk1.6.0_14; export PATH=/export/home/SUNWspro/bin:/usr/ccs/bin:${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="motif_hpux">
<antcall target="build_ssh">
<param name="machine" value="${m_hpux}"/>
<param name="cp" value="${cp_motif}"/>
<param name="fragment" value="org.eclipse.swt.motif.hpux.ia64_32"/>
<param name="build_target" value="build_motif_hpux"/>
<param name="pre_commands" value="export JAVA_HOME=/opt/java1.5; export PATH=${ant_home}/bin:$PATH; "/>
</antcall>
</target>
<target name="cocoa_x86_and_ppc">
<antcall target="build_ssh">
<param name="machine" value="${m_mac}"/>
<param name="cp" value="${cp_cocoa}"/>
<param name="fragment" value="org.eclipse.swt.cocoa.macosx"/>
<param name="build_target" value="build_cocoa_x86_and_ppc"/>
</antcall>
</target>
<target name="cocoa_x86_64">
<antcall target="build_ssh">
<param name="machine" value="${m_mac}"/>
<param name="cp" value="${cp_cocoa}"/>
<param name="fragment" value="org.eclipse.swt.cocoa.macosx.x86_64"/>
<param name="build_target" value="build_cocoa_x86_64"/>
</antcall>
</target>
<target name="carbon">
<antcall target="build_ssh">
<param name="machine" value="${m_mac}"/>
<param name="cp" value="${cp_carbon}"/>
<param name="fragment" value="org.eclipse.swt.carbon.macosx"/>
<param name="build_target" value="build_carbon"/>
</antcall>
</target>
<target name="photon">
<antcall target="build_local">
<param name="cp" value="${cp_photon}"/>
<param name="fragment" value="org.eclipse.swt.photon.qnx.x86"/>
<param name="build_target" value="build_photon"/>
</antcall>
</target>
<target name="build_all">
<tstamp>
<format property="build_version" pattern="yyyyMMddkkmmss"/>
</tstamp>
<mkdir dir="${logdir}/${build_version}"/>
<parallel failonany="false">
<antcall target="win32_x86"/>
<antcall target="win32_x86_64"/>
<antcall target="win32_ia64"/>
<antcall target="wince"/>
<antcall target="wpf_x86"/>
<antcall target="gtk_linux_x86"/>
<antcall target="gtk_linux_x86_64"/>
<antcall target="gtk_linux_ppc"/>
<antcall target="gtk_solaris_x86"/>
<antcall target="gtk_solaris_sparc"/>
<antcall target="motif_linux"/>
<antcall target="motif_aix"/>
<antcall target="motif_solaris"/>
<antcall target="motif_hpux"/>
<antcall target="cocoa_x86_and_ppc"/>
<antcall target="cocoa_x86_64"/>
<antcall target="carbon"/>
<antcall target="photon"/>
</parallel>
</target>
</project>