forked from thargor6/JWildfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
140 lines (131 loc) · 6.26 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
<?xml version="1.0"?>
<project name="JWildfire" basedir="." default="packageDist">
<property name="release" value="3.21" />
<property name="dist.dir" location="build/dist" />
<property name="installer.dir" location="build/installer" />
<property name="build.dir" location="build/classes" />
<property name="lib.dir" location="lib" />
<property name="src.dir" location="src/" />
<property name="jwildfire.jar.name" value="build/j-wildfire.jar" />
<property name="launcher.jar.name" value="build/j-wildfire-launcher.jar" />
<property name="dist.name" value="build/j-wildfire-${release}.zip" />
<property name="dist.dll32.name" value="build/j-wildfire-dlls-win32-${release}.zip" />
<property name="dist.dll64.name" value="build/j-wildfire-dlls-win64-${release}.zip" />
<path id="build.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
<pathelement path="${build.dir}" />
</path>
<target name="init">
<delete dir="${build.dir}" />
<mkdir dir="${build.dir}" />
<delete dir="${dist.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile" depends="init"
description="Compile main source tree java files">
<javac destdir="${build.dir}"
target="1.7"
source="1.7"
debug="false"
deprecation="false"
encoding="ISO-8859-1"
optimize="true"
failonerror="true">
<src path="${src.dir}" />
<classpath refid="build.classpath" />
</javac>
</target>
<target name="packageJWildfireJar" depends="compile" description="Package the JWildfire jar file">
<jar destfile="${jwildfire.jar.name}">
<fileset dir="${build.dir}" includes="org/jwildfire/"/>
<fileset dir="${src.dir}" includes="com/**/*.properties"/>
<fileset dir="${src.dir}" includes="com/**/*.gif"/>
<fileset dir="${src.dir}" includes="org/jwildfire/**/*.xml"/>
<fileset dir="${src.dir}" includes="org/jwildfire/**/*.html"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/CHANGES.txt"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/GPU_RENDERING.txt"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/icons/*.gif"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/icons/new/*.png"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/icons/new/*.gif"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/welcomescreen/*.png"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/backgrounds/*.png"/>
<fileset dir="${src.dir}" includes="org/jwildfire/swing/welcomescreen/*.jpg"/>
<fileset dir="${src.dir}" includes="org/jwildfire/create/tina/io/scripts/*.jwfscript"/>
<fileset dir="${src.dir}" includes="org/jwildfire/create/tina/io/scripts/*.txt"/>
<fileset dir="${src.dir}" includes="org/jwildfire/create/tina/variation/mesh/*.obj"/>
<fileset dir="${src.dir}" includes="org/jwildfire/create/tina/variation/plot/*.txt"/>
<fileset dir="${build.dir}" includes="com/"/>
<fileset dir="${build.dir}" includes="odk/"/>
<fileset dir="${build.dir}" includes="net/goui/"/>
<zipfileset src="lib/jep-2.4.1.jar"/>
<zipfileset src="lib/sunflow.jar"/>
<zipfileset src="lib/janino.jar"/>
<zipfileset src="lib/JTattoo-1.6.10.jar"/>
<zipfileset src="lib/jl1.0.1.jar"/>
<zipfileset src="lib/jtransforms-2.4.jar"/>
<zipfileset src="lib/svgSalamander-tiny.jar"/>
<zipfileset src="lib/colt-1.2.0.jar"/>
<zipfileset src="lib/JOCL-0.1.9.jar"/>
<zipfileset src="lib/jsyntaxpane-0.9.5-b29.modified.jar"/>
<zipfileset src="lib/LeapJava.jar" includes="**/*.class"/>
<zipfileset src="lib/oobj-loader.jar" includes="**/*.class"/>
<manifest>
<attribute name="Main-Class" value="org.jwildfire.swing.JWildfire"/>
</manifest>
</jar>
</target>
<target name="packageLauncherJar" depends="compile" description="Package the Launcher jar file">
<jar destfile="${launcher.jar.name}">
<fileset dir="${build.dir}" includes="org/jwildfire/launcher/*"/>
<fileset dir="${build.dir}" includes="org/jwildfire/base/Tools.*"/>
<fileset dir="${build.dir}" includes="org/jwildfire/image/*"/>
<fileset dir="${build.dir}" includes="org/jwildfire/swing/ImagePanel.*"/>
<fileset dir="${src.dir}" includes="org/jwildfire/launcher/images/*.png"/>
<fileset dir="${src.dir}" includes="org/jwildfire/launcher/images/*.jpg"/>
<manifest>
<attribute name="Main-Class" value="org.jwildfire.launcher.Launcher"/>
</manifest>
</jar>
</target>
<target name="packageDist" depends="packageJWildfireJar, packageLauncherJar" description="Package the distributable zip file">
<copy todir="${dist.dir}/lib">
<fileset file="${jwildfire.jar.name}"/>
</copy>
<copy todir="${dist.dir}/">
<fileset file="${launcher.jar.name}"/>
</copy>
<!--
<copy todir="${dist.dir}/plugins32">
<fileset dir="${src.dir}/../plugins32" includes="*.dll"/>
</copy>
<copy todir="${dist.dir}/plugins64">
<fileset dir="${src.dir}/../plugins64" includes="*.dll"/>
</copy>
-->
<copy todir="${dist.dir}/">
<fileset dir="build/launcher" includes="start_linux.sh"/>
</copy>
<copy todir="${dist.dir}/">
<fileset file="src/org/jwildfire/swing/CHANGES.txt" />
<fileset file="src/org/jwildfire/swing/GPU_RENDERING.txt" />
<fileset file="README_LAUNCHING_JWILDFIRE.txt" />
<fileset file="README!!!.txt" />
<fileset file="README_SUPPORT.txt" />
<fileset file="README_LEAP_MOTION_SUPPORT.txt" />
<fileset file="Delphi/JWildfire.exe" />
</copy>
<copy todir="${dist.dir}/lib/x64">
<fileset file="${src.dir}/../lib/x64/*.txt" />
</copy>
<copy todir="${dist.dir}/lib/x86">
<fileset file="${src.dir}/../lib/x86/*.txt" />
</copy>
<zip destfile="${dist.name}">
<zipfileset dir="${dist.dir}/" excludes="start_*" />
<zipfileset filemode="755" dir="${dist.dir}/" includes="start_*" />
</zip>
</target>
<target name="packageAll" depends="packageDist" description="Package all"/>
</project>