-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
550 lines (498 loc) · 26.5 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (C) 2016 United States Government as represented by the Administrator of the
~ National Aeronautics and Space Administration.
~ All Rights Reserved.
-->
<project name="worldwind" default="build" basedir=".">
<description>
Build script for World Wind Java. Assembles and tests the World Wind source code, creates World Wind API
documentation, and bundles World Wind library JAR files.
</description>
<!-- Import the ANT build properties and project ANT macros. -->
<property file="build.properties"/>
<import file="build.macros.xml"/>
<!-- Main build targets. Provides generic targets that compile the Java sources, bundle JAR libraries, assemble API
documentation, test the Java sources, and clean up the build output. -->
<target name="build" depends="assemble, test"
description="Default build target. Assembles and tests this project."/>
<target name="clean" description="Deletes the build directory.">
<delete dir="${worldwind.build.dir}"/>
<delete file="${basedir}/worldwind.jar"/>
<delete file="${basedir}/worldwindx.jar"/>
</target>
<target name="assemble" depends="assembleDebug, assembleRelease, assembleJavadoc, assembleWebStart, assembleSdkArchive"
description="Assembles JAR libraries for all build types and assembles the project documentation."/>
<!-- Targets for compiling Java sources and bundling JAR libraries. -->
<target name="assembleDebug" depends="compileDebugSources, bundleDebug"
description="Assembles JAR libraries for the debug build type."/>
<target name="assembleRelease" depends="compileReleaseSources, bundleRelease"
description="Assembles JAR libraries for the release build type."/>
<target name="compileDebugSources">
<mkdir dir="${worldwind.classes.dir}/debug"/>
<compileJava srcdir="${worldwind.src.dir}" classdir="${worldwind.classes.dir}/debug" type="debug"
jdk="${worldwind.jdk}">
<pathelements>
<pathelement location="${basedir}/jogl-all.jar"/>
<pathelement location="${basedir}/gluegen-rt.jar"/>
<pathelement location="${basedir}/gdal.jar"/>
</pathelements>
</compileJava>
</target>
<target name="compileReleaseSources">
<mkdir dir="${worldwind.classes.dir}/release"/>
<compileJava srcdir="${worldwind.src.dir}" classdir="${worldwind.classes.dir}/release" type="release"
jdk="${worldwind.jdk}">
<pathelements>
<pathelement location="${basedir}/jogl-all.jar"/>
<pathelement location="${basedir}/gluegen-rt.jar"/>
<pathelement location="${basedir}/gdal.jar"/>
</pathelements>
</compileJava>
</target>
<target name="bundleDebug">
<mkdir dir="${worldwind.jar.dir}"/>
<bundleJarFiles srcdir="${worldwind.src.dir}" classdir="${worldwind.classes.dir}/debug"
destdir="${worldwind.jar.dir}" type="debug"/>
</target>
<target name="bundleRelease">
<mkdir dir="${worldwind.jar.dir}"/>
<bundleJarFiles srcdir="${worldwind.src.dir}" classdir="${worldwind.classes.dir}/release"
destdir="${worldwind.jar.dir}" type="release"/>
<copy file="${worldwind.jar.dir}/worldwind-release.jar" tofile="${basedir}/worldwind.jar"/>
<copy file="${worldwind.jar.dir}/worldwindx-release.jar" tofile="${basedir}/worldwindx.jar"/>
</target>
<!-- Targets for compiling and bundling the project documentation. -->
<target name="assembleJavadoc" depends="compileJavadocSources, bundleJavadoc"
description="Assembles the project documentation."/>
<target name="compileJavadocSources">
<mkdir dir="${worldwind.doc.dir}/javadoc"/>
<javadoc destdir="${worldwind.doc.dir}/javadoc"
overview="${worldwind.src.dir}/overview.html"
encoding="UTF-8"
windowtitle="NASA World Wind" doctitle="NASA World Wind" header="NASA World Wind"
splitindex="true" protected="true" nodeprecated="true" version="false" author="false" use="true"
maxmemory="1024m">
<packageset dir="${worldwind.src.dir}" defaultexcludes="yes">
<include name="gov/nasa/worldwind/**"/>
<include name="gov/nasa/worldwindx/**"/>
<exclude name="gov/nasa/worldwind/formats/**"/>
</packageset>
<classpath>
<pathelement location="jogl-all.jar"/>
<pathelement location="gluegen-rt.jar"/>
<pathelement location="gdal.jar"/>
</classpath>
<link href="http://download.oracle.com/javase/8/docs/api/"/>
<link href="https://jogamp.org/deployment/v2.1.5/javadoc/jogl/javadoc/"/>
</javadoc>
</target>
<target name="bundleJavadoc">
<mkdir dir="${worldwind.doc.dir}"/>
<zip destfile="${worldwind.doc.dir}/worldwind-javadoc.zip">
<fileset dir="${worldwind.doc.dir}/javadoc">
<include name="**"/>
<type type="file"/>
</fileset>
</zip>
</target>
<!-- Tasks for assembling the project Web Start package. -->
<target name="assembleWebStart"
depends="assembleRelease, compileWebStartConfiguration, bundleWebStartLibraries, signWebStartSources, bundleWebStart"
description="Assembles the Java Web Start deployment package."/>
<target name="compileWebStartConfiguration">
<mkdir dir="${webstart.jnlp.dir}"/>
<copy todir="${webstart.jnlp.dir}">
<fileset dir="${webstart.src.dir}">
<include name="*.jnlp"/>
<exclude name="JavaWebStartTemplate.jnlp"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="bundleWebStartLibraries">
<mkdir dir="${webstart.unsigned.dir}"/>
<!-- World Wind library JAR files. -->
<copy file="${worldwind.jar.dir}/worldwind-release.jar" tofile="${webstart.unsigned.dir}/worldwind.jar"/>
<copy file="${worldwind.jar.dir}/worldwindx-release.jar" tofile="${webstart.unsigned.dir}/worldwindx.jar"/>
<!-- JOGL and GlueGen library JAR files. -->
<copy todir="${webstart.unsigned.dir}">
<fileset dir="${basedir}">
<include name="jogl-all*.jar"/>
<include name="gluegen-rt*.jar"/>
<type type="file"/>
</fileset>
</copy>
<!-- WebView native library JAR files. -->
<jar jarfile="${webstart.unsigned.dir}/webview-natives-macosx.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}">
<include name="libwebview.jnilib"/>
<type type="file"/>
</fileset>
</jar>
<jar jarfile="${webstart.unsigned.dir}/webview-natives-windows.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}">
<include name="WebView32.dll"/>
<include name="WebView64.dll"/>
<type type="file"/>
</fileset>
</jar>
<!-- GDAL library JAR files. -->
<copy file="${basedir}/gdal.jar" todir="${webstart.unsigned.dir}"/>
<jar jarfile="${webstart.unsigned.dir}/gdaldata.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}/lib-external/gdal/data">
<include name="**"/>
<type type="file"/>
</fileset>
</jar>
<!-- GDAL native library JAR files. -->
<jar jarfile="${webstart.unsigned.dir}/gdal-natives-macosx-universal.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}/lib-external/gdal">
<include name="GDAL_License.txt"/>
<include name="LizardTech_DSDK_License.txt"/>
<include name="LizardTech_3rd_Party.txt"/>
<include name="LizardTech_Redistributable.txt"/>
<include name="libgdalalljni.jnilib"/>
<type type="file"/>
</fileset>
</jar>
<jar jarfile="${webstart.unsigned.dir}/gdal-natives-windows-i586.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}/lib-external/gdal">
<include name="GDAL_License.txt"/>
<include name="LizardTech_DSDK_License.txt"/>
<include name="LizardTech_3rd_Party.txt"/>
<include name="LizardTech_Redistributable.txt"/>
<include name="gdalminjni32.dll"/>
<include name="gdalalljni32.dll"/>
<include name="gdalalljni32.dll.manifest"/>
<type type="file"/>
</fileset>
</jar>
<jar jarfile="${webstart.unsigned.dir}/gdal-natives-windows-amd64.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}/lib-external/gdal">
<include name="GDAL_License.txt"/>
<include name="LizardTech_DSDK_License.txt"/>
<include name="LizardTech_3rd_Party.txt"/>
<include name="LizardTech_Redistributable.txt"/>
<include name="gdalminjni64.dll"/>
<include name="gdalalljni64.dll"/>
<include name="gdalalljni64.dll.manifest"/>
<type type="file"/>
</fileset>
</jar>
<jar jarfile="${webstart.unsigned.dir}/gdal-natives-linux-i586.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}/lib-external/gdal">
<include name="GDAL_License.txt"/>
<include name="LizardTech_DSDK_License.txt"/>
<include name="LizardTech_3rd_Party.txt"/>
<include name="LizardTech_Redistributable.txt"/>
<include name="libgdalalljni32.so"/>
<type type="file"/>
</fileset>
</jar>
<jar jarfile="${webstart.unsigned.dir}/gdal-natives-linux-amd64.jar">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
<fileset dir="${basedir}/lib-external/gdal">
<include name="GDAL_License.txt"/>
<include name="LizardTech_DSDK_License.txt"/>
<include name="LizardTech_3rd_Party.txt"/>
<include name="LizardTech_Redistributable.txt"/>
<include name="libgdalalljni64.so"/>
<type type="file"/>
</fileset>
</jar>
</target>
<target name="signWebStartSources" depends="keystoreAvailable" if="keystore.isAvailable">
<property file="${basedir}/keystore.properties"/>
<copy todir="${webstart.jar.dir}">
<fileset dir="${webstart.unsigned.dir}">
<include name="*.jar"/>
<type type="file"/>
</fileset>
</copy>
<signjar alias="${keyAlias}" keystore="${storeFile}" storepass="${storePassword}" tsaurl="${tsaurl}">
<path>
<fileset dir="${webstart.jar.dir}">
<include name="*.jar"/>
<type type="file"/>
</fileset>
</path>
</signjar>
</target>
<target name="bundleWebStart" depends="bundleWebStartSigned, bundleWebStartUnsigned"/>
<target name="bundleWebStartSigned" if="keystore.isAvailable">
<zip destfile="${webstart.out.dir}/worldwind-webstart.zip">
<fileset dir="${webstart.jar.dir}"/>
<fileset dir="${webstart.jnlp.dir}"/>
</zip>
</target>
<target name="bundleWebStartUnsigned">
<zip destfile="${webstart.out.dir}/worldwind-webstart-unsigned.zip">
<fileset dir="${webstart.unsigned.dir}"/>
<fileset dir="${webstart.jnlp.dir}"/>
</zip>
</target>
<target name="keystoreAvailable">
<available property="keystore.isAvailable" file="${basedir}/keystore.properties"/>
</target>
<!-- Targets for assembling the project SDK archive. -->
<target name="assembleSdkArchive" depends="assembleRelease">
<zip destfile="${worldwind.build.dir}/worldwind.zip">
<fileset dir="${basedir}">
<include name="**/*"/>
<exclude name="build/**"/>
<exclude name="classes/**"/>
<exclude name="testClasses/**"/>
<exclude name="keystore.properties"/>
<exclude name="keystore.tar"/>
<exclude name="wwstore"/>
<type type="file"/>
</fileset>
</zip>
</target>
<!-- Targets for testing the project sources. -->
<target name="test" depends="unitTest"
description="Runs all project tests. Exits with status code 1 if any test fails.">
<fail if="unitTest.failure" message="Unit tests FAILED" status="1"/>
</target>
<target name="unitTest" depends="assembleDebug, compileUnitTestSources, runUnitTest"/>
<target name="compileUnitTestSources">
<mkdir dir="${worldwind.classes.dir}/test"/>
<compileJava srcdir="${worldwind.test.dir}" classdir="${worldwind.classes.dir}/test" type="debug"
jdk="${worldwind.jdk}">
<pathelements>
<pathelement location="${worldwind.jar.dir}/worldwind-debug.jar"/>
<pathelement location="${worldwind.jar.dir}/worldwindx-debug.jar"/>
<pathelement location="${basedir}/jogl-all.jar"/>
<pathelement location="${basedir}/gluegen-rt.jar"/>
<pathelement location="${basedir}/gdal.jar"/>
<pathelement location="${basedir}/junit-4.5.jar"/>
</pathelements>
</compileJava>
</target>
<target name="runUnitTest">
<delete dir="${worldwind.test.results.dir}"/>
<mkdir dir="${worldwind.test.results.dir}"/>
<junit failureproperty="unitTest.failure"
fork="on"
forkmode="once"
maxmemory="1024m">
<classpath>
<pathelement location="${worldwind.classes.dir}/test"/>
<pathelement location="${worldwind.jar.dir}/worldwind-debug.jar"/>
<pathelement location="${worldwind.jar.dir}/worldwindx-debug.jar"/>
<pathelement location="${basedir}/jogl-all.jar"/>
<pathelement location="${basedir}/gluegen-rt.jar"/>
<pathelement location="${basedir}/gdal.jar"/>
<pathelement location="${basedir}/junit-4.5.jar"/>
</classpath>
<batchtest todir="${worldwind.test.results.dir}"
skipnontests="true">
<fileset dir="${worldwind.classes.dir}/test">
<include name="**/*"/>
</fileset>
</batchtest>
<formatter type="brief" usefile="no"/>
<formatter type="xml" usefile="yes"/>
</junit>
<junitreport todir="${worldwind.test.results.dir}">
<fileset dir="${worldwind.test.results.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report todir="${worldwind.test.results.dir}" format="noframes"/>
</junitreport>
</target>
<!-- Tasks for assembling the MIL-STD-2525 symbology package. Rasterizes MIL-STD-2525 SVG image files into PNG image
files. The maxwidth and height parameters control the PNG image dimensions, where the width varies depending on
the SVG image's aspect ratio. PNG files are written to the destination directory according to their relative
path in the source directory. -->
<target name="assembleMilStd2525" depends="assembleRelease, compileMilStd2525, bundleMilStd2525"
description="Assembles the MIL-STD-2525 symbology package."/>
<target name="compileMilStd2525">
<mkdir dir="${milstd2525.png.dir}"/>
<!-- Rasterize the MIL-STD-2525 SVG sources. Exclude empty directories in order to suppress erroneous error
messages from the Apache Batik Rasterizer. -->
<apply executable="java" dest="${milstd2525.png.dir}" failonerror="true">
<arg value="-jar"/>
<arg value="${basedir}/lib-external/batik/batik-rasterizer.jar"/>
<arg value="-m"/>
<arg value="image/png"/>
<arg value="-maxw"/>
<arg value="${milstd2525.png.width}"/>
<arg value="-h"/>
<arg value="${milstd2525.png.height}"/>
<arg value="-d"/>
<targetfile/>
<dirset dir="${milstd2525.src.dir}">
<exclude name="fills"/>
<exclude name="frames"/>
<exclude name="icons"/>
</dirset>
<mapper type="identity"/>
</apply>
<!-- The Forward Edge of Battle (FEBA, 2.X.2.4.2.1) image has a custom height of 16 pixels. -->
<apply executable="java" dest="${milstd2525.png.dir}" force="true" failonerror="true">
<arg value="-jar"/>
<arg value="${basedir}/lib-external/batik/batik-rasterizer.jar"/>
<arg value="-m"/>
<arg value="image/png"/>
<arg value="-maxw"/>
<arg value="${milstd2525.png.width}"/>
<arg value="-h"/>
<arg value="16"/>
<arg value="-d"/>
<targetfile/>
<fileset dir="${milstd2525.src.dir}">
<include name="**/g-g?dlf--------.svg"/>
<type type="file"/>
</fileset>
<mapper type="glob" from="*.svg" to="*.png"/>
</apply>
<!-- Trim the MIL-STD-2525 modifier images to remove transparent borders. -->
<apply executable="java" failonerror="true" parallel="true" maxparallel="100">
<arg value="-cp"/>
<arg value="${worldwind.classes.dir}/release"/>
<arg value="gov.nasa.worldwind.util.ImageTrimmer"/>
<fileset dir="${milstd2525.png.dir}">
<include name="modifiers/**/*"/>
<type type="file"/>
</fileset>
</apply>
</target>
<target name="bundleMilStd2525">
<mkdir dir="${milstd2525.out.dir}"/>
<zip destfile="${milstd2525.out.dir}/milstd2525-symbols.zip">
<fileset dir="${milstd2525.png.dir}"/>
</zip>
</target>
<!-- Helper tasks for bundling and unbundling the JOGL and GLueGen JAR files. Each Jar file is extracted to a folder
matching the filename without its suffix. These targets are used to modify JOGL and GlueGen Jar file manifests
in order to deploy these files from the World Wind Java Web Start site. -->
<target name="help.unpackJogl">
<property name="jogl.jarfiles.dir" location="jogl-jarfiles"/>
<mkdir dir="${jogl.jarfiles.dir}"/>
<unzip src="jogl-all.jar" dest="${jogl.jarfiles.dir}/jogl-all"/>
<unzip src="jogl-all-natives-macosx-universal.jar"
dest="${jogl.jarfiles.dir}/jogl-all-natives-macosx-universal"/>
<unzip src="jogl-all-natives-windows-i586.jar" dest="${jogl.jarfiles.dir}/jogl-all-natives-windows-i586"/>
<unzip src="jogl-all-natives-windows-amd64.jar" dest="${jogl.jarfiles.dir}/jogl-all-natives-windows-amd64"/>
<unzip src="jogl-all-natives-linux-i586.jar" dest="${jogl.jarfiles.dir}/jogl-all-natives-linux-i586"/>
<unzip src="jogl-all-natives-linux-amd64.jar" dest="${jogl.jarfiles.dir}/jogl-all-natives-linux-amd64"/>
<unzip src="gluegen-rt.jar" dest="${jogl.jarfiles.dir}/gluegen-rt"/>
<unzip src="gluegen-rt-natives-macosx-universal.jar"
dest="${jogl.jarfiles.dir}/gluegen-rt-natives-macosx-universal"/>
<unzip src="gluegen-rt-natives-windows-i586.jar" dest="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-i586"/>
<unzip src="gluegen-rt-natives-windows-amd64.jar" dest="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-amd64"/>
<unzip src="gluegen-rt-natives-linux-i586.jar" dest="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-i586"/>
<unzip src="gluegen-rt-natives-linux-amd64.jar" dest="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-amd64"/>
</target>
<target name="help.packJogl">
<property name="jogl.jarfiles.dir" location="jogl-jarfiles"/>
<jar destfile="${jogl.jarfiles.dir}/jogl-all.jar" basedir="${jogl.jarfiles.dir}/jogl-all" filesonly="true"
manifest="${jogl.jarfiles.dir}/jogl-all/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/jogl-all.jar" basedir="${jogl.jarfiles.dir}/jogl-all" filesonly="true"
manifest="${jogl.jarfiles.dir}/jogl-all/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/jogl-all-natives-macosx-universal.jar"
basedir="${jogl.jarfiles.dir}/jogl-all-natives-macosx-universal" filesonly="true"
manifest="${jogl.jarfiles.dir}/jogl-all-natives-macosx-universal/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/jogl-all-natives-windows-i586.jar"
basedir="${jogl.jarfiles.dir}/jogl-all-natives-windows-i586" filesonly="true"
manifest="${jogl.jarfiles.dir}/jogl-all-natives-windows-i586/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/jogl-all-natives-windows-amd64.jar"
basedir="${jogl.jarfiles.dir}/jogl-all-natives-windows-amd64" filesonly="true"
manifest="${jogl.jarfiles.dir}/jogl-all-natives-windows-amd64/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/jogl-all-natives-linux-i586.jar"
basedir="${jogl.jarfiles.dir}/jogl-all-natives-linux-i586" filesonly="true"
manifest="${jogl.jarfiles.dir}/jogl-all-natives-linux-i586/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/jogl-all-natives-linux-amd64.jar"
basedir="${jogl.jarfiles.dir}/jogl-all-natives-linux-amd64" filesonly="true"
manifest="${jogl.jarfiles.dir}/jogl-all-natives-linux-amd64/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/gluegen-rt.jar" basedir="${jogl.jarfiles.dir}/gluegen-rt"
manifest="${jogl.jarfiles.dir}/gluegen-rt/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/gluegen-rt-natives-macosx-universal.jar"
basedir="${jogl.jarfiles.dir}/gluegen-rt-natives-macosx-universal"
manifest="${jogl.jarfiles.dir}/gluegen-rt-natives-macosx-universal/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-i586.jar"
basedir="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-i586"
manifest="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-i586/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-amd64.jar"
basedir="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-amd64"
manifest="${jogl.jarfiles.dir}/gluegen-rt-natives-windows-amd64/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-i586.jar"
basedir="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-i586"
manifest="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-i586/META-INF/MANIFEST.MF"/>
<jar destfile="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-amd64.jar"
basedir="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-amd64"
manifest="${jogl.jarfiles.dir}/gluegen-rt-natives-linux-amd64/META-INF/MANIFEST.MF"/>
</target>
<!-- Helper tasks for bundling and unbundling the GDAL JAR file. These targets are used to modify the contents of
the GDAL JAR file, which are currently not under source control. -->
<target name="help.unpackGdal">
<property name="gdal.jarfile.dir" location="gdal-jar"/>
<mkdir dir="${gdal.jarfile.dir}"/>
<unzip src="gdal.jar" dest="${gdal.jarfile.dir}"/>
</target>
<target name="help.packGdal">
<property name="gdal.jarfile.dir" location="gdal-jar"/>
<delete file="gdal.jar"/>
<jar destfile="gdal.jar" basedir="${gdal.jarfile.dir}">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
</jar>
</target>
<!-- Helper tasks for bundling and unbundling the VPF symbols JAR file. These targets are used to modify the
contents of the VPF symbols JAR file, which are currently not under source control. -->
<target name="help.unpackVpf">
<property name="vpf.jarfile.dir" location="vpf-symbols-jar"/>
<mkdir dir="${vpf.jarfile.dir}"/>
<unzip src="vpf-symbols.jar" dest="${vpf.jarfile.dir}"/>
</target>
<target name="help.packVpf">
<property name="vpf.jarfile.dir" location="vpf-symbols-jar"/>
<delete file="vpf-symbols.jar"/>
<jar destfile="vpf-symbols.jar" basedir="${vpf.jarfile.dir}">
<manifest>
<attribute name="Permissions" value="all-permissions"/>
</manifest>
</jar>
</target>
<!-- Helper tasks for compiling and linking the WebView native library for the current platform. Output libraries
are placed in the World Wind project root folder and overwrite any existing files of the same name.
On Mac OS X this compiles the Objective-C sources under the folder 'lib-external/webview/macosx' into
'libwebview.jnilib', and requires that the XCode and Java development toolkits for Mac are installed.
On Windows this compiles the C and C++ sources under 'lib-external/webview/windows' into 'WebView32.dll' and
'WebView64.dll', and requires that the Microsoft Visual C++ build tools are avialable on the path. -->
<target name="help.assembleWebviewLibrary">
<exec os="Mac OS X" dir="${basedir}/lib-external/webview/macosx" executable="/bin/sh" failonerror="true">
<arg value="build.sh"/>
</exec>
<exec osfamily="Windows" dir="${basedir}/lib-external/webview/windows" executable="nmake" failonerror="true">
<arg value="clean"/>
<arg value="all"/>
</exec>
</target>
</project>