blob: 3133fbae07e3afbdb66e5499ad6256e78ebdf1f3 [file] [log] [blame]
Christophe Cornuf7e6d922005-04-07 19:51:12 +00001<?xml version="1.0" encoding="UTF-8"?>
2<project name="org.eclipse.swt.win32.wce_ppc.arm" default="build.jars" basedir=".">
3
4 <target name="init" depends="properties">
5 <property name="ws" value="win32"/>
6 <property name="os" value="wce_ppc"/>
7 <property name="arch" value="arm"/>
8 <property name="fragment" value="org.eclipse.swt.${ws}.${os}.${arch}"/>
Veronika Irvine12b1d112005-10-28 16:23:09 +00009 <property name="version.suffix" value="3.1.0"/>
10 <property name="full.name" value="${fragment}_${version.suffix}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000011 <property name="temp.folder" value="${basedir}/temp.folder"/>
12 <property name="plugin.destination" value="${basedir}"/>
13 <property name="build.result.folder" value="${basedir}"/>
14 <property name="destination" value="${basedir}"/>
15 <property name="plugindir" value="../org.eclipse.swt"/>
16 <property name="bootclasspath" value=""/>
Veronika Irvine672510b2005-05-30 17:47:57 +000017 <property name="javacVerbose" value="true"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000018 </target>
19
20 <target name="properties" if="eclipse.running">
21 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
22 </target>
23
24 <target name="build.update.jar" depends="init">
25 <delete dir="${temp.folder}"/>
26 <mkdir dir="${temp.folder}"/>
27 <antcall target="build.jars"/>
28 <antcall target="gather.bin.parts">
29 <param name="destination.temp.folder" value="${temp.folder}/"/>
30 </antcall>
31 <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/>
32 <delete dir="${temp.folder}"/>
33 </target>
34
35 <target name="@dot" depends="init" unless="@dot" description="Create jar: @dot.">
36 <property name="destdir" value="${temp.folder}/@dot.bin"/>
37 <delete dir="${temp.folder}/@dot.bin"/>
38 <mkdir dir="${temp.folder}/@dot.bin"/>
Veronika Irvine672510b2005-05-30 17:47:57 +000039 <javac destdir="${temp.folder}/@dot.bin" verbose="${javacVerbose}" debug="on" failonerror="no" bootclasspath="${bootclasspath}" source="1.3" target="1.2">
Christophe Cornuf7e6d922005-04-07 19:51:12 +000040 <src path="${plugindir}/Eclipse SWT/win32/"/>
41 <src path="${plugindir}/Eclipse SWT/common/"/>
42 <src path="${plugindir}/Eclipse SWT/common_j2se/"/>
43 <src path="${plugindir}/Eclipse SWT PI/win32/"/>
44 <src path="${plugindir}/Eclipse SWT PI/common_j2se/"/>
45 <src path="${plugindir}/Eclipse SWT OLE Win32/win32/"/>
46 <src path="${plugindir}/Eclipse SWT Accessibility/win32/"/>
47 <src path="${plugindir}/Eclipse SWT Accessibility/common/"/>
48 <src path="${plugindir}/Eclipse SWT AWT/win32/"/>
49 <src path="${plugindir}/Eclipse SWT AWT/common/"/>
50 <src path="${plugindir}/Eclipse SWT Drag and Drop/win32/"/>
51 <src path="${plugindir}/Eclipse SWT Drag and Drop/common/"/>
Billy Biggsd956a3d2005-09-24 03:28:59 +000052 <src path="${plugindir}/Eclipse SWT OpenGL/win32/"/>
53 <src path="${plugindir}/Eclipse SWT OpenGL/common/"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000054 <src path="${plugindir}/Eclipse SWT Printing/win32/"/>
55 <src path="${plugindir}/Eclipse SWT Printing/common/"/>
56 <src path="${plugindir}/Eclipse SWT Program/win32/"/>
57 <src path="${plugindir}/Eclipse SWT Program/common/"/>
58 <src path="${plugindir}/Eclipse SWT Custom Widgets/common/"/>
59 <src path="${plugindir}/Eclipse SWT Browser/common/"/>
60 <src path="${plugindir}/Eclipse SWT Browser/win32/"/>
61 </javac>
62 <property name="includes" value=""/>
63 <property name="excludes" value="**/*.java,**/library/,**/package.htm*"/>
64 <copy todir="${temp.folder}/@dot.bin">
65 <fileset dir="${plugindir}/Eclipse SWT/win32/" includes="${includes}" excludes="${excludes}"/>
66 <fileset dir="${plugindir}/Eclipse SWT/common/" includes="${includes}" excludes="${excludes}"/>
67 <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="${includes}" excludes="${excludes}"/>
68 <fileset dir="${plugindir}/Eclipse SWT PI/win32/" includes="${includes}" excludes="${excludes}"/>
69 <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="${includes}" excludes="${excludes}"/>
70 <fileset dir="${plugindir}/Eclipse SWT OLE Win32/win32/" includes="${includes}" excludes="${excludes}"/>
71 <fileset dir="${plugindir}/Eclipse SWT Accessibility/win32/" includes="${includes}" excludes="${excludes}"/>
72 <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="${includes}" excludes="${excludes}"/>
73 <fileset dir="${plugindir}/Eclipse SWT AWT/win32/" includes="${includes}" excludes="${excludes}"/>
74 <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="${includes}" excludes="${excludes}"/>
75 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/win32/" includes="${includes}" excludes="${excludes}"/>
76 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="${includes}" excludes="${excludes}"/>
Billy Biggsd956a3d2005-09-24 03:28:59 +000077 <fileset dir="${plugindir}/Eclipse SWT OpenGL/win32/" includes="${includes}" excludes="${excludes}"/>
78 <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="${includes}" excludes="${excludes}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +000079 <fileset dir="${plugindir}/Eclipse SWT Printing/win32/" includes="${includes}" excludes="${excludes}"/>
80 <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="${includes}" excludes="${excludes}"/>
81 <fileset dir="${plugindir}/Eclipse SWT Program/win32/" includes="${includes}" excludes="${excludes}"/>
82 <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="${includes}" excludes="${excludes}"/>
83 <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="${includes}" excludes="${excludes}"/>
84 <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="${includes}" excludes="${excludes}"/>
85 <fileset dir="${plugindir}/Eclipse SWT Browser/win32/" includes="${includes}" excludes="${excludes}"/>
86 </copy>
87
88 <mkdir dir="${build.result.folder}/@dot"/>
89 <copy todir="${build.result.folder}/@dot" failonerror="true">
90 <fileset dir="${temp.folder}/@dot.bin"/>
91 </copy>
92 <!-- prepare a jar file solely for the download target -->
93 <jar jarfile="${build.result.folder}/swt.jar" basedir="${temp.folder}/@dot.bin"/>
94 <delete dir="${temp.folder}/@dot.bin"/>
95 </target>
96
97 <target name="build.jars" depends="init">
98 <available property="@dot" file="${build.result.folder}/@dot"/>
99 <antcall target="@dot"/>
100 </target>
101
102 <target name="src.zip" depends="init" unless="src.zip">
103 <mkdir dir="${build.result.folder}/"/>
104 <zip zipfile="${build.result.folder}/src.zip">
105 <fileset dir="${plugindir}/Eclipse SWT/win32/" includes="**/*.java" excludes=""/>
106 <fileset dir="${plugindir}/Eclipse SWT/common/library/"/>
107 <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/*.java" excludes=""/>
108 <fileset dir="${plugindir}/Eclipse SWT/common_j2se/" includes="**/*.java" excludes=""/>
109 <fileset dir="${plugindir}/Eclipse SWT PI/win32/" includes="**/*.java" excludes=""/>
110 <fileset dir="${plugindir}/Eclipse SWT AWT/win32/library/"/>
111 <fileset dir="${plugindir}/Eclipse SWT PI/win32/library/"/>
112 <fileset dir="${plugindir}/Eclipse SWT PI/common_j2se/" includes="**/*.java" excludes=""/>
113 <fileset dir="${plugindir}/Eclipse SWT OLE Win32/win32/" includes="**/*.java" excludes=""/>
114 <fileset dir="${plugindir}/Eclipse SWT Accessibility/win32/" includes="**/*.java" excludes=""/>
115 <fileset dir="${plugindir}/Eclipse SWT Accessibility/common/" includes="**/*.java" excludes=""/>
116 <fileset dir="${plugindir}/Eclipse SWT AWT/win32/" includes="**/*.java" excludes=""/>
117 <fileset dir="${plugindir}/Eclipse SWT AWT/common/" includes="**/*.java" excludes=""/>
118 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/win32/" includes="**/*.java" excludes=""/>
119 <fileset dir="${plugindir}/Eclipse SWT Drag and Drop/common/" includes="**/*.java" excludes=""/>
Billy Biggsd956a3d2005-09-24 03:28:59 +0000120 <fileset dir="${plugindir}/Eclipse SWT OpenGL/win32/" includes="**/*.java" excludes=""/>
121 <fileset dir="${plugindir}/Eclipse SWT OpenGL/win32/library/"/>
122 <fileset dir="${plugindir}/Eclipse SWT OpenGL/common/" includes="**/*.java" excludes=""/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000123 <fileset dir="${plugindir}/Eclipse SWT Printing/win32/" includes="**/*.java" excludes=""/>
124 <fileset dir="${plugindir}/Eclipse SWT Printing/common/" includes="**/*.java" excludes=""/>
125 <fileset dir="${plugindir}/Eclipse SWT Program/win32/" includes="**/*.java" excludes=""/>
126 <fileset dir="${plugindir}/Eclipse SWT Program/common/" includes="**/*.java" excludes=""/>
127 <fileset dir="${plugindir}/Eclipse SWT Custom Widgets/common/" includes="**/*.java" excludes=""/>
128 <fileset dir="${plugindir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/>
129 <fileset dir="${plugindir}/Eclipse SWT Browser/win32/" includes="**/*.java" excludes=""/>
Veronika Irvine99e7d6f2005-06-17 14:41:43 +0000130 <fileset dir="${plugindir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/>
Veronika Irvine6b5ef352005-06-17 21:37:34 +0000131 <fileset dir="${basedir}" includes="about.html,about_files/" excludes=""/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000132 </zip>
133 </target>
134
135 <target name="build.sources" depends="init">
136 <available property="src.zip" file="${build.result.folder}/src.zip"/>
137 <antcall target="src.zip"/>
138 </target>
139
140 <target name="build.zips" depends="init">
141 </target>
142
143 <target name="gather.sources" depends="init" if="destination.temp.folder">
144 <mkdir dir="${destination.temp.folder}/${full.name}"/>
145 <copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/${full.name}/"/>
146 <copy todir="${destination.temp.folder}/${full.name}">
147 <fileset dir="${basedir}" includes="about.html,about_files/"/>
148 </copy>
149 </target>
150
151 <target name="gather.logs" depends="init" if="destination.temp.folder">
152 <mkdir dir="${destination.temp.folder}/${full.name}"/>
153 <copy file="${temp.folder}/@dot.bin.log" todir="${destination.temp.folder}/${full.name}/"/>
154 </target>
155
156 <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
157 <mkdir dir="${destination.temp.folder}/${full.name}"/>
158 <copy todir="${destination.temp.folder}/${full.name}" failonerror="true">
159 <fileset dir="${build.result.folder}/@dot" includes="**"/>
160 </copy>
161 <copy todir="${destination.temp.folder}/${full.name}">
162 <fileset dir="${basedir}" includes="fragment.properties,about.html,about_files/,swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib,META-INF/"/>
163 </copy>
164 <chmod perm="755" dir="${destination.temp.folder}/${full.name}" includes="swt*.dll,libswt*.so,libswt*.sl,libswt*.a,libswt*.jnilib" />
Veronika Irvine12b1d112005-10-28 16:23:09 +0000165 <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/>
Christophe Cornuf7e6d922005-04-07 19:51:12 +0000166 </target>
167
168 <target name="swtdownload" depends="init">
169 <ant inheritAll="false" antfile="build_custom.xml" target="swtdownload">
170 <!-- pass on all variables set by the Eclipse build -->
171 <property name="buildid" value="${buildid}"/>
172 <property name="destination" value="${destination}"/>
173 </ant>
174 </target>
175
176 <target name="clean" depends="init">
177 <delete dir="${build.result.folder}/@dot"/>
178 <delete file="${build.result.folder}/src.zip"/>
179 <delete file="${plugin.destination}/${full.name}.jar"/>
180 <delete file="${plugin.destination}/${full.name}.zip"/>
181 <delete dir="${temp.folder}"/>
182 </target>
183
184 <target name="refresh" depends="init" if="eclipse.running">
185 <eclipse.refreshLocal resource="${fragment}" depth="infinite"/>
186 </target>
187
188 <target name="zip.plugin" depends="init">
189 <delete dir="${temp.folder}"/>
190 <mkdir dir="${temp.folder}"/>
191 <antcall target="build.jars"/>
192 <antcall target="build.sources"/>
193 <antcall target="gather.bin.parts">
194 <param name="destination.temp.folder" value="${temp.folder}/"/>
195 </antcall>
196 <antcall target="gather.sources">
197 <param name="destination.temp.folder" value="${temp.folder}/"/>
198 </antcall>
199 <delete>
200 <fileset dir="${temp.folder}" includes="**/*.bin.log"/>
201 </delete>
202 <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/>
203 <delete dir="${temp.folder}"/>
204 </target>
205</project>