Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project name="org.eclipse.swt.gtk.linux.x86" default="build.jars" basedir="."> |
| 3 | |
| 4 | <target name="init" depends="properties"> |
Grant Gayed | edc9178 | 2007-01-12 20:53:36 +0000 | [diff] [blame] | 5 | <property name="compilerArg" value=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 6 | <property name="ws" value="gtk"/> |
| 7 | <property name="os" value="linux"/> |
| 8 | <property name="arch" value="x86"/> |
Billy Biggs | 71d9d6b | 2005-11-18 02:52:02 +0000 | [diff] [blame] | 9 | <property name="fragment" value="org.eclipse.swt.gtk.linux.x86"/> |
Grant Gayed | ad1eb83 | 2006-08-10 18:22:03 +0000 | [diff] [blame] | 10 | <property name="version.suffix" value="3.3.0"/> |
Veronika Irvine | 7316faf | 2005-10-28 16:34:11 +0000 | [diff] [blame] | 11 | <property name="full.name" value="${fragment}_${version.suffix}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 12 | <property name="temp.folder" value="${basedir}/temp.folder"/> |
| 13 | <property name="plugin.destination" value="${basedir}"/> |
| 14 | <property name="build.result.folder" value="${basedir}"/> |
| 15 | <property name="destination" value="${basedir}"/> |
| 16 | <property name="plugindir" value="../org.eclipse.swt"/> |
| 17 | <property name="bootclasspath" value=""/> |
sdimitro | 213cb6b | 2006-03-16 21:57:46 +0000 | [diff] [blame] | 18 | <property name="javacVerbose" value="false"/> |
Grant Gayed | 1d2591f | 2006-03-27 18:51:16 +0000 | [diff] [blame] | 19 | <property name="logExtension" value=".xml"/> |
Veronika Irvine | bac9c68 | 2006-05-03 19:13:48 +0000 | [diff] [blame] | 20 | <property name="javacSource" value="1.3"/> |
| 21 | <property name="javacTarget" value="1.2"/> |
| 22 | <path id="path_bootclasspath"> |
| 23 | <fileset dir="${java.home}/lib"> |
| 24 | <include name="*.jar"/> |
| 25 | </fileset> |
| 26 | </path> |
| 27 | <property name="bootclasspath" refid="path_bootclasspath"/> |
| 28 | <condition property="bundleBootClasspath" value="${CDC-1.0/Foundation-1.0}"> |
| 29 | <isset property="CDC-1.0/Foundation-1.0"/> |
| 30 | </condition> |
| 31 | <condition property="bundleBootClasspath" value="${J2SE-1.3}"> |
| 32 | <isset property="J2SE-1.3"/> |
| 33 | </condition> |
| 34 | <property name="bundleJavacSource" value="${javacSource}"/> |
| 35 | <property name="bundleJavacTarget" value="${javacTarget}"/> |
| 36 | <property name="bundleBootClasspath" value="${bootclasspath}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 37 | </target> |
| 38 | |
| 39 | <target name="properties" if="eclipse.running"> |
| 40 | <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 41 | </target> |
| 42 | |
| 43 | <target name="build.update.jar" depends="init"> |
| 44 | <delete dir="${temp.folder}"/> |
| 45 | <mkdir dir="${temp.folder}"/> |
| 46 | <antcall target="build.jars"/> |
| 47 | <antcall target="gather.bin.parts"> |
| 48 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 49 | </antcall> |
| 50 | <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/> |
| 51 | <delete dir="${temp.folder}"/> |
| 52 | </target> |
| 53 | |
| 54 | <target name="@dot" depends="init" unless="@dot" description="Create jar: @dot."> |
| 55 | <property name="destdir" value="${temp.folder}/@dot.bin"/> |
| 56 | <delete dir="${temp.folder}/@dot.bin"/> |
| 57 | <mkdir dir="${temp.folder}/@dot.bin"/> |
Veronika Irvine | bac9c68 | 2006-05-03 19:13:48 +0000 | [diff] [blame] | 58 | <javac destdir="${temp.folder}/@dot.bin" verbose="${javacVerbose}" debug="on" failonerror="no" classpath="${plugindir}/extra_jars/exceptions.jar" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}"> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 59 | <src path="${plugindir}/Eclipse SWT/cairo/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 60 | <src path="${plugindir}/Eclipse SWT/common/"/> |
| 61 | <src path="${plugindir}/Eclipse SWT/common_j2se/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 62 | <src path="${plugindir}/Eclipse SWT/emulated/bidi/"/> |
| 63 | <src path="${plugindir}/Eclipse SWT/emulated/coolbar/"/> |
| 64 | <src path="${plugindir}/Eclipse SWT/gtk/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 65 | <src path="${plugindir}/Eclipse SWT Accessibility/common/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 66 | <src path="${plugindir}/Eclipse SWT Accessibility/gtk/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 67 | <src path="${plugindir}/Eclipse SWT AWT/common/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 68 | <src path="${plugindir}/Eclipse SWT AWT/gtk/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 69 | <src path="${plugindir}/Eclipse SWT Browser/common/"/> |
Grant Gayed | f07e5b9 | 2007-01-25 18:28:11 +0000 | [diff] [blame] | 70 | <src path="${plugindir}/Eclipse SWT Mozilla/common/"/> |
| 71 | <src path="${plugindir}/Eclipse SWT Mozilla/gtk/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 72 | <src path="${plugindir}/Eclipse SWT Custom Widgets/common/"/> |
| 73 | <src path="${plugindir}/Eclipse SWT Drag and Drop/common/"/> |
| 74 | <src path="${plugindir}/Eclipse SWT Drag and Drop/gtk/"/> |
Billy Biggs | d956a3d | 2005-09-24 03:28:59 +0000 | [diff] [blame] | 75 | <src path="${plugindir}/Eclipse SWT OpenGL/gtk/"/> |
| 76 | <src path="${plugindir}/Eclipse SWT OpenGL/glx/"/> |
| 77 | <src path="${plugindir}/Eclipse SWT OpenGL/common/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 78 | <src path="${plugindir}/Eclipse SWT PI/cairo/"/> |
| 79 | <src path="${plugindir}/Eclipse SWT PI/common/"/> |
| 80 | <src path="${plugindir}/Eclipse SWT PI/common_j2se/"/> |
| 81 | <src path="${plugindir}/Eclipse SWT PI/gtk/"/> |
| 82 | <src path="${plugindir}/Eclipse SWT Mozilla/common/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 83 | <src path="${plugindir}/Eclipse SWT Mozilla/gtk/"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 84 | <src path="${plugindir}/Eclipse SWT Printing/common/"/> |
| 85 | <src path="${plugindir}/Eclipse SWT Printing/gtk/"/> |
| 86 | <src path="${plugindir}/Eclipse SWT Program/cde/"/> |
| 87 | <src path="${plugindir}/Eclipse SWT Program/common/"/> |
| 88 | <src path="${plugindir}/Eclipse SWT Program/gnome/"/> |
| 89 | <src path="${plugindir}/Eclipse SWT Program/gtk/"/> |
Silenio Quarti | f5005b4 | 2006-04-26 14:58:10 +0000 | [diff] [blame] | 90 | <src path="${plugindir}/Eclipse SWT Theme/gtk/"/> |
Grant Gayed | 1d2591f | 2006-03-27 18:51:16 +0000 | [diff] [blame] | 91 | <compilerarg line="-log '${temp.folder}'/@dot.bin${logExtension}" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
Grant Gayed | edc9178 | 2007-01-12 20:53:36 +0000 | [diff] [blame] | 92 | <compilerarg line="${compilerArg}" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 93 | </javac> |
| 94 | <property name="includes" value=""/> |
| 95 | <property name="excludes" value="**/*.java,**/library/,**/package.htm*"/> |
| 96 | <copy todir="${temp.folder}/@dot.bin"> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 97 | <fileset dir="${plugindir}/Eclipse SWT/cairo/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 98 | <fileset dir="${plugindir}/Eclipse SWT/common/" includes="${includes}" excludes="${excludes}"/> |
| 99 | <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 100 | <fileset dir="${plugindir}/Eclipse SWT/emulated/bidi/" includes="${includes}" excludes="${excludes}"/> |
| 101 | <fileset dir="${plugindir}/Eclipse SWT/emulated/coolbar/" includes="${includes}" excludes="${excludes}"/> |
| 102 | <fileset dir="${plugindir}/Eclipse SWT/gtk/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 103 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 104 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/gtk/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 105 | <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 106 | <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 107 | <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="${includes}" excludes="${excludes}"/> |
Grant Gayed | f07e5b9 | 2007-01-25 18:28:11 +0000 | [diff] [blame] | 108 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="${includes}" excludes="${excludes}"/> |
| 109 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 110 | <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="${includes}" excludes="${excludes}"/> |
| 111 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="${includes}" excludes="${excludes}"/> |
| 112 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/gtk/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 113 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 114 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="${includes}" excludes="${excludes}"/> |
Billy Biggs | d956a3d | 2005-09-24 03:28:59 +0000 | [diff] [blame] | 115 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/gtk/" includes="${includes}" excludes="${excludes}"/> |
| 116 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/" includes="${includes}" excludes="${excludes}"/> |
| 117 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="${includes}" excludes="${excludes}"/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 118 | <fileset dir="${plugindir}/Eclipse SWT PI/cairo/" includes="${includes}" excludes="${excludes}"/> |
| 119 | <fileset dir="${plugindir}/Eclipse SWT PI/common/" includes="${includes}" excludes="${excludes}"/> |
| 120 | <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="${includes}" excludes="${excludes}"/> |
| 121 | <fileset dir="${plugindir}/Eclipse SWT PI/gtk/" includes="${includes}" excludes="${excludes}"/> |
| 122 | <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="${includes}" excludes="${excludes}"/> |
| 123 | <fileset dir="${plugindir}/Eclipse SWT Printing/gtk/" includes="${includes}" excludes="${excludes}"/> |
| 124 | <fileset dir="${plugindir}/Eclipse SWT Program/cde/" includes="${includes}" excludes="${excludes}"/> |
| 125 | <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="${includes}" excludes="${excludes}"/> |
| 126 | <fileset dir="${plugindir}/Eclipse SWT Program/gnome/" includes="${includes}" excludes="${excludes}"/> |
| 127 | <fileset dir="${plugindir}/Eclipse SWT Program/gtk/" includes="${includes}" excludes="${excludes}"/> |
Silenio Quarti | f5005b4 | 2006-04-26 14:58:10 +0000 | [diff] [blame] | 128 | <fileset dir="${plugindir}/Eclipse SWT Theme/gtk/" includes="${includes}" excludes="${excludes}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 129 | </copy> |
| 130 | |
| 131 | <mkdir dir="${build.result.folder}/@dot"/> |
| 132 | <copy todir="${build.result.folder}/@dot" failonerror="true"> |
| 133 | <fileset dir="${temp.folder}/@dot.bin"/> |
| 134 | </copy> |
| 135 | <!-- prepare a jar file solely for the download target --> |
| 136 | <jar jarfile="${build.result.folder}/swt.jar" basedir="${temp.folder}/@dot.bin"/> |
| 137 | <delete dir="${temp.folder}/@dot.bin"/> |
| 138 | </target> |
| 139 | |
| 140 | <target name="build.jars" depends="init"> |
| 141 | <available property="@dot" file="${build.result.folder}/@dot"/> |
| 142 | <antcall target="@dot"/> |
| 143 | </target> |
| 144 | |
Billy Biggs | d5d1b2d | 2005-11-18 04:56:26 +0000 | [diff] [blame] | 145 | <target name="build.cfiles" depends="init"> |
| 146 | <mkdir dir="${build.result.folder}/library"/> |
| 147 | <copy todir="${build.result.folder}/library"> |
| 148 | <fileset dir="${plugindir}/Eclipse SWT/common/library"/> |
| 149 | <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/library"/> |
| 150 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/library"/> |
| 151 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/library"/> |
| 152 | <fileset dir="${plugindir}/Eclipse SWT PI/cairo/library"/> |
| 153 | <fileset dir="${plugindir}/Eclipse SWT PI/gtk/library"/> |
| 154 | <fileset dir="${plugindir}/Eclipse SWT Program/cde/library"/> |
| 155 | <fileset dir="${plugindir}/Eclipse SWT Program/gnome/library"/> |
| 156 | </copy> |
| 157 | </target> |
| 158 | |
| 159 | <target name="build.jnilibs" depends="build.cfiles"> |
| 160 | <exec dir="${build.result.folder}/library" executable="sh"> |
| 161 | <env key="OUTPUT_DIR" value="${build.result.folder}"/> |
| 162 | <arg line="${build.result.folder}/library/build.sh"/> |
| 163 | <arg line="install"/> |
| 164 | </exec> |
| 165 | </target> |
| 166 | |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 167 | <target name="src.zip" depends="init" unless="src.zip"> |
| 168 | <mkdir dir="${build.result.folder}/"/> |
| 169 | <zip zipfile="${build.result.folder}/src.zip"> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 170 | <fileset dir="${plugindir}/Eclipse SWT/cairo/" includes="**/*.java" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 171 | <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/*.java" excludes=""/> |
| 172 | <fileset dir="${plugindir}/Eclipse SWT/common/library/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 173 | <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 174 | <fileset dir="${plugindir}/Eclipse SWT/emulated/bidi/" includes="**/*.java" excludes=""/> |
| 175 | <fileset dir="${plugindir}/Eclipse SWT/emulated/coolbar/" includes="**/*.java" excludes=""/> |
| 176 | <fileset dir="${plugindir}/Eclipse SWT/gtk/" includes="**/*.java" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 177 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 178 | <fileset dir="${plugindir}/Eclipse SWT Accessibility/gtk/" includes="**/*.java" excludes=""/> |
| 179 | <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="**/*.java" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 180 | <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/" includes="**/*.java" excludes=""/> |
Veronika Irvine | 977d606 | 2005-04-28 21:24:43 +0000 | [diff] [blame] | 181 | <fileset dir="${plugindir}/Eclipse SWT AWT/gtk/library/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 182 | <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/> |
Grant Gayed | f07e5b9 | 2007-01-25 18:28:11 +0000 | [diff] [blame] | 183 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="**/*.java" excludes=""/> |
| 184 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 185 | <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="**/*.java" excludes=""/> |
| 186 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="**/*.java" excludes=""/> |
| 187 | <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/gtk/" includes="**/*.java" excludes=""/> |
Veronika Irvine | ba8787c | 2005-06-20 21:32:54 +0000 | [diff] [blame] | 188 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 189 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/common/library/"/> |
| 190 | <fileset dir="${plugindir}/Eclipse SWT Mozilla/gtk/" includes="**/*.java" excludes=""/> |
Billy Biggs | d956a3d | 2005-09-24 03:28:59 +0000 | [diff] [blame] | 191 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/gtk/" includes="**/*.java" excludes=""/> |
| 192 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/" includes="**/*.java" excludes=""/> |
| 193 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/glx/library/"/> |
Billy Biggs | 6d3ce6c | 2005-11-09 20:59:15 +0000 | [diff] [blame] | 194 | <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="**/*.java" excludes=""/> |
Veronika Irvine | ba8787c | 2005-06-20 21:32:54 +0000 | [diff] [blame] | 195 | <fileset dir="${plugindir}/Eclipse SWT PI/cairo/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 196 | <fileset dir="${plugindir}/Eclipse SWT PI/cairo/library/"/> |
| 197 | <fileset dir="${plugindir}/Eclipse SWT PI/common/" includes="**/*.java" excludes=""/> |
| 198 | <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="**/*.java" excludes=""/> |
Grant Gayed | 6ef19e9 | 2007-02-07 19:51:37 +0000 | [diff] [blame^] | 199 | <fileset dir="${plugindir}/Eclipse SWT PI/common/library/"/> |
Veronika Irvine | ba8787c | 2005-06-20 21:32:54 +0000 | [diff] [blame] | 200 | <fileset dir="${plugindir}/Eclipse SWT PI/gtk/" includes="**/*.java" excludes=""/> |
Veronika Irvine | b325d7b | 2005-04-29 14:30:24 +0000 | [diff] [blame] | 201 | <fileset dir="${plugindir}/Eclipse SWT PI/gtk/library/"/> |
| 202 | <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="**/*.java" excludes=""/> |
| 203 | <fileset dir="${plugindir}/Eclipse SWT Printing/gtk/" includes="**/*.java" excludes=""/> |
| 204 | <fileset dir="${plugindir}/Eclipse SWT Program/cde/" includes="**/*.java" excludes=""/> |
| 205 | <fileset dir="${plugindir}/Eclipse SWT Program/cde/library/"/> |
| 206 | <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="**/*.java" excludes=""/> |
| 207 | <fileset dir="${plugindir}/Eclipse SWT Program/gnome/" includes="**/*.java" excludes=""/> |
| 208 | <fileset dir="${plugindir}/Eclipse SWT Program/gnome/library/"/> |
| 209 | <fileset dir="${plugindir}/Eclipse SWT Program/gtk/" includes="**/*.java" excludes=""/> |
Silenio Quarti | f5005b4 | 2006-04-26 14:58:10 +0000 | [diff] [blame] | 210 | <fileset dir="${plugindir}/Eclipse SWT Theme/gtk/" includes="**/*.java" excludes=""/> |
Veronika Irvine | 99e7d6f | 2005-06-17 14:41:43 +0000 | [diff] [blame] | 211 | <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="**/*.properties" excludes=""/> |
| 212 | <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/> |
Veronika Irvine | ba8787c | 2005-06-20 21:32:54 +0000 | [diff] [blame] | 213 | <fileset dir="${basedir}" includes="about.html,about_files/" excludes=""/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 214 | </zip> |
| 215 | </target> |
| 216 | |
| 217 | <target name="build.sources" depends="init"> |
| 218 | <available property="src.zip" file="${build.result.folder}/src.zip"/> |
| 219 | <antcall target="src.zip"/> |
| 220 | </target> |
| 221 | |
| 222 | <target name="build.zips" depends="init"> |
| 223 | </target> |
| 224 | |
| 225 | <target name="gather.sources" depends="init" if="destination.temp.folder"> |
| 226 | <mkdir dir="${destination.temp.folder}/${full.name}"/> |
| 227 | <copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/${full.name}/"/> |
| 228 | <copy todir="${destination.temp.folder}/${full.name}"> |
Veronika Irvine | 5100c93 | 2005-06-20 22:00:01 +0000 | [diff] [blame] | 229 | <fileset dir="${basedir}" includes="about.html"/> |
Veronika Irvine | 67802a3 | 2006-04-05 18:07:25 +0000 | [diff] [blame] | 230 | <fileset dir="${basedir}" includes="about_files/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 231 | </copy> |
| 232 | </target> |
| 233 | |
| 234 | <target name="gather.logs" depends="init" if="destination.temp.folder"> |
| 235 | <mkdir dir="${destination.temp.folder}/${full.name}"/> |
sdimitro | 213cb6b | 2006-03-16 21:57:46 +0000 | [diff] [blame] | 236 | <copy file="${temp.folder}/@dot.bin${logExtension}" todir="${destination.temp.folder}/${full.name}/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 237 | </target> |
| 238 | |
| 239 | <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> |
| 240 | <mkdir dir="${destination.temp.folder}/${full.name}"/> |
| 241 | <copy todir="${destination.temp.folder}/${full.name}" failonerror="true"> |
| 242 | <fileset dir="${build.result.folder}/@dot" includes="**"/> |
| 243 | </copy> |
| 244 | <copy todir="${destination.temp.folder}/${full.name}"> |
Veronika Irvine | 73e931a | 2006-03-28 21:50:10 +0000 | [diff] [blame] | 245 | <fileset dir="${basedir}" includes="fragment.properties,swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,libcairo-swt.so,META-INF/"/> |
Veronika Irvine | 5100c93 | 2005-06-20 22:00:01 +0000 | [diff] [blame] | 246 | <fileset dir="${basedir}" includes="about.html"/> |
Veronika Irvine | 67802a3 | 2006-04-05 18:07:25 +0000 | [diff] [blame] | 247 | <fileset dir="${basedir}" includes="about_files/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 248 | </copy> |
Veronika Irvine | 73e931a | 2006-03-28 21:50:10 +0000 | [diff] [blame] | 249 | <chmod perm="755" dir="${destination.temp.folder}/${full.name}" includes="swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,libcairo-swt.so" /> |
Veronika Irvine | 7316faf | 2005-10-28 16:34:11 +0000 | [diff] [blame] | 250 | <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 251 | </target> |
| 252 | |
| 253 | <target name="swtdownload" depends="init"> |
| 254 | <delete dir="${temp.folder}"/> |
| 255 | <mkdir dir="${temp.folder}/swtdownload/"/> |
| 256 | <antcall target="build.jars"/> |
Grant Gayed | a82a62f | 2006-12-11 22:34:55 +0000 | [diff] [blame] | 257 | <jar jarfile="${build.result.folder}/swt.jar" basedir="${basedir}" update="true" includes="swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,libXm.so.2"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 258 | <copy file="${build.result.folder}/swt.jar" todir="${temp.folder}/swtdownload"/> |
| 259 | <antcall target="build.sources"/> |
| 260 | <copy file="${build.result.folder}/src.zip" todir="${temp.folder}/swtdownload"/> |
Veronika Irvine | 583e111 | 2005-06-08 20:39:19 +0000 | [diff] [blame] | 261 | <copy file="${plugindir}/build/.project" todir="${temp.folder}/swtdownload"/> |
| 262 | <copy file="${plugindir}/build/.classpath" todir="${temp.folder}/swtdownload"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 263 | <copy todir="${temp.folder}/swtdownload"> |
Veronika Irvine | 5100c93 | 2005-06-20 22:00:01 +0000 | [diff] [blame] | 264 | <fileset dir="${basedir}" includes="about.html,about_files/"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 265 | </copy> |
Billy Biggs | b433bfc | 2005-11-24 21:41:31 +0000 | [diff] [blame] | 266 | <zip zipfile="${destination}/swt-${buildid}-${ws}-${os}-${arch}.zip"> |
Grant Gayed | 19dbf2e | 2006-12-21 20:01:48 +0000 | [diff] [blame] | 267 | <zipfileset dir="${temp.folder}/swtdownload/"/> |
Billy Biggs | b433bfc | 2005-11-24 21:41:31 +0000 | [diff] [blame] | 268 | </zip> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 269 | <delete dir="${temp.folder}"/> |
| 270 | </target> |
| 271 | |
| 272 | <target name="clean" depends="init"> |
| 273 | <delete dir="${build.result.folder}/@dot"/> |
| 274 | <delete file="${build.result.folder}/src.zip"/> |
| 275 | <delete file="${plugin.destination}/${full.name}.jar"/> |
| 276 | <delete file="${plugin.destination}/${full.name}.zip"/> |
| 277 | <delete dir="${temp.folder}"/> |
| 278 | </target> |
| 279 | |
| 280 | <target name="refresh" depends="init" if="eclipse.running"> |
| 281 | <eclipse.refreshLocal resource="${fragment}" depth="infinite"/> |
| 282 | </target> |
| 283 | |
| 284 | <target name="zip.plugin" depends="init"> |
| 285 | <delete dir="${temp.folder}"/> |
| 286 | <mkdir dir="${temp.folder}"/> |
| 287 | <antcall target="build.jars"/> |
| 288 | <antcall target="build.sources"/> |
| 289 | <antcall target="gather.bin.parts"> |
| 290 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 291 | </antcall> |
| 292 | <antcall target="gather.sources"> |
| 293 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 294 | </antcall> |
| 295 | <delete> |
sdimitro | 213cb6b | 2006-03-16 21:57:46 +0000 | [diff] [blame] | 296 | <fileset dir="${temp.folder}" includes="**/*.bin${logExtension}"/> |
Christophe Cornu | f7e6d92 | 2005-04-07 19:51:12 +0000 | [diff] [blame] | 297 | </delete> |
| 298 | <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/> |
| 299 | <delete dir="${temp.folder}"/> |
| 300 | </target> |
Grant Gayed | 6ef19e9 | 2007-02-07 19:51:37 +0000 | [diff] [blame^] | 301 | </project> |