blob: 0e932989a728daad3d00f54f54df20b2178056c8 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="dist-mac" default="build" basedir=".">
gwt.team.knorton8d3c2882008-03-05 06:18:35 +00002 <!-- TODO: Either split this into top-level mac-10.4 and mac-10.5 targets
3 or merge these back together with OOPHM. -->
4 <!-- distro doesn't use the top-level common.ant.xml, nor properties
5 defined there. -->
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00006 <property name="dist.platform" value="mac" />
gwt.team.knortonead7f7c2008-03-05 17:23:43 +00007 <import file="../common.ant.xml" />
gwt.team.knorton8d3c2882008-03-05 06:18:35 +00008 <condition property="dist.platform.detail" value="mac_10.5" else="mac_10.4">
9 <contains string="${os.version}" substring="10.5." />
10 </condition>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000011
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000012 <property name="project.distname_10.4" value="gwt-mac_10.4-${gwt.version}" />
13 <property name="project.distname_10.5" value="gwt-mac_10.5-${gwt.version}" />
14
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000015 <condition property="webkitrev" value="525-10.5" else="418.9">
16 <equals arg1="mac_10.5" arg2="${build.host.platform.detail}" />
17 </condition>
18 <property name="project_10_4.dist" location="${gwt.build.dist}/gwt-mac_10.4-${gwt.version}.tar.gz" />
19 <property name="project_10_5.dist" location="${gwt.build.dist}/gwt-mac_10.5-${gwt.version}.tar.gz" />
20
21
22 <target name="build" depends="filter, build_10.4, build_10.5"
23 description="Packages the distro">
24 </target>
25
26 <target name="build_10.4" depends="filter"
27 description="Packages the MacOS 10.4 distro">
gwt.team.scottb69965322006-12-19 23:58:19 +000028 <!-- TODO: figure out how to share most of this across platforms -->
29 <mkdir dir="${gwt.build.dist}" />
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000030 <gwt.tgz.cat destfile="${project_10_4.dist}">
gwt.team.scottb69965322006-12-19 23:58:19 +000031 <!-- jars -->
scottb@google.comeda21bf2008-03-05 20:18:53 +000032 <tarfileset file="${gwt.build.lib}/gwt-dev-${dist.platform}.jar" prefix="${project.distname_10.4}" />
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000033 <tarfileset file="${gwt.build.lib}/gwt-user.jar" prefix="${project.distname_10.4}" />
34 <tarfileset file="${gwt.build.lib}/gwt-servlet.jar" prefix="${project.distname_10.4}" />
35 <tarfileset file="${gwt.build.lib}/gwt-benchmark-viewer.jar" prefix="${project.distname_10.4}" />
gwt.team.scottb69965322006-12-19 23:58:19 +000036
37 <!-- jni libs-->
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000038 <tarfileset dir="${gwt.build.jni}/mac_10.4" prefix="${project.distname_10.4}" />
39 <tarfileset dir="${gwt.tools.lib}/eclipse" prefix="${project.distname_10.4}">
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000040 <include name="libswt-*carbon-3235.jnilib" />
41 <!-- User our modified version instead of this stock version -->
42 <exclude name="libswt-webkit-carbon-3235.jnilib" />
gwt.team.scottbb05c9002006-12-12 09:53:31 +000043 </tarfileset>
gwt.team.scottb69965322006-12-19 23:58:19 +000044
45 <!-- raw files -->
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000046 <tarfileset dir="${project.build}" prefix="${project.distname_10.4}" mode="755">
gwt.team.scottbb05c9002006-12-12 09:53:31 +000047 <patternset refid="chmod.executables" />
48 </tarfileset>
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000049 <tarfileset dir="${project.build}" prefix="${project.distname_10.4}">
gwt.team.scottb69965322006-12-19 23:58:19 +000050 <patternset refid="chmod.not.executables" />
51 </tarfileset>
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000052 <tarfileset dir="src" prefix="${project.distname_10.4}" mode="755">
gwt.team.scottb69965322006-12-19 23:58:19 +000053 <patternset refid="chmod.executables" />
54 </tarfileset>
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000055 <tarfileset dir="10.4" prefix="${project.distname_10.4}" mode="755">
56 <patternset refid="chmod.executables" />
57 </tarfileset>
58 <tarfileset dir="src" prefix="${project.distname_10.4}">
59 <patternset refid="chmod.not.executables" />
60 </tarfileset>
61 <tarfileset dir="10.4" prefix="${project.distname_10.4}">
gwt.team.scottb69965322006-12-19 23:58:19 +000062 <patternset refid="chmod.not.executables" />
63 </tarfileset>
64
65 <!-- doc -->
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000066 <tarfileset dir="${gwt.build.out}" prefix="${project.distname_10.4}">
gwt.team.scottb69965322006-12-19 23:58:19 +000067 <include name="doc" />
68 <include name="doc/html/**" />
69 <include name="doc/css/**" />
70 <include name="doc/javadoc/**" />
71 </tarfileset>
72
73 <!-- samples -->
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000074 <tarfileset dir="${gwt.build.out}" prefix="${project.distname_10.4}">
gwt.team.scottb69965322006-12-19 23:58:19 +000075 <include name="samples" />
76 <include name="samples/*" />
77 <include name="samples/*/src/**" />
78 <include name="samples/*/bin/**" />
79 <include name="samples/*/www/**" />
80 </tarfileset>
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000081 <tarfileset dir="${gwt.build.out}/samples-scripts/${dist.platform}" mode="755" prefix="${project.distname_10.4}/samples">
gwt.team.scottb69965322006-12-19 23:58:19 +000082 <include name="*/*-compile" />
83 <include name="*/*-shell" />
84 </tarfileset>
85
gwt.team.knortonead7f7c2008-03-05 17:23:43 +000086 <includetar src="${gwt.tools.redist}/webkit/WebKit-418.9.tar.gz" compression="gzip" prefix="${project.distname_10.4}" />
gwt.team.scottbb05c9002006-12-12 09:53:31 +000087 </gwt.tgz.cat>
gwt.team.scottb69965322006-12-19 23:58:19 +000088
89 <if>
90 <isset property="build.host.ismac" />
91 <then>
92 <!--
93 Untar distro into the staging directory. Must use GNU tar
94 to handle permissions and symlinks correctly.
95 -->
96 <mkdir dir="${gwt.build.staging}" />
97 <exec executable="tar">
98 <arg value="-xpzf" />
gwt.team.knorton8d3c2882008-03-05 06:18:35 +000099 <arg file="${project_10_4.dist}" />
100 <arg value="-C" />
101 <arg file="${gwt.build.staging}" />
102 </exec>
103 </then>
104 </if>
105 </target>
106
107 <target name="build_10.5" depends="filter"
108 description="Packages the MacOS 10.5 distro">
109 <!-- TODO: figure out how to share most of this across platforms -->
110 <mkdir dir="${gwt.build.dist}" />
111 <gwt.tgz.cat destfile="${project_10_5.dist}">
112 <!-- jars -->
scottb@google.comeda21bf2008-03-05 20:18:53 +0000113 <tarfileset file="${gwt.build.lib}/gwt-dev-${dist.platform}.jar" prefix="${project.distname_10.5}" />
gwt.team.knorton8d3c2882008-03-05 06:18:35 +0000114 <tarfileset file="${gwt.build.lib}/gwt-user.jar" prefix="${project.distname_10.5}" />
115 <tarfileset file="${gwt.build.lib}/gwt-servlet.jar" prefix="${project.distname_10.5}" />
116 <tarfileset file="${gwt.build.lib}/gwt-benchmark-viewer.jar" prefix="${project.distname_10.5}" />
117
118 <!-- jni libs-->
119 <tarfileset dir="${gwt.build.jni}/mac_10.5" prefix="${project.distname_10.5}" />
120 <tarfileset dir="${gwt.tools.lib}/eclipse" prefix="${project.distname_10.5}">
121 <include name="libswt-*carbon-3235.jnilib" />
122 <!-- User our modified version instead of this stock version -->
123 <exclude name="libswt-webkit-carbon-3235.jnilib" />
124 </tarfileset>
125
126 <!-- raw files -->
127 <tarfileset dir="${project.build}" prefix="${project.distname_10.5}" mode="755">
128 <patternset refid="chmod.executables" />
129 </tarfileset>
130 <tarfileset dir="${project.build}" prefix="${project.distname_10.5}">
131 <patternset refid="chmod.not.executables" />
132 </tarfileset>
133 <tarfileset dir="src" prefix="${project.distname_10.5}" mode="755">
134 <patternset refid="chmod.executables" />
135 </tarfileset>
136 <tarfileset dir="10.4" prefix="${project.distname_10.5}" mode="755">
137 <patternset refid="chmod.executables" />
138 </tarfileset>
139 <tarfileset dir="src" prefix="${project.distname_10.5}">
140 <patternset refid="chmod.not.executables" />
141 </tarfileset>
142 <tarfileset dir="10.4" prefix="${project.distname_10.5}">
143 <patternset refid="chmod.not.executables" />
144 </tarfileset>
145
146 <!-- doc -->
147 <tarfileset dir="${gwt.build.out}" prefix="${project.distname_10.5}">
148 <include name="doc" />
149 <include name="doc/html/**" />
150 <include name="doc/css/**" />
151 <include name="doc/javadoc/**" />
152 </tarfileset>
153
154 <!-- samples -->
155 <tarfileset dir="${gwt.build.out}" prefix="${project.distname_10.5}">
156 <include name="samples" />
157 <include name="samples/*" />
158 <include name="samples/*/src/**" />
159 <include name="samples/*/bin/**" />
160 <include name="samples/*/www/**" />
161 </tarfileset>
162 <tarfileset dir="${gwt.build.out}/samples-scripts/${dist.platform}" mode="755" prefix="${project.distname_10.5}/samples">
163 <include name="*/*-compile" />
164 <include name="*/*-shell" />
165 </tarfileset>
166
gwt.team.knortonead7f7c2008-03-05 17:23:43 +0000167 <includetar src="${gwt.tools.redist}/webkit/WebKit-525-10.5.tar.gz" compression="gzip" prefix="${project.distname_10.5}" />
gwt.team.knorton8d3c2882008-03-05 06:18:35 +0000168 </gwt.tgz.cat>
169
170 <if>
171 <isset property="build.host.ismac" />
172 <then>
173 <!--
174 Untar distro into the staging directory. Must use GNU tar
175 to handle permissions and symlinks correctly.
176 -->
177 <mkdir dir="${gwt.build.staging}" />
178 <exec executable="tar">
179 <arg value="-xpzf" />
180 <arg file="${project_10_5.dist}" />
gwt.team.scottb69965322006-12-19 23:58:19 +0000181 <arg value="-C" />
182 <arg file="${gwt.build.staging}" />
183 </exec>
184 </then>
185 </if>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000186 </target>
187</project>