Skip to content

Commit f324e22

Browse files
committed
Add dist-android target (see #86, processing/processing-android#738)
1 parent ce1afbd commit f324e22

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build.xml

+13
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,19 @@
137137
<copy file="library.properties" toFile="../sound.txt" />
138138
</target>
139139

140+
<target name="dist-android" depends="prepare-dist" description="Build a Sound library zip for Android mode">
141+
<zip destfile="../sound-android.zip">
142+
<zipfileset dir="." prefix="sound">
143+
<patternset refid="dist.files" />
144+
<!-- don't add any native library directories, see https://github.com/processing/processing-android/issues/738 -->
145+
<exclude name="${lib}/*-*/*" />
146+
<!-- also drop unnecessary jars to avoid duplicate class errors -->
147+
<exclude name="${lib}/*spi*" />
148+
<exclude name="${lib}/jportaudio.jar" />
149+
</zipfileset>
150+
</zip>
151+
</target>
152+
140153
<target name="dist-slim" depends="prepare-dist" description="Build a reduced size Sound library zip (omitting javadoc documentation and examples with audio files)">
141154
<zip destfile="../sound-slim.zip">
142155
<zipfileset dir="." prefix="sound">

0 commit comments

Comments
 (0)