Skip to content

Commit

Permalink
Add dist-android target (see #86, processing/processing-android#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Sep 25, 2023
1 parent ce1afbd commit f324e22
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,19 @@
<copy file="library.properties" toFile="../sound.txt" />
</target>

<target name="dist-android" depends="prepare-dist" description="Build a Sound library zip for Android mode">
<zip destfile="../sound-android.zip">
<zipfileset dir="." prefix="sound">
<patternset refid="dist.files" />
<!-- don't add any native library directories, see https://github.com/processing/processing-android/issues/738 -->
<exclude name="${lib}/*-*/*" />
<!-- also drop unnecessary jars to avoid duplicate class errors -->
<exclude name="${lib}/*spi*" />
<exclude name="${lib}/jportaudio.jar" />
</zipfileset>
</zip>
</target>

<target name="dist-slim" depends="prepare-dist" description="Build a reduced size Sound library zip (omitting javadoc documentation and examples with audio files)">
<zip destfile="../sound-slim.zip">
<zipfileset dir="." prefix="sound">
Expand Down

0 comments on commit f324e22

Please sign in to comment.