Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Side by Side Diff: build/android/ant/apk-obfuscate.xml

Issue 12913017: Support multiple proguard flags from java_apk.gypi. Proguard supports multiple proguard configurati… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- 2 <!--
3 Copyright (C) 2005-2008 The Android Open Source Project 3 Copyright (C) 2005-2008 The Android Open Source Project
4 4
5 Licensed under the Apache License, Version 2.0 (the "License"); 5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License. 6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at 7 You may obtain a copy of the License at
8 8
9 http://www.apache.org/licenses/LICENSE-2.0 9 http://www.apache.org/licenses/LICENSE-2.0
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 </firstmatchmapper> 122 </firstmatchmapper>
123 </pathconvert> 123 </pathconvert>
124 124
125 <!-- Turn the path property ${proguard.config} from an A:B:C property 125 <!-- Turn the path property ${proguard.config} from an A:B:C property
126 into a series of includes: -include A -include B -include C 126 into a series of includes: -include A -include B -include C
127 suitable for processing by the ProGuard task. Note - this does 127 suitable for processing by the ProGuard task. Note - this does
128 not include the leading '-include "' or the closing '"'; those 128 not include the leading '-include "' or the closing '"'; those
129 are added under the <proguard> call below. 129 are added under the <proguard> call below.
130 --> 130 -->
131 <path id="proguard.configpath"> 131 <path id="proguard.configpath">
132 <pathelement path="${proguard.config}"/> 132 <filelist files="${proguard.config}"/>
133 </path> 133 </path>
134 <pathconvert pathsep='" -include "' property="proguard.configcmd" 134 <pathconvert pathsep='" -include "' property="proguard.configcmd"
135 refid="proguard.configpath"/> 135 refid="proguard.configpath"/>
136 136
137 <mkdir dir="${obfuscate.absolute.dir}"/> 137 <mkdir dir="${obfuscate.absolute.dir}"/>
138 <delete file="${preobfuscate.jar.file}"/> 138 <delete file="${preobfuscate.jar.file}"/>
139 <delete file="${obfuscated.jar.abs.file}"/> 139 <delete file="${obfuscated.jar.abs.file}"/>
140 <jar basedir="${out.classes.absolute.dir}" 140 <jar basedir="${out.classes.absolute.dir}"
141 destfile="${preobfuscate.jar.file}"/> 141 destfile="${preobfuscate.jar.file}"/>
142 <proguard> 142 <proguard>
143 -include "${proguard.configcmd}" 143 -include "${proguard.configcmd}"
144 -include "${out.absolute.dir}/proguard.txt" 144 -include "${out.absolute.dir}/proguard.txt"
145 -injars ${project.all.classes.value} 145 -injars ${project.all.classes.value}
146 -outjars "${obfuscated.jar.abs.file}" 146 -outjars "${obfuscated.jar.abs.file}"
147 -libraryjars ${project.target.classpath.value} 147 -libraryjars ${project.target.classpath.value}
148 -dump "${obfuscate.absolute.dir}/dump.txt" 148 -dump "${obfuscate.absolute.dir}/dump.txt"
149 -printseeds "${obfuscate.absolute.dir}/seeds.txt" 149 -printseeds "${obfuscate.absolute.dir}/seeds.txt"
150 -printusage "${obfuscate.absolute.dir}/usage.txt" 150 -printusage "${obfuscate.absolute.dir}/usage.txt"
151 -printmapping "${obfuscate.absolute.dir}/mapping.txt" 151 -printmapping "${obfuscate.absolute.dir}/mapping.txt"
152 </proguard> 152 </proguard>
153 </then> 153 </then>
154 </if> 154 </if>
155 <touch file="${STAMP}" /> 155 <touch file="${STAMP}" />
156 </target> 156 </target>
157 </project> 157 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698