-
Notifications
You must be signed in to change notification settings - Fork 55
/
build.xml
178 lines (169 loc) · 8.97 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
<?xml version="1.0"?>
<project name="JWildfire" basedir="." default="packageAll">
<property name="release" value="8.50"/>
<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="res.dir" location="resources/"/>
<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.8"
source="1.8"
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="${res.dir}" includes="logback.xml"/>
<fileset dir="${res.dir}" includes="com/**/*.properties"/>
<fileset dir="${res.dir}" includes="com/**/*.gif"/>
<fileset dir="${res.dir}" includes="org/jwildfire/**/*.xml"/>
<fileset dir="${res.dir}" includes="org/jwildfire/**/*.html"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/CHANGES.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/OptiX_Denoiser.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/OIDN_Denoiser.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/icons/**/*.gif"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/icons/*.gif"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/icons/new/*.png"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/icons/new/*.gif"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/welcomescreen/*.png"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/backgrounds/*.png"/>
<fileset dir="${res.dir}" includes="org/jwildfire/swing/welcomescreen/*.jpg"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/io/scripts/*.jwfscript"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/io/scripts/*.ugr"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/io/scripts/*.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/variation/mesh/*.obj"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/variation/plot/*.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/variation/brush/*.png"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/variation/brush/*.pdf"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/variation/lsystems.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/variation/mesh/lsystems3D.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/variation/variation_costs.txt"/>
<fileset dir="${res.dir}" includes="org/jwildfire/create/tina/base/weightingfield/mb3dhm.jpg"/>
<fileset dir="${build.dir}" includes="csk/"/>
<fileset dir="${build.dir}" includes="com/"/>
<fileset dir="${build.dir}" includes="odk/"/>
<fileset dir="${build.dir}" includes="net/goui/"/>
<fileset dir="${build.dir}" includes="megamu/"/>
<fileset dir="${build.dir}" includes="js/"/>
<fileset dir="${build.dir}" includes="hehl/"/>
<fileset dir="${build.dir}" includes="fastnoise/"/>
<zipfileset src="lib/quickhull3d.1.4.jar"/>
<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/vecmath-1.5.1.jar"/>
<zipfileset src="lib/logback-classic-1.2.3.jar"/>
<zipfileset src="lib/logback-core-1.2.3.jar"/>
<zipfileset src="lib/slf4j-api-1.7.25.jar"/>
<zipfileset src="lib/commons-cli-1.4.jar"/>
<zipfileset src="lib/jcodec-0.2.6-SNAPSHOT.jar"/>
<zipfileset src="lib/jcodec-javase-0.2.6-SNAPSHOT.jar"/>
<zipfileset src="lib/LeapJava.jar" includes="**/*.class"/>
<zipfileset src="lib/oobj-loader.jar" includes="**/*.class"/>
<zipfileset src="lib/j-wildfire-lib.jar"/>
<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="${res.dir}" includes="org/jwildfire/launcher/images/*.png"/>
<fileset dir="${res.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="resources/org/jwildfire/swing/CHANGES.txt"/>
<fileset file="resources/org/jwildfire/swing/OptiX_Denoiser.txt"/>
<fileset file="resources/org/jwildfire/swing/OIDN_Denoiser.txt"/>
<fileset file="README_LAUNCHING_JWILDFIRE.txt"/>
<fileset file="README!!!.txt"/>
<fileset file="README_LINUX.txt"/>
<fileset file="README_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>
<copy todir="${dist.dir}/lib/Denoiser">
<fileset file="${src.dir}/../Denoiser/**"/>
</copy>
<copy todir="${dist.dir}/lib/FARenderJWF">
<fileset file="${src.dir}/../FARenderJWF/**"/>
</copy>
<copy todir="${dist.dir}/lib/">
<fileset file="${src.dir}/../lib/libSecurityScopedBookmarkLibrary.dylib"/>
</copy>
<copy todir="${dist.dir}/lib">
<fileset file="${src.dir}/../manual/build/docs/asciidocPdf/JWildfire_manual.pdf"/>
</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>