forked from Izza11/shader-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
70 lines (54 loc) · 2.11 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
<?xml version="1.0"?>
<project name="Shader Mode for Processing" default="build">
<!-- path to the main processing repo -->
<property name="processing.dir" value="../processing" />
<property name="mode.jar.path" value="mode/ShaderMode.jar" />
<property name="mode.dist.path" value="release/ShaderMode.zip" />
<property name="tools.jar.path" value="mode/tools.jar" />
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="${mode.jar.path}" />
</target>
<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="${processing.dir}/core/library/core.jar" />
</condition>
<fail unless="core-built"
message="Please build the core library first and make sure it sits in ${processing.dir}/core/library/core.jar" />
<mkdir dir="bin" />
<!-- env used to set classpath below -->
<property environment="env" />
<javac source="1.8"
target="1.8"
destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="${processing.dir}/core/library/core.jar;
${processing.dir}/java/mode/JavaMode.jar;
${processing.dir}/java/mode/org.eclipse.core.runtime.jar;
${processing.dir}/app/pde.jar"
debug="on">
<src path="src" />
</javac>
</target>
<target name="build" depends="compile" description="Build Shader mode">
<jar basedir="bin" destfile="${mode.jar.path}" />
</target>
<target name="dist" depends="build"
description="Create ShaderMode.zip and ShaderMode.txt">
<mkdir dir="release" />
<zip destfile="${mode.dist.path}">
<zipfileset dir="." prefix="ShaderMode">
<include name="mode.properties" />
<include name="keywords.txt" />
<include name="keywords_shader.txt" />
<include name="mode/**" />
<include name="templates/**" />
<include name="examples/**" />
<exclude name="**/._*" />
</zipfileset>
</zip>
<copy file="mode.properties"
tofile="release/ShaderMode.txt" />
</target>
</project>