Blob Blame History Raw
### Eclipse Workspace Patch 1.0
#P org.eclipse.releng.eclipsebuilder
Index: eclipse/buildConfigs/sdk/srcBuild/build.xml
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/sdk/srcBuild/build.xml,v
retrieving revision 1.21
diff -u -r1.21 build.xml
--- eclipse/buildConfigs/sdk/srcBuild/build.xml	27 May 2008 19:41:03 -0000	1.21
+++ eclipse/buildConfigs/sdk/srcBuild/build.xml	26 Jun 2008 17:58:02 -0000
@@ -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">
@@ -71,6 +71,37 @@
 		<record name="compilelog.txt" action="stop" />
 	</target>
 
+	<target name="compilelibs" depends="init,clean,compile" if="libsconfig">
+		<property name="swtlibs" value="${buildDirectory}/swttmp" />
+		<mkdir dir="${swtlibs}" />
+
+		<ant antfile="${buildDirectory}/plugins/org.eclipse.swt.${installWs}.${installOs}.${installArch}/build.xml" target="build.nativeLibraries" dir="${buildDirectory}/plugins/org.eclipse.swt.${installWs}.${installOs}.${installArch}" />
+	
+		<property name="launcherlibs" value="${buildDirectory}/features/org.eclipse.equinox.executable" />
+		<exec dir="${launcherlibs}/library/${installWs}/" executable="sh" failonerror="true">
+			<arg line="build.sh" />
+		</exec>
+		<copy file="${launcherlibs}/library/${installWs}/eclipse" todir="${buildDirectory}/eclipse/" />
+
+		<property name="launcherfragment" value="org.eclipse.equinox.launcher.${installWs}.${installOs}.${installArch}" />
+
+		<copy file="${launcherlibs}/library/${installWs}/eclipse" todir="features/org.eclipse.equinox.executable/contributed/${installWs}/${installOs}/${installArch}/" />
+		<copy todir="${buildDirectory}/plugins/${launcherfragment}">
+			<fileset dir="${launcherlibs}/library/${installWs}">
+				<include name="**/*.so" />
+			</fileset>
+		</copy>
+
+		<!-- build liblocalfile -->
+		<exec dir="plugins/org.eclipse.core.filesystem/natives/unix/${installOs}" executable="make" failonerror="true" />
+		<move 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}">
+		</move>
+		<!-- build libupdate -->
+		<ant dir="plugins/org.eclipse.update.core.${installOs}/src" antfile="build.xml" />
+
+	</target>
+
+
 	<!--create an installable eclipse runtime-->
 	<target name="install" depends="init">
 		<echo message="Assembling..." />
@@ -174,7 +205,7 @@
 
 	<target name="install.eclipse.zip">
 		<exec dir="${buildDirectory}" executable="unzip" failonerror="true">
-			<arg line="-qq ${buildDirectory}/${buildLabel}/*.zip" />
+			<arg line="-qq -o ${buildDirectory}/${buildLabel}/*.zip" />
 		</exec>
 	</target>