Pull out optimize target so we can selectively disable ProGuard with -Dno-optimize

git-svn-id: https://zxing.googlecode.com/svn/trunk@1123 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-11-23 09:41:58 +00:00
parent 88c77b18b8
commit c9175ecae2

View file

@ -187,7 +187,10 @@ limitations under the License.
<unzip src="../core/core.jar" dest="${out-classes}" overwrite="true"/> <unzip src="../core/core.jar" dest="${out-classes}" overwrite="true"/>
<!-- Optimize with ProGuard; can comment out this section to disable it --> <antcall target="optimize"/>
</target>
<target name="optimize" unless="no-optimize">
<mkdir dir="optimized"/> <mkdir dir="optimized"/>
<property name="libraryjars.path" refid="android.target.classpath"/> <property name="libraryjars.path" refid="android.target.classpath"/>
<java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true"> <java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true">
@ -208,7 +211,6 @@ limitations under the License.
</java> </java>
<delete dir="${out-classes}"/> <delete dir="${out-classes}"/>
<move file="optimized" tofile="${out-classes}"/> <move file="optimized" tofile="${out-classes}"/>
<!-- End optimization -->
</target> </target>
<!-- Convert this project's .class files into .dex files. --> <!-- Convert this project's .class files into .dex files. -->