. We are now installing a real eclipse product.
. Only the jar files for the platform are built, dramatically reducing
the time necessary to build (thanks to the Fedora devs for the idea
and the basic procedure).
. Lot of small fixes to the build procedure to make future imports easier
. Some of the bundles are pre-extracted during install to improve
launching time.
. JDK 1.6 is required to build but any jre (1.5 or 1.6) can be used in
Preferences->Java->Installed JREs. JDK 1.4 is unfortunately not
supported at this time.
. Switch to x86_64 architecture name instead of amd64 to be more in-line
with mainline eclipse.
Note that after this update you will need to reinstall any plugins you've
installed with the built in Update Manager. This is a one time thing.
Submitted by: sepotvin@ (maintainer)
114 lines
7.0 KiB
XML
114 lines
7.0 KiB
XML
--- build.xml.orig 2009-02-11 17:38:21.000000000 -0500
|
|
+++ build.xml 2009-04-17 16:02:56.601305019 -0400
|
|
@@ -1,7 +1,7 @@
|
|
<project name="Eclipse SDK Source Build" default="run" basedir=".">
|
|
|
|
<!-- default target that runs complete build -->
|
|
- <target name="run" depends="fetch,insertBuildId,compile,install" />
|
|
+ <target name="run" depends="fetch,insertBuildId,compile,compilelibs,install" />
|
|
|
|
<!-- all features required to build eclipse sdk and javadoc -->
|
|
<target name="allElements">
|
|
@@ -41,6 +41,16 @@
|
|
<mkdir dir="${linux.gtk.s390x.rootfiles}" />
|
|
<copy tofile="${linux.gtk.s390x.rootfiles}/about.html" file="${buildDirectory}/plugins/org.eclipse.swt.gtk.linux.s390x/about.html" />
|
|
|
|
+ <!--copy freebsd gtk x86 about_files to in temp location where it will be copied into root of eclipse at assembly time-->
|
|
+ <property name="freebsd.gtk.x86.rootfiles" value="${buildDirectory}/features/org.eclipse.platform/about_files/freebsd.gtk.x86" />
|
|
+ <mkdir dir="${freebsd.gtk.x86.rootfiles}" />
|
|
+ <copy tofile="${freebsd.gtk.x86.rootfiles}/about.html" file="${buildDirectory}/plugins/org.eclipse.swt.gtk.freebsd.x86/about.html" />
|
|
+
|
|
+ <!--copy freebsd gtk x86_64 about_files to in temp location where it will be copied into root of eclipse at assembly time-->
|
|
+ <property name="freebsd.gtk.x86_64.rootfiles" value="${buildDirectory}/features/org.eclipse.platform/about_files/freebsd.gtk.x86_64" />
|
|
+ <mkdir dir="${freebsd.gtk.x86_64.rootfiles}" />
|
|
+ <copy tofile="${freebsd.gtk.x86_64.rootfiles}/about.html" file="${buildDirectory}/plugins/org.eclipse.swt.gtk.freebsd.x86_64/about.html" />
|
|
+
|
|
<copy todir="${linux.gtk.x86_64.rootfiles}">
|
|
<fileset dir="${buildDirectory}/plugins/org.eclipse.swt.gtk.linux.x86_64" includes="
|
|
about_files/mpl-v11.txt" />
|
|
@@ -71,6 +81,29 @@
|
|
<record name="compilelog.txt" action="stop" />
|
|
</target>
|
|
|
|
+ <target name="compilelibs" depends="init,clean,compile" if="libsconfig">
|
|
+ <!-- Build SWT native libraries -->
|
|
+ <ant dir="${buildDirectory}/plugins/org.eclipse.swt.${installWs}.${installOs}.${installArch}" antfile="build.xml" target="build.nativeLibraries" />
|
|
+
|
|
+ <!-- Build native launcher -->
|
|
+ <exec dir="${buildDirectory}/features/org.eclipse.equinox.executable/library/${installWs}/" executable="sh" failonerror="true">
|
|
+ <arg line="build.sh install" />
|
|
+ </exec>
|
|
+
|
|
+ <!-- Build native liblocalfile library -->
|
|
+ <exec dir="plugins/org.eclipse.core.filesystem/natives/unix/${installOs}" executable="make" failonerror="true" />
|
|
+ <copy file="plugins/org.eclipse.core.filesystem/natives/unix/${installOs}/liblocalfile_1_0_0.so" todir="plugins/org.eclipse.core.filesystem.${installOs}.${installArch}/os/${installOs}/${installArch}" />
|
|
+
|
|
+ <!-- Build native update library -->
|
|
+ <ant dir="${buildDirectory}/plugins/org.eclipse.update.core.${installOs}/src" antfile="build.xml" />
|
|
+
|
|
+ <!-- Build native libproxygnome library -->
|
|
+ <exec dir="plugins/org.eclipse.core.net/natives/unix/GetProxyGnome" executable="gmake" failonerror="true">
|
|
+ <arg line="clean all" />
|
|
+ </exec>
|
|
+ <copy file="plugins/org.eclipse.core.net/natives/unix/GetProxyGnome/libproxygnome.so" todir="plugins/org.eclipse.core.net.${installOs}.${installArch}" />
|
|
+ </target>
|
|
+
|
|
<!--create an installable eclipse runtime-->
|
|
<target name="install" depends="init">
|
|
<echo message="Assembling..." />
|
|
@@ -123,19 +156,19 @@
|
|
</path>
|
|
<regexpmapper from="(org\.eclipse\.equinox\.launcher)(_)(.*)\.jar" to="\0" />
|
|
</pathconvert>
|
|
- <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.platform.doc.isv" output="platform.doc.isv.txt">
|
|
+ <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.platform.doc.isv" >
|
|
<arg line="-data ${buildDirectory}/workspace -application org.eclipse.ant.core.antRunner build.update.jar -Dplugin.destination=${plugin.destination}" />
|
|
</java>
|
|
- <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.platform.doc.user" output="platform.doc.user.txt">
|
|
+ <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.platform.doc.user" >
|
|
<arg line="-data ${buildDirectory}/workspace -application org.eclipse.ant.core.antRunner build.update.jar -Dplugin.destination=${plugin.destination}" />
|
|
</java>
|
|
- <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.jdt.doc.isv" output="jdt.doc.isv.txt">
|
|
+ <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.jdt.doc.isv" >
|
|
<arg line="-data ${buildDirectory}/workspace -application org.eclipse.ant.core.antRunner build.update.jar -Dplugin.destination=${plugin.destination}" />
|
|
</java>
|
|
- <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.jdt.doc.user" output="jdt.doc.user.txt">
|
|
+ <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.jdt.doc.user" >
|
|
<arg line="-data ${buildDirectory}/workspace -application org.eclipse.ant.core.antRunner build.update.jar -Dplugin.destination=${plugin.destination}" />
|
|
</java>
|
|
- <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.pde.doc.user" output="pde.doc.user.txt">
|
|
+ <java fork="true" jar="${buildDirectory}/eclipse/plugins/${launcher}" dir="${buildDirectory}/plugins/org.eclipse.pde.doc.user" >
|
|
<arg line="-data ${buildDirectory}/workspace -application org.eclipse.ant.core.antRunner build.update.jar -Dplugin.destination=${plugin.destination}" />
|
|
</java>
|
|
|
|
@@ -256,7 +289,7 @@
|
|
</condition>
|
|
</fail>
|
|
|
|
- <property name="compilerArg" value="-enableJavadoc -encoding ISO-8859-1" />
|
|
+ <property name="compilerArg" value="-enableJavadoc -encoding ISO-8859-1 -nowarn" />
|
|
<property name="javacSource" value="1.6" />
|
|
<property name="javacTarget" value="1.6" />
|
|
<property name="javacDebugInfo" value="true" />
|
|
@@ -277,6 +310,8 @@
|
|
<equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-motif-x86" />
|
|
<equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-s390" />
|
|
<equals arg1="${installOs}-${installWs}-${installArch}" arg2="linux-gtk-s390x" />
|
|
+ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="freebsd-gtk-x86" />
|
|
+ <equals arg1="${installOs}-${installWs}-${installArch}" arg2="freebsd-gtk-x86_64" />
|
|
<equals arg1="${installOs}-${installWs}-${installArch}" arg2="solaris-gtk-x86" />
|
|
<equals arg1="${installOs}-${installWs}-${installArch}" arg2="hpux-motif-PA_RISC" />
|
|
</or>
|
|
@@ -284,7 +319,10 @@
|
|
|
|
<!--used to add doc plug-ins to result after initial assembly-->
|
|
<condition property="archive.format" value="tar">
|
|
- <equals arg1="${installOs}" arg2="linux" />
|
|
+ <or>
|
|
+ <equals arg1="${installOs}" arg2="linux" />
|
|
+ <equals arg1="${installOs}" arg2="freebsd" />
|
|
+ </or>
|
|
</condition>
|
|
<property name="archive.format" value="zip" />
|
|
</target>
|