-
Notifications
You must be signed in to change notification settings - Fork 123
/
build.xml
72 lines (66 loc) · 3.17 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
<!--
* 3DCityDB-Web-Map-Client
* http://www.3dcitydb.org/
*
* Copyright 2015 - 2017
* Chair of Geoinformatics
* Technical University of Munich, Germany
* https://www.gis.bgu.tum.de/
*
* The 3DCityDB-Web-Map-Client is jointly developed with the following
* cooperation partners:
*
* virtualcitySYSTEMS GmbH, Berlin <http://www.virtualcitysystems.de/>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<project name="3DCityDB-Web-Map" default="all" basedir=".">
<!-- Setup -->
<property name="SRC_JS_DIR" value="js" description="JavaScript source folder" />
<property name="SRC_THIRDPARTY_DIR" value="thirdparty" description="Thirdparty source folder" />
<property name="SRC_THIRDPARTY_INTERSECTION" value="thirdparty/Intersection" description="Thirdparty Intersection API" />
<property name="DIST_DIR" value="build" description="Output folder for build targets" />
<property name="DIST_JS_DIR" value="${DIST_DIR}/unminified" description="Output folder for JavaScript files" />
<!-- File name for distribution -->
<property name="JS" value="${DIST_JS_DIR}/3dcitydb-web-map-api.js" />
<!-- delete the ${DIST_DIR} directory tree -->
<target name="clean">
<delete dir="${DIST_DIR}" />
</target>
<!-- Targets -->
<target name="js" depends="clean" description="Concatenate JavaScript source files and copy the additional required sources">
<echo message="Building ${JS}" />
<concat destfile="${JS}">
<fileset dir="${SRC_JS_DIR}" includes="3dcitydb-web-map.js" />
<fileset dir="${SRC_THIRDPARTY_INTERSECTION}" includes="IntersectionAPI.js" />
<fileset dir="${SRC_JS_DIR}" includes="CitydbKmlDataSource.js" />
<fileset dir="${SRC_JS_DIR}" includes="CitydbKmlHighlightingManager.js" />
<fileset dir="${SRC_JS_DIR}" includes="CitydbKmlLayer.js" />
<fileset dir="${SRC_JS_DIR}" includes="Cesium3DTilesDataLayer.js" />
<fileset dir="${SRC_JS_DIR}" includes="CitydbKmlTilingManager.js" />
<fileset dir="${SRC_JS_DIR}" includes="CitydbSceneTransforms.js" />
<fileset dir="${SRC_JS_DIR}" includes="CitydbUtil.js" />
<fileset dir="${SRC_JS_DIR}" includes="CitydbWebworker.js" />
</concat>
<copy todir="${DIST_JS_DIR}/Webworkers">
<fileset dir="${SRC_JS_DIR}/Webworkers" />
</copy>
<copy todir="${DIST_JS_DIR}/Cesium">
<fileset dir="${SRC_THIRDPARTY_DIR}/Cesium" />
</copy>
<echo message="${JS} built." />
</target>
<target name="all" depends="js">
<echo message="Build complete." />
</target>
</project>