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

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

Issue 295473002: Remove apk-codegen.xml (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix proguard.txt Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « build/android/ant/apk-obfuscate.xml ('k') | build/android/gyp/process_resources.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
68 <!-- 54 <!--
69 Include additional resource folders in the apk, e.g. content/.../res. We 55 Include additional resource folders in the apk, e.g. content/.../res. We
70 list the res folders in project.library.res.folder.path and the 56 list the res folders in project.library.res.folder.path and the
71 corresponding java packages in project.library.packages, which must be 57 corresponding java packages in project.library.packages, which must be
72 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, henc e 58 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, henc e
73 the replacestring filterchain task. 59 the replacestring filterchain task.
74 --> 60 -->
75 <path id="project.library.res.folder.path"> 61 <path id="project.library.res.folder.path">
76 <filelist files="${ADDITIONAL_RES_DIRS}"/> 62 <filelist files="${ADDITIONAL_RES_DIRS}"/>
77 </path> 63 </path>
(...skipping 11 matching lines...) Expand all
89 <property name="project.library.packages" value=""/> 75 <property name="project.library.packages" value=""/>
90 76
91 <property name="build.packaging.nocrunch" value="true" /> 77 <property name="build.packaging.nocrunch" value="true" />
92 78
93 <property name="manifest.file" value="${ANDROID_MANIFEST}" /> 79 <property name="manifest.file" value="${ANDROID_MANIFEST}" />
94 <property name="manifest.abs.file" location="${manifest.file}" /> 80 <property name="manifest.abs.file" location="${manifest.file}" />
95 81
96 <!-- Intermediate files --> 82 <!-- Intermediate files -->
97 <property name="resource.package.file.name" value="${APK_NAME}.ap_" /> 83 <property name="resource.package.file.name" value="${APK_NAME}.ap_" />
98 84
99 <target name="-crunch"> 85 <target name="-package-resources">
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">
112 <aapt 86 <aapt
113 executable="${aapt}" 87 executable="${aapt}"
114 command="package" 88 command="package"
115 versioncode="${version.code}" 89 versioncode="${version.code}"
116 versionname="${version.name}" 90 versionname="${version.name}"
117 debug="${build.is.packaging.debug}" 91 debug="${build.is.packaging.debug}"
118 manifest="${manifest.abs.file}" 92 manifest="${manifest.abs.file}"
119 assets="${asset.absolute.dir}" 93 assets="${asset.absolute.dir}"
120 androidjar="${project.target.android.jar}" 94 androidjar="${project.target.android.jar}"
121 apkfolder="${out.absolute.dir}" 95 apkfolder="${out.absolute.dir}"
122 nocrunch="${build.packaging.nocrunch}" 96 nocrunch="${build.packaging.nocrunch}"
123 resourcefilename="${resource.package.file.name}" 97 resourcefilename="${resource.package.file.name}"
124 resourcefilter="${aapt.resource.filter}" 98 resourcefilter=""
125 libraryResFolderPathRefid="project.library.res.folder.path" 99 libraryResFolderPathRefid="project.library.res.folder.path"
126 libraryPackagesRefid="project.library.packages" 100 libraryPackagesRefid="project.library.packages"
127 libraryRFileRefid="project.library.bin.r.file.path" 101 libraryRFileRefid="project.library.bin.r.file.path"
128 previousBuildType="" 102 previousBuildType=""
129 buildType="${build.target}" 103 buildType="${build.target}"
130 ignoreAssets="${aapt.ignore.assets}"> 104 ignoreAssets="">
131 <res path="${out.res.absolute.dir}" /> 105 <res path="${out.res.absolute.dir}" />
132 <res path="${resource.absolute.dir}" /> 106 <res path="${resource.absolute.dir}" />
133 <!-- <nocompress /> forces no compression on any files in assets or res/ra w --> 107 <!-- <nocompress /> forces no compression on any files in assets or res/ra w -->
134 <!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets and res/raw --> 108 <!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets and res/raw -->
135 </aapt> 109 </aapt>
136 110
137 <touch file="${STAMP}" /> 111 <touch file="${STAMP}" />
138 </target> 112 </target>
139 </project> 113 </project>
OLDNEW
« no previous file with comments | « build/android/ant/apk-obfuscate.xml ('k') | build/android/gyp/process_resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698