Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
| 11 Unless required by applicable law or agreed to in writing, software | 11 Unless required by applicable law or agreed to in writing, software |
| 12 distributed under the License is distributed on an "AS IS" BASIS, | 12 distributed under the License is distributed on an "AS IS" BASIS, |
| 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 See the License for the specific language governing permissions and | 14 See the License for the specific language governing permissions and |
| 15 limitations under the License. | 15 limitations under the License. |
| 16 --> | 16 --> |
| 17 | 17 |
| 18 <project default="-obfuscate"> | 18 <project default="-obfuscate"> |
| 19 <property name="verbose" value="false" /> | 19 <property name="verbose" value="false" /> |
| 20 <property name="out.dir" location="${OUT_DIR}" /> | 20 <property name="out.dir" location="${OUT_DIR}" /> |
| 21 <!-- Output directories --> | 21 <!-- Output directories --> |
| 22 <property name="out.dir" value="bin" /> | 22 <property name="out.dir" value="bin" /> |
|
cjhopman
2014/03/10 21:34:41
This is awkward. This line doesn't do anything (an
| |
| 23 <property name="out.absolute.dir" location="${out.dir}" /> | 23 <property name="out.absolute.dir" location="${out.dir}" /> |
|
cjhopman
2014/03/10 21:34:41
I'm pretty sure out.dir is actually already absolu
Nico
2014/03/10 21:38:25
Yes, all the xml files have several abs.foo and fo
| |
| 24 <property name="out.classes.absolute.dir" location="${out.dir}/classes" /> | 24 <property name="out.classes.absolute.dir" location="${out.dir}/classes" /> |
| 25 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm l" /> | |
| 26 | 25 |
| 27 <!-- tools location --> | 26 <!-- tools location --> |
| 28 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> | 27 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> |
| 29 <property name="android.tools.dir" location="${sdk.dir}/tools" /> | 28 <property name="android.tools.dir" location="${sdk.dir}/tools" /> |
| 30 | 29 |
| 31 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" /> | 30 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" /> |
| 32 <path id="project.target.class.path"> | 31 <path id="project.target.class.path"> |
| 33 <pathelement location="${project.target.android.jar}" /> | 32 <pathelement location="${project.target.android.jar}" /> |
| 34 </path> | 33 </path> |
| 35 | 34 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 47 <filelist files="${INPUT_JARS_PATHS}"/> | 46 <filelist files="${INPUT_JARS_PATHS}"/> |
| 48 </path> | 47 </path> |
| 49 | 48 |
| 50 <condition property="project.is.testapp" value="true" else="false"> | 49 <condition property="project.is.testapp" value="true" else="false"> |
| 51 <equals arg1="${IS_TEST_APK}" arg2="1" /> | 50 <equals arg1="${IS_TEST_APK}" arg2="1" /> |
| 52 </condition> | 51 </condition> |
| 53 | 52 |
| 54 <property name="proguard.enabled" value="${PROGUARD_ENABLED}" /> | 53 <property name="proguard.enabled" value="${PROGUARD_ENABLED}" /> |
| 55 <property name="proguard.config" value="${PROGUARD_FLAGS}" /> | 54 <property name="proguard.config" value="${PROGUARD_FLAGS}" /> |
| 56 | 55 |
| 56 <property name="manifest.file" value="${ANDROID_MANIFEST}" /> | |
| 57 <property name="manifest.abs.file" location="${manifest.file}" /> | |
| 58 | |
| 57 <!-- Obfuscate target | 59 <!-- Obfuscate target |
| 58 This is only active in release builds when proguard.config is defined | 60 This is only active in release builds when proguard.config is defined |
| 59 in default.properties. | 61 in default.properties. |
| 60 | 62 |
| 61 --> | 63 --> |
| 62 <!-- | 64 <!-- |
| 63 Override obfuscate target to pass javac.custom.classpath to Proguard. SDK to ols do not provide | 65 Override obfuscate target to pass javac.custom.classpath to Proguard. SDK to ols do not provide |
| 64 any way to pass custom class paths to Proguard. | 66 any way to pass custom class paths to Proguard. |
| 65 --> | 67 --> |
| 66 <target name="-obfuscate"> | 68 <target name="-obfuscate"> |
| 67 <if condition="${project.is.testapp}"> | 69 <if condition="${project.is.testapp}"> |
| 68 <then> | 70 <then> |
| 69 <!-- get the project manifest package --> | 71 <!-- get the project manifest package --> |
| 70 <xpath input="${out.manifest.abs.file}" | 72 <xpath input="${manifest.abs.file}" |
| 71 expression="/manifest/@package" output="project.app.package" /> | 73 expression="/manifest/@package" output="project.app.package" /> |
| 72 <loadresource property="project.app.packagepath"> | 74 <loadresource property="project.app.packagepath"> |
| 73 <propertyresource name="project.app.package"/> | 75 <propertyresource name="project.app.package"/> |
| 74 <filterchain> | 76 <filterchain> |
| 75 <replacestring from="." to="/"/> | 77 <replacestring from="." to="/"/> |
| 76 </filterchain> | 78 </filterchain> |
| 77 </loadresource> | 79 </loadresource> |
| 78 <property name="create.test.jar.exclusions" value="${project.app.package path}/R.class ${project.app.packagepath}/R$*.class ${project.app.packagepath}/Ma nifest.class ${project.app.packagepath}/Manifest$*.class ${project.app.packagepa th}/BuildConfig.class"/> | 80 <property name="create.test.jar.exclusions" value="${project.app.package path}/R.class ${project.app.packagepath}/R$*.class ${project.app.packagepath}/Ma nifest.class ${project.app.packagepath}/Manifest$*.class ${project.app.packagepa th}/BuildConfig.class"/> |
| 79 <jar destfile="${TEST_JAR_PATH}" | 81 <jar destfile="${TEST_JAR_PATH}" |
| 80 excludes="${create.test.jar.exclusions}" | 82 excludes="${create.test.jar.exclusions}" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 165 -dump "${obfuscate.absolute.dir}/dump.txt" | 167 -dump "${obfuscate.absolute.dir}/dump.txt" |
| 166 -printseeds "${obfuscate.absolute.dir}/seeds.txt" | 168 -printseeds "${obfuscate.absolute.dir}/seeds.txt" |
| 167 -printusage "${obfuscate.absolute.dir}/usage.txt" | 169 -printusage "${obfuscate.absolute.dir}/usage.txt" |
| 168 -printmapping "${obfuscate.absolute.dir}/mapping.txt" | 170 -printmapping "${obfuscate.absolute.dir}/mapping.txt" |
| 169 </proguard> | 171 </proguard> |
| 170 </then> | 172 </then> |
| 171 </if> | 173 </if> |
| 172 <touch file="${STAMP}" /> | 174 <touch file="${STAMP}" /> |
| 173 </target> | 175 </target> |
| 174 </project> | 176 </project> |
| OLD | NEW |