Skip to content

Commit

Permalink
build: Optimize build procedure.
Browse files Browse the repository at this point in the history
Each of the interfaces' jars had all three of them included, which
is not ideal, so only include the corresponding interface's classes
on each jar. Furthermore, we don't need debug data appended to each
class, as we already have the source code available with variables,
methods, etc mostly explained.
  • Loading branch information
AShiningRay committed Nov 9, 2024
1 parent 9142964 commit 3482b0d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
srcdir="src/org/objectweb/"
destdir="build/classes"
includeantruntime="false"
debug="true"
debuglevel="lines,vars,source"
>
<compilerarg value="-nowarn"/>
</javac>
Expand All @@ -29,8 +27,6 @@
destdir="build/classes"
classpathref="classpath"
includeantruntime="false"
debug="true"
debuglevel="lines,vars,source"
>
<exclude name="src/org/objectweb/**"/>
<compilerarg value="-Xlint:unchecked"/>
Expand All @@ -46,8 +42,8 @@

<echo message="Building JAR - AWT" />
<jar
destfile="build/freej2me.jar"
basedir="build/classes">
destfile="build/freej2me.jar">
<fileset dir="build/classes" excludes="**/Libretro*.class, **/Anbu*.class"/> <!-- Exclude Libretro and SDL classes -->
<fileset dir="resources" />
<metainf dir="META-INF" />
<manifest>
Expand All @@ -59,8 +55,8 @@

<echo message="Building JAR - Libretro" />
<jar
destfile="build/freej2me-lr.jar"
basedir="build/classes">
destfile="build/freej2me-lr.jar">
<fileset dir="build/classes" excludes="**/AWTGUI*.class, **/FreeJ2ME*.class, **/Anbu*.class"/> <!-- Exclude AWT and SDL classes (FreeJ2ME.class is part of the AWT standalone) -->
<fileset dir="resources" />
<metainf dir="META-INF" />
<manifest>
Expand All @@ -72,8 +68,8 @@

<echo message="Building JAR - SDL" />
<jar
destfile="build/freej2me-sdl.jar"
basedir="build/classes">
destfile="build/freej2me-sdl.jar">
<fileset dir="build/classes" excludes="**/AWTGUI*.class, **/FreeJ2ME*.class, **/Libretro*.class"/> <!-- Exclude AWT and SDL classes (FreeJ2ME.class is part of the AWT standalone) -->
<fileset dir="resources" />
<zipgroupfileset dir="lib" excludes="META-INF/**" includes="*.jar"/>
<metainf dir="META-INF" />
Expand Down

0 comments on commit 3482b0d

Please sign in to comment.