|
28 | 28 | <delete file="${basedir}/worldwindx.jar"/> |
29 | 29 | </target> |
30 | 30 |
|
31 | | - <target name="assemble" depends="assembleDebug, assembleRelease, assembleJavadoc, assembleSdkArchive" |
| 31 | + <target name="assemble" depends="assembleDebug, assembleRelease, assembleJavadoc, assembleExecutable, assembleSdkArchive" |
32 | 32 | description="Assembles JAR libraries for all build types and assembles the project documentation."/> |
33 | 33 |
|
34 | 34 | <!-- Targets for compiling Java sources and bundling JAR libraries. --> |
|
119 | 119 | </zip> |
120 | 120 | </target> |
121 | 121 |
|
| 122 | + <!-- Tasks for assembling the project Executable package. --> |
| 123 | + |
| 124 | + <target name="assembleExecutable" |
| 125 | + depends="assembleRelease, bundleExecutableLibraries, bundleExecutable" |
| 126 | + description="Assembles the Executable deployment package."/> |
| 127 | + |
| 128 | + <target name="bundleExecutableLibraries"> |
| 129 | + <mkdir dir="${executable.jar.dir}"/> |
| 130 | + <!-- World Wind library JAR files. --> |
| 131 | + <copy file="${worldwind.jar.dir}/release/worldwind.jar" tofile="${executable.jar.dir}/worldwind.jar"/> |
| 132 | + <copy file="${worldwind.jar.dir}/release/worldwindx.jar" tofile="${executable.jar.dir}/worldwindx.jar"/> |
| 133 | + <!-- JOGL and GlueGen library JAR files. --> |
| 134 | + <copy todir="${executable.jar.dir}"> |
| 135 | + <fileset dir="${basedir}"> |
| 136 | + <include name="jogl-all*.jar"/> |
| 137 | + <include name="gluegen-rt*.jar"/> |
| 138 | + <type type="file"/> |
| 139 | + </fileset> |
| 140 | + </copy> |
| 141 | + <!-- GDAL library JAR files. --> |
| 142 | + <copy file="${basedir}/gdal.jar" todir="${executable.jar.dir}"/> |
| 143 | + <jar jarfile="${executable.jar.dir}/gdaldata.jar"> |
| 144 | + <manifest> |
| 145 | + <attribute name="Permissions" value="all-permissions"/> |
| 146 | + </manifest> |
| 147 | + <fileset dir="${basedir}/lib-external/gdal/data"> |
| 148 | + <include name="**"/> |
| 149 | + <type type="file"/> |
| 150 | + </fileset> |
| 151 | + </jar> |
| 152 | + <!-- GDAL native library JAR files. --> |
| 153 | + <jar jarfile="${executable.jar.dir}/gdal-natives-macosx-universal.jar"> |
| 154 | + <manifest> |
| 155 | + <attribute name="Permissions" value="all-permissions"/> |
| 156 | + </manifest> |
| 157 | + <fileset dir="${basedir}/lib-external/gdal"> |
| 158 | + <include name="GDAL_License.txt"/> |
| 159 | + <include name="LizardTech_DSDK_License.txt"/> |
| 160 | + <include name="LizardTech_3rd_Party.txt"/> |
| 161 | + <include name="LizardTech_Redistributable.txt"/> |
| 162 | + <include name="libgdalalljni.jnilib"/> |
| 163 | + <type type="file"/> |
| 164 | + </fileset> |
| 165 | + </jar> |
| 166 | + <jar jarfile="${executable.jar.dir}/gdal-natives-windows-i586.jar"> |
| 167 | + <manifest> |
| 168 | + <attribute name="Permissions" value="all-permissions"/> |
| 169 | + </manifest> |
| 170 | + <fileset dir="${basedir}/lib-external/gdal"> |
| 171 | + <include name="GDAL_License.txt"/> |
| 172 | + <include name="LizardTech_DSDK_License.txt"/> |
| 173 | + <include name="LizardTech_3rd_Party.txt"/> |
| 174 | + <include name="LizardTech_Redistributable.txt"/> |
| 175 | + <include name="gdalminjni32.dll"/> |
| 176 | + <include name="gdalalljni32.dll"/> |
| 177 | + <include name="gdalalljni32.dll.manifest"/> |
| 178 | + <type type="file"/> |
| 179 | + </fileset> |
| 180 | + </jar> |
| 181 | + <jar jarfile="${executable.jar.dir}/gdal-natives-windows-amd64.jar"> |
| 182 | + <manifest> |
| 183 | + <attribute name="Permissions" value="all-permissions"/> |
| 184 | + </manifest> |
| 185 | + <fileset dir="${basedir}/lib-external/gdal"> |
| 186 | + <include name="GDAL_License.txt"/> |
| 187 | + <include name="LizardTech_DSDK_License.txt"/> |
| 188 | + <include name="LizardTech_3rd_Party.txt"/> |
| 189 | + <include name="LizardTech_Redistributable.txt"/> |
| 190 | + <include name="gdalminjni64.dll"/> |
| 191 | + <include name="gdalalljni64.dll"/> |
| 192 | + <include name="gdalalljni64.dll.manifest"/> |
| 193 | + <type type="file"/> |
| 194 | + </fileset> |
| 195 | + </jar> |
| 196 | + <jar jarfile="${executable.jar.dir}/gdal-natives-linux-i586.jar"> |
| 197 | + <manifest> |
| 198 | + <attribute name="Permissions" value="all-permissions"/> |
| 199 | + </manifest> |
| 200 | + <fileset dir="${basedir}/lib-external/gdal"> |
| 201 | + <include name="GDAL_License.txt"/> |
| 202 | + <include name="LizardTech_DSDK_License.txt"/> |
| 203 | + <include name="LizardTech_3rd_Party.txt"/> |
| 204 | + <include name="LizardTech_Redistributable.txt"/> |
| 205 | + <include name="libgdalalljni32.so"/> |
| 206 | + <type type="file"/> |
| 207 | + </fileset> |
| 208 | + </jar> |
| 209 | + <jar jarfile="${executable.jar.dir}/gdal-natives-linux-amd64.jar"> |
| 210 | + <manifest> |
| 211 | + <attribute name="Permissions" value="all-permissions"/> |
| 212 | + </manifest> |
| 213 | + <fileset dir="${basedir}/lib-external/gdal"> |
| 214 | + <include name="GDAL_License.txt"/> |
| 215 | + <include name="LizardTech_DSDK_License.txt"/> |
| 216 | + <include name="LizardTech_3rd_Party.txt"/> |
| 217 | + <include name="LizardTech_Redistributable.txt"/> |
| 218 | + <include name="libgdalalljni64.so"/> |
| 219 | + <type type="file"/> |
| 220 | + </fileset> |
| 221 | + </jar> |
| 222 | + </target> |
| 223 | + |
| 224 | + <target name="bundleExecutable"> |
| 225 | + <zip destfile="${executable.out.dir}/worldwind-executable.zip"> |
| 226 | + <fileset dir="${executable.jar.dir}"/> |
| 227 | + </zip> |
| 228 | + </target> |
| 229 | + |
122 | 230 | <!-- Targets for assembling the project SDK archive. --> |
123 | 231 |
|
124 | 232 | <target name="assembleSdkArchive" depends="assembleRelease"> |
|
0 commit comments