forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
57 lines (48 loc) · 1.48 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
<project name="FreeJ2ME">
<echo message="Building FreeJ2ME" />
<property name="variant" value="linux-${os.arch}" />
<available file="natives/dist/${variant}" property="natives.exist" />
<fail message="Build natives for ${variant} first or specify a different variant via -Dvariant=variant.">
<condition>
<not>
<isset property="natives.exist" />
</not>
</condition>
</fail>
<!--
****************************************************
* AWT
****************************************************
-->
<echo message="FreeJ2ME - AWT" />
<mkdir dir="build/classes"/>
<javac
srcdir="src"
destdir="build/classes"
includeantruntime="false"
debug="true"
debuglevel="lines,vars,source"
target="1.8"
>
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xlint:deprecation"/>
</javac>
<!--
****************************************************
* Jar Files
****************************************************
-->
<echo message="Building JAR - AWT" />
<jar
destfile="build/freej2me-${variant}.jar"
basedir="build/classes">
<fileset dir="resources" />
<zipfileset dir="natives/dist/${variant}" prefix="natives/${variant}/"/>
<metainf dir="META-INF" />
<manifest>
<!-- AWT Version -->
<attribute name="Main-Class" value="org.recompile.freej2me.FreeJ2ME"/>
<attribute name="Implementation-Title" value="FreeJ2ME"/>
</manifest>
</jar>
</project>