Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 223 lines (160 sloc) 9.752 kb
a346f09 @xeolabs Project name in build
authored
1 <project name="SceneJS2.0.0" basedir="." default="package">
75ff145 @stepheneb Fixed crlf issue
stepheneb authored
2
8dfe3e3 @xeolabs Removed examples and utils for V0.9 API
authored
3 <property name="BUILD_MAJOR" value="2"/>
9e3adac @xeolabs V2.0 - http://scenejs.wikispaces.com/V2.0+Changes
authored
4 <property name="BUILD_MINOR" value="0"/>
75ff145 @stepheneb Fixed crlf issue
stepheneb authored
5 <property name="BUILD_ID" value="0"/>
6 <property name="PATCH_ID" value="0"/>
7
8 <property name="LIB_DIR" location="${basedir}/lib"/>
9 <property name="SRC_DIR" location="${basedir}/src"/>
10 <property name="SceneJS._JS_NAME" value="scenejs.js"/>
11 <property name="SceneJS._MIN_JS_NAME" value="scenejs.min.js"/>
12
13
14 <echo>************** Building SceneJS Version ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}.${PATCH_ID}</echo>
15
16 <property name="DIST_CONTAINER_DIR" location="${basedir}/dist"/>
17
18 <property name="SceneJS._NAME" value="scenejs-${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}.${PATCH_ID}"/>
19
20 <property name="SceneJS._LATEST_MIN_JS_NAME" value="scenejs-latest.min.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
21 <property name="EXTRACTED_DIST_DIR" location="${DIST_CONTAINER_DIR}/extracted/${SceneJS._NAME}"/>
22
23
24 <path id="yuicompressor.classpath">
25 <fileset dir="${LIB_DIR}">
26 <include name="**/yuicompressor-2.4.2.jar"/>
27 <include name="**/YUIAnt.jar"/>
28
29 </fileset>
30 </path>
31
32 <path id="sourcefiles">
33 <fileset dir="${basedir}" includes="resources/license_intro.txt"/>
34
35 <fileset dir="${SRC_DIR}" includes="scenejs/core/core.js"/>
b48928f @xeolabs Module refactorings
authored
36 <fileset dir="${SRC_DIR}" includes="scenejs/core/node.js"/>
9e3adac @xeolabs V2.0 - http://scenejs.wikispaces.com/V2.0+Changes
authored
37 <fileset dir="${SRC_DIR}" includes="scenejs/core/state.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
38 <fileset dir="${SRC_DIR}" includes="scenejs/core/service.js"/>
9fa7892 @xeolabs Multi-scene example showing Command API extensions
authored
39 <fileset dir="${SRC_DIR}" includes="scenejs/core/nodeSelector.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
40
41 <fileset dir="${SRC_DIR}" includes="scenejs/services/commandService.js"/>
42
43 <fileset dir="${SRC_DIR}" includes="scenejs/debug/debugModule.js"/>
44
45 <fileset dir="${SRC_DIR}" includes="scenejs/exceptions/exceptions.js"/>
46
47 <fileset dir="${SRC_DIR}" includes="scenejs/core/math.js"/>
48 <fileset dir="${SRC_DIR}" includes="scenejs/core/webgl.js"/>
49 <fileset dir="${SRC_DIR}" includes="scenejs/core/webgl-trace.js"/>
50
51 <fileset dir="${SRC_DIR}" includes="scenejs/events/eventsModule.js"/>
52
7cdbecc @xeolabs Fixed scene graph compilation for multiple canvases
authored
53 <fileset dir="${SRC_DIR}" includes="scenejs/compile/compileCfg.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
54 <fileset dir="${SRC_DIR}" includes="scenejs/compile/compileModule.js"/>
d0452c6 @xeolabs Fixed and simplified build script
authored
55
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
56 <fileset dir="${SRC_DIR}" includes="scenejs/logging/loggingModule.js"/>
57
58 <fileset dir="${SRC_DIR}" includes="scenejs/errors/errorsModule.js"/>
59
91737a4 @xeolabs Tidied layer node
authored
60 <fileset dir="${SRC_DIR}" includes="scenejs/layers/layer.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
61
fe31b57 @xeolabs Project name in build
authored
62 <fileset dir="${SRC_DIR}" includes="scenejs/library/library.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
63
64 <fileset dir="${SRC_DIR}" includes="scenejs/scene/scene.js"/>
65
e524b90 @xeolabs Preparation for 3D pick
authored
66 <fileset dir="${SRC_DIR}" includes="scenejs/drawList/pickBuffer.js"/>
fe31b57 @xeolabs Project name in build
authored
67 <fileset dir="${SRC_DIR}" includes="scenejs/drawList/drawList.js"/>
57e53bc @xeolabs Tidied up examples
authored
68
f5fac39 @xeolabs WebGL call caching - waaay more speed
authored
69 <fileset dir="${SRC_DIR}" includes="scenejs/drawList/drawListRenderer.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
70
71 <fileset dir="${SRC_DIR}" includes="scenejs/renderer/renderer.js"/>
72
73 <fileset dir="${SRC_DIR}" includes="scenejs/flags/flagsModule.js"/>
57e53bc @xeolabs Tidied up examples
authored
74
4a4a54d @xeolabs Added "tag" node, updated texture layers demo, changed picking to use "n...
authored
75 <fileset dir="${SRC_DIR}" includes="scenejs/tag/tagModule.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
76
b89aedf @xeolabs Added getStatus method to scene node
authored
77 <fileset dir="${SRC_DIR}" includes="scenejs/status/sceneStatusModule.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
78
79 <fileset dir="${SRC_DIR}" includes="scenejs/geometry/geometry.js"/>
80 <fileset dir="${SRC_DIR}" includes="scenejs/geometry/objects/teapot.js"/>
81 <fileset dir="${SRC_DIR}" includes="scenejs/geometry/objects/box.js"/>
82 <fileset dir="${SRC_DIR}" includes="scenejs/geometry/objects/sphere.js"/>
83 <fileset dir="${SRC_DIR}" includes="scenejs/geometry/objects/quad.js"/>
84 <fileset dir="${SRC_DIR}" includes="scenejs/geometry/objects/disk.js"/>
85
86 <fileset dir="${SRC_DIR}" includes="scenejs/text/vectorTextModule.js"/>
87 <fileset dir="${SRC_DIR}" includes="scenejs/text/bitmapTextModule.js"/>
88 <fileset dir="${SRC_DIR}" includes="scenejs/text/text.js"/>
89
9fa7892 @xeolabs Multi-scene example showing Command API extensions
authored
90 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/modelTransformModule.js"/>
91 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/rotate.js"/>
92 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/translate.js"/>
93 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/scale.js"/>
94 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/matrix.js"/>
95 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/quaternion.js"/>
96 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/viewTransformModule.js"/>
97 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/lookAt.js"/>
98 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/stationary.js"/>
99 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/billboard.js"/>
100 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/inverse.js"/>
101 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/projectionModule.js"/>
102 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/camera.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
103
9e3adac @xeolabs V2.0 - http://scenejs.wikispaces.com/V2.0+Changes
authored
104 <!-- Stripped down provisional modelling matrix -->
fe31b57 @xeolabs Project name in build
authored
105 <fileset dir="${SRC_DIR}" includes="scenejs/transformation/xform.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
106
9e3adac @xeolabs V2.0 - http://scenejs.wikispaces.com/V2.0+Changes
authored
107 <fileset dir="${SRC_DIR}" includes="scenejs/lighting/light.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
108 <fileset dir="${SRC_DIR}" includes="scenejs/material/material.js"/>
109 <fileset dir="${SRC_DIR}" includes="scenejs/colortrans/colortrans.js"/>
57e53bc @xeolabs Tidied up examples
authored
110 <fileset dir="${SRC_DIR}" includes="scenejs/texture/texture.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
111 <fileset dir="${SRC_DIR}" includes="scenejs/clip/clip.js"/>
112
113 <fileset dir="${SRC_DIR}" includes="scenejs/morphGeometry/morphGeometry.js"/>
57e53bc @xeolabs Tidied up examples
authored
114
4a4a54d @xeolabs Added "tag" node, updated texture layers demo, changed picking to use "n...
authored
115 <fileset dir="${SRC_DIR}" includes="scenejs/name/nameModule.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
116 <fileset dir="${SRC_DIR}" includes="scenejs/layer/layer.js"/>
117 <fileset dir="${SRC_DIR}" includes="scenejs/layer/layerModule.js"/>
118
64803eb @xeolabs Added video textures
authored
119 <fileset dir="${SRC_DIR}" includes="scenejs/video/video.js"/>
57e53bc @xeolabs Tidied up examples
authored
120
121 <fileset dir="${SRC_DIR}" includes="scenejs/frameBuf/frameBuf.js"/>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
122
d33a244 @xeolabs Partially complete changes for V0.9 - multiple scene graph and custom sh...
authored
123 <fileset dir="${SRC_DIR}" includes="scenejs/shader/shader.js"/>
a9ae930 @xeolabs Renamed "shaderVars" node to "shaderParams"
authored
124 <fileset dir="${SRC_DIR}" includes="scenejs/shader/shaderParams.js"/>
d33a244 @xeolabs Partially complete changes for V0.9 - multiple scene graph and custom sh...
authored
125
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
126 <fileset dir="${SRC_DIR}" includes="scenejs/node-events/nodeEventsModule.js"/>
127 </path>
128
129 <target name="all" depends="archive"/>
130
131
132 <target name="archive" depends="package">
d0452c6 @xeolabs Fixed and simplified build script
authored
133 <tar destfile="${DIST_CONTAINER_DIR}/${SceneJS._NAME}.tar.gz"
134 basedir="${DIST_CONTAINER_DIR}/extracted"
135 compression="gzip"/>
136
137 <zip destfile="${DIST_CONTAINER_DIR}/${SceneJS._NAME}.zip" basedir="${DIST_CONTAINER_DIR}/extracted"/>
138
139 </target>
140
141 <!-- Create compressed javascript lib -->
142
143 <target name="package"
e6e6439 @xeolabs Fixed pick optimisation for canvas snapshot in FF 5.0
authored
144 depends="package-lib, package-index, package-examples">
d0452c6 @xeolabs Fixed and simplified build script
authored
145 </target>
146
147 <target name="package-lib"
e6e6439 @xeolabs Fixed pick optimisation for canvas snapshot in FF 5.0
authored
148 depends="assemble-libs">
d0452c6 @xeolabs Fixed and simplified build script
authored
149
150
151 <!-- Compress JS file list -->
152
153 <mkdir dir="${EXTRACTED_DIST_DIR}/temp"/>
154 <taskdef name="yuicompress" classname="com.yahoo.platform.yui.compressor.YUICompressTask">
155 <classpath>
156 <path refid="yuicompressor.classpath"/>
157 </classpath>
158 </taskdef>
159 <yuicompress linebreak="300" warn="false" munge="no" preserveallsemicolons="true"
160 outputfolder="${EXTRACTED_DIST_DIR}/temp">
161 <fileset dir="${EXTRACTED_DIST_DIR}/lib/">
162 <include name="${EXTRACTED_DIST_DIR}/lib/${SceneJS._JS_NAME}"/>
163 </fileset>
164 </yuicompress>
165 <concat fixlastline="yes" destfile="${EXTRACTED_DIST_DIR}/lib/${SceneJS._MIN_JS_NAME}">
166 <path id="sourcefiles">
167 <fileset dir="${basedir}" includes="resources/license_intro.txt"/>
168 <fileset dir="${EXTRACTED_DIST_DIR}/temp/" includes="${SceneJS._JS_NAME}"/>
169 </path>
170 </concat>
171
172 <!-- Delete temp file -->
173
174 <delete includeemptydirs="true">
175 <fileset dir="${EXTRACTED_DIST_DIR}/temp/" includes="**" defaultexcludes="false"/>
176 </delete>
177 </target>
178
179 <target name="assemble-libs" depends="create-dist-directories">
180 <concat fixlastline="yes" destfile="${EXTRACTED_DIST_DIR}/lib/${SceneJS._JS_NAME}">
181 <path refid="sourcefiles"/>
182 </concat>
183 </target>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
184
d0452c6 @xeolabs Fixed and simplified build script
authored
185 <target name="package-index">
186 <echo file="resources/version.txt" append="false">V${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID}.${PATCH_ID}
187 </echo>
188 <concat fixlastline="yes" destfile="${EXTRACTED_DIST_DIR}/examples/index.html">
189 <filelist dir="."
190 files="${basedir}/resources/example-index-p1.html, ${basedir}/resources/version.txt, ${basedir}/resources/example-index-p2.html"/>
191 </concat>
1ebe1a1 @stepheneb Merge remote branch 'origin/v0.8' into v0.8-disk-primitive
stepheneb authored
192
a33002d @stepheneb merged origin/master into v0.8.
stepheneb authored
193 </target>
194
d0452c6 @xeolabs Fixed and simplified build script
authored
195 <target name="package-examples" depends="package-lib, package-index">
196 <mkdir dir="${EXTRACTED_DIST_DIR}/examples/web"/>
197 <copy todir="${EXTRACTED_DIST_DIR}/examples/web">
198 <fileset dir="${basedir}/resources/web"/>
199 </copy>
200
201 <copy todir="${EXTRACTED_DIST_DIR}/examples">
202 <fileset dir="${SRC_DIR}/examples"/>
203 </copy>
204 </target>
205
206 <target name="clean-dist-directory" if="CLEAN_DIST">
207 <mkdir dir="${DIST_CONTAINER_DIR}"></mkdir>
208 <delete includeemptydirs="true">
209 <fileset dir="${DIST_CONTAINER_DIR}" includes="**" defaultexcludes="false"/>
210 </delete>
211 </target>
212
213 <target name="create-dist-directories">
214 <mkdir dir="${DIST_CONTAINER_DIR}"></mkdir>
215 <antcall target="clean-dist-directory"/>
216 <mkdir dir="${EXTRACTED_DIST_DIR}"/>
217 <mkdir dir="${EXTRACTED_DIST_DIR}/lib"/>
e6e6439 @xeolabs Fixed pick optimisation for canvas snapshot in FF 5.0
authored
218 <mkdir dir="${EXTRACTED_DIST_DIR}/examples"/>
d0452c6 @xeolabs Fixed and simplified build script
authored
219 </target>
75ff145 @stepheneb Fixed crlf issue
stepheneb authored
220
a33002d @stepheneb merged origin/master into v0.8.
stepheneb authored
221 </project>
22ffdbb @stepheneb remove duplicate <project> element, improve indentation
stepheneb authored
222
Something went wrong with that request. Please try again.