| 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 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 <property name="resource.absolute.dir" location="${resource.dir}"/> | 44 <property name="resource.absolute.dir" location="${resource.dir}"/> |
| 45 | 45 |
| 46 <property name="asset.dir" value="${ASSET_DIR}" /> | 46 <property name="asset.dir" value="${ASSET_DIR}" /> |
| 47 <property name="asset.absolute.dir" location="${asset.dir}" /> | 47 <property name="asset.absolute.dir" location="${asset.dir}" /> |
| 48 | 48 |
| 49 <property name="aapt" location="${android.sdk.tools.dir}/aapt" /> | 49 <property name="aapt" location="${android.sdk.tools.dir}/aapt" /> |
| 50 | 50 |
| 51 <property name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> | 51 <property name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/> |
| 52 <property name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> | 52 <property name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/> |
| 53 | 53 |
| 54 <property name="aapt.resource.filter" value="" /> |
| 55 <!-- 'aapt.ignore.assets' is the list of file patterns to ignore under /res an
d /assets. |
| 56 Default is "!.svn:!.git:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*
~" |
| 57 |
| 58 Overall patterns syntax is: |
| 59 [!][<dir>|<file>][*suffix-match|prefix-match*|full-match]:more:patter
ns... |
| 60 |
| 61 - The first character flag ! avoids printing a warning. |
| 62 - Pattern can have the flag "<dir>" to match only directories |
| 63 or "<file>" to match only files. Default is to match both. |
| 64 - Match is not case-sensitive. |
| 65 --> |
| 66 <property name="aapt.ignore.assets" value="" /> |
| 67 |
| 54 <!-- | 68 <!-- |
| 55 Include additional resource folders in the apk, e.g. content/.../res. We | 69 Include additional resource folders in the apk, e.g. content/.../res. We |
| 56 list the res folders in project.library.res.folder.path and the | 70 list the res folders in project.library.res.folder.path and the |
| 57 corresponding java packages in project.library.packages, which must be | 71 corresponding java packages in project.library.packages, which must be |
| 58 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, henc
e | 72 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, henc
e |
| 59 the replacestring filterchain task. | 73 the replacestring filterchain task. |
| 60 --> | 74 --> |
| 61 <path id="project.library.res.folder.path"> | 75 <path id="project.library.res.folder.path"> |
| 62 <filelist files="${ADDITIONAL_RES_DIRS}"/> | 76 <filelist files="${ADDITIONAL_RES_DIRS}"/> |
| 63 </path> | 77 </path> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 75 <property name="project.library.packages" value=""/> | 89 <property name="project.library.packages" value=""/> |
| 76 | 90 |
| 77 <property name="build.packaging.nocrunch" value="true" /> | 91 <property name="build.packaging.nocrunch" value="true" /> |
| 78 | 92 |
| 79 <property name="manifest.file" value="${ANDROID_MANIFEST}" /> | 93 <property name="manifest.file" value="${ANDROID_MANIFEST}" /> |
| 80 <property name="manifest.abs.file" location="${manifest.file}" /> | 94 <property name="manifest.abs.file" location="${manifest.file}" /> |
| 81 | 95 |
| 82 <!-- Intermediate files --> | 96 <!-- Intermediate files --> |
| 83 <property name="resource.package.file.name" value="${APK_NAME}.ap_" /> | 97 <property name="resource.package.file.name" value="${APK_NAME}.ap_" /> |
| 84 | 98 |
| 85 <target name="-package-resources"> | 99 <target name="-crunch"> |
| 100 <!-- Updates the pre-processed PNG cache --> |
| 101 <exec executable="${aapt}" taskName="crunch"> |
| 102 <arg value="crunch" /> |
| 103 <arg value="-v" /> |
| 104 <arg value="-S" /> |
| 105 <arg path="${resource.absolute.dir}" /> |
| 106 <arg value="-C" /> |
| 107 <arg path="${out.res.absolute.dir}" /> |
| 108 </exec> |
| 109 </target> |
| 110 |
| 111 <target name="-package-resources" depends="-crunch"> |
| 86 <aapt | 112 <aapt |
| 87 executable="${aapt}" | 113 executable="${aapt}" |
| 88 command="package" | 114 command="package" |
| 89 versioncode="${version.code}" | 115 versioncode="${version.code}" |
| 90 versionname="${version.name}" | 116 versionname="${version.name}" |
| 91 debug="${build.is.packaging.debug}" | 117 debug="${build.is.packaging.debug}" |
| 92 manifest="${manifest.abs.file}" | 118 manifest="${manifest.abs.file}" |
| 93 assets="${asset.absolute.dir}" | 119 assets="${asset.absolute.dir}" |
| 94 androidjar="${project.target.android.jar}" | 120 androidjar="${project.target.android.jar}" |
| 95 apkfolder="${out.absolute.dir}" | 121 apkfolder="${out.absolute.dir}" |
| 96 nocrunch="${build.packaging.nocrunch}" | 122 nocrunch="${build.packaging.nocrunch}" |
| 97 resourcefilename="${resource.package.file.name}" | 123 resourcefilename="${resource.package.file.name}" |
| 98 resourcefilter="" | 124 resourcefilter="${aapt.resource.filter}" |
| 99 libraryResFolderPathRefid="project.library.res.folder.path" | 125 libraryResFolderPathRefid="project.library.res.folder.path" |
| 100 libraryPackagesRefid="project.library.packages" | 126 libraryPackagesRefid="project.library.packages" |
| 101 libraryRFileRefid="project.library.bin.r.file.path" | 127 libraryRFileRefid="project.library.bin.r.file.path" |
| 102 previousBuildType="" | 128 previousBuildType="" |
| 103 buildType="${build.target}" | 129 buildType="${build.target}" |
| 104 ignoreAssets=""> | 130 ignoreAssets="${aapt.ignore.assets}"> |
| 105 <res path="${out.res.absolute.dir}" /> | 131 <res path="${out.res.absolute.dir}" /> |
| 106 <res path="${resource.absolute.dir}" /> | 132 <res path="${resource.absolute.dir}" /> |
| 107 <!-- <nocompress /> forces no compression on any files in assets or res/ra
w --> | 133 <!-- <nocompress /> forces no compression on any files in assets or res/ra
w --> |
| 108 <!-- <nocompress extension="xml" /> forces no compression on specific file
extensions in assets and res/raw --> | 134 <!-- <nocompress extension="xml" /> forces no compression on specific file
extensions in assets and res/raw --> |
| 109 </aapt> | 135 </aapt> |
| 110 | 136 |
| 111 <touch file="${STAMP}" /> | 137 <touch file="${STAMP}" /> |
| 112 </target> | 138 </target> |
| 113 </project> | 139 </project> |
| OLD | NEW |