-
Notifications
You must be signed in to change notification settings - Fork 147
/
build.xml
79 lines (73 loc) · 3.08 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="javaLauncher" default="default" basedir=".">
<property environment="env"/>
<property name="jdk7.path" value="${env.JDK_17}"/>
<property name="out.path" value="${env.OUT_PATH}"/>
<property name="out.name" value="${env.OUT_NAME}"/>
<property name="out.id" value="${env.OUT_ID}"/>
<property name="out.mainclass" value="${env.OUT_MAINCLASS}"/>
<taskdef name="bundleapp"
classname="com.oracle.appbundler.AppBundlerTask"
classpath="third_party/appbundler/appbundler-1.0.jar" />
<path id="class.path">
<fileset dir="third_party/jogamp/jar">
<include name="gluegen-rt.jar"/>
<include name="gluegen-rt-natives-macosx-universal.jar"/>
<include name="jogl-all.jar"/>
<include name="jogl-all-natives-macosx-universal.jar"/>
</fileset>
<fileset dir="third_party/junit" includes="junit*.jar"/>
</path>
<target name="compile">
<mkdir dir="${out.path}"/>
<javac encoding="UTF8" nowarn="on" deprecation="off" debug="on" includeantruntime="false" destdir="${out.path}"
executable="/usr/bin/javac" fork="true" memoryinitialsize="32m" memorymaximumsize="128m" includeJavaRuntime="yes"
target="1.8" source="1.8">
<compilerarg value="-XDignore.symbol.file"/>
<classpath location="${jdk7.path}/jre/lib/rt.jar" />
<classpath refid="class.path"/>
<src path="java/tests/"/>
<src path="java/org/cef/"/>
</javac>
<copy todir="${out.path}">
<fileset dir="java" casesensitive="no">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<mkdir dir="${out.path}"/>
<jar destfile="${out.path}/jcef.jar" index="true" update="false" manifest="java/manifest/MANIFEST.MF">
<fileset dir="${out.path}">
<include name="org/cef/**"/>
</fileset>
</jar>
<jar destfile="${out.path}/jcef-tests.jar" index="true" update="false">
<fileset dir="${out.path}">
<include name="tests/**"/>
</fileset>
</jar>
</target>
<target name="bundle" depends="jar">
<mkdir dir="${out.path}"/>
<bundleapp outputdirectory="${out.path}"
name="${out.name}"
displayname="${out.name}"
identifier="${out.id}"
mainclassname="${out.mainclass}"
icon="third_party/cef/res/CefIcon.icns">
<classpath dir="${out.path}">
<include name="jcef.jar"/>
<include name="jcef-tests.jar"/>
</classpath>
<classpath dir="third_party/jogamp/jar/">
<include name="gluegen-rt.jar"/>
<include name="gluegen-rt-natives-macosx-universal.jar" />
<include name="jogl-all.jar" />
<include name="jogl-all-natives-macosx-universal.jar" />
</classpath>
<classpath dir="third_party/junit" includes="junit*.jar"/>
<option value="-Djava.library.path=$APP_ROOT/Contents/Java/:$APP_ROOT/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries" />
</bundleapp>
</target>
</project>