mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
88c77b18b8
commit
c9175ecae2
|
@ -187,7 +187,10 @@ limitations under the License.
|
|||
|
||||
<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"/>
|
||||
<property name="libraryjars.path" refid="android.target.classpath"/>
|
||||
<java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true">
|
||||
|
@ -208,7 +211,6 @@ limitations under the License.
|
|||
</java>
|
||||
<delete dir="${out-classes}"/>
|
||||
<move file="optimized" tofile="${out-classes}"/>
|
||||
<!-- End optimization -->
|
||||
</target>
|
||||
|
||||
<!-- Convert this project's .class files into .dex files. -->
|
||||
|
|
Loading…
Reference in a new issue