forked from aweigit/freej2me-miyoomini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
66 lines (57 loc) · 1.76 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
<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, Libretro, SDL
****************************************************
-->
<!-- 定义类路径 -->
<path id="project-classpath">
<!-- 添加项目自身的类路径 -->
<pathelement location="build/classes"/>
<!-- 添加第三方JAR包 -->
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<echo message="FreeJ2ME - | SDL | Libretro" />
<mkdir dir="build/classes"/>
<javac
srcdir="src"
destdir="build/classes"
includeantruntime="false"
debug="false"
debuglevel="lines,vars,source"
classpathref="project-classpath"
>
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xlint:deprecation"/>
</javac>
<!--
****************************************************
* Jar Files
****************************************************
-->
<echo message="Building JAR - SDL" />
<jar
destfile="build/freej2me-sdl.jar"
basedir="build/classes">
<fileset dir="resources" />
<zipfileset dir="natives/dist/${variant}" prefix="natives/${variant}/"/>
<metainf dir="META-INF" />
<manifest>
<!-- Libretro Version -->
<attribute name="Main-Class" value="org.recompile.freej2me.Anbu"/>
<attribute name="Implementation-Title" value="FreeJ2ME"/>
</manifest>
</jar>
</project>