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

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

Issue 191383008: android: Fix build more after 255971. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
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="-package-resources"> 18 <project default="-package-resources">
19 <property name="out.dir" location="${OUT_DIR}" /> 19 <property name="out.dir" location="${OUT_DIR}" />
20 <property name="out.absolute.dir" location="${out.dir}" /> 20 <property name="out.absolute.dir" location="${out.dir}" />
21 <property name="out.res.absolute.dir" location="${out.dir}/res" /> 21 <property name="out.res.absolute.dir" location="${out.dir}/res" />
22 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm l" />
23 22
24 <!-- tools location --> 23 <!-- tools location -->
25 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> 24 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
26 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" /> 25 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" />
27 <property name="android.sdk.tools.dir" location="${ANDROID_SDK_TOOLS}" /> 26 <property name="android.sdk.tools.dir" location="${ANDROID_SDK_TOOLS}" />
28 27
29 <!-- jar file from where the tasks are loaded --> 28 <!-- jar file from where the tasks are loaded -->
30 <path id="android.antlibs"> 29 <path id="android.antlibs">
31 <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" /> 30 <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
32 </path> 31 </path>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 <propertyresource name="ADDITIONAL_RES_PACKAGES"/> 83 <propertyresource name="ADDITIONAL_RES_PACKAGES"/>
85 <filterchain> 84 <filterchain>
86 <replacestring from=" " to=";"/> 85 <replacestring from=" " to=";"/>
87 </filterchain> 86 </filterchain>
88 </loadresource> 87 </loadresource>
89 <!-- Set to empty if not set by the loadresource above --> 88 <!-- Set to empty if not set by the loadresource above -->
90 <property name="project.library.packages" value=""/> 89 <property name="project.library.packages" value=""/>
91 90
92 <property name="build.packaging.nocrunch" value="true" /> 91 <property name="build.packaging.nocrunch" value="true" />
93 92
93 <property name="manifest.file" value="${ANDROID_MANIFEST}" />
94 <property name="manifest.abs.file" location="${manifest.file}" />
95
94 <!-- Intermediate files --> 96 <!-- Intermediate files -->
95 <property name="resource.package.file.name" value="${APK_NAME}.ap_" /> 97 <property name="resource.package.file.name" value="${APK_NAME}.ap_" />
96 98
97 <target name="-crunch"> 99 <target name="-crunch">
98 <!-- Updates the pre-processed PNG cache --> 100 <!-- Updates the pre-processed PNG cache -->
99 <exec executable="${aapt}" taskName="crunch"> 101 <exec executable="${aapt}" taskName="crunch">
100 <arg value="crunch" /> 102 <arg value="crunch" />
101 <arg value="-v" /> 103 <arg value="-v" />
102 <arg value="-S" /> 104 <arg value="-S" />
103 <arg path="${resource.absolute.dir}" /> 105 <arg path="${resource.absolute.dir}" />
104 <arg value="-C" /> 106 <arg value="-C" />
105 <arg path="${out.res.absolute.dir}" /> 107 <arg path="${out.res.absolute.dir}" />
106 </exec> 108 </exec>
107 </target> 109 </target>
108 110
109 <target name="-package-resources" depends="-crunch"> 111 <target name="-package-resources" depends="-crunch">
110 <aapt 112 <aapt
111 executable="${aapt}" 113 executable="${aapt}"
112 command="package" 114 command="package"
113 versioncode="${version.code}" 115 versioncode="${version.code}"
114 versionname="${version.name}" 116 versionname="${version.name}"
115 debug="${build.is.packaging.debug}" 117 debug="${build.is.packaging.debug}"
116 manifest="${out.manifest.abs.file}" 118 manifest="${manifest.abs.file}"
117 assets="${asset.absolute.dir}" 119 assets="${asset.absolute.dir}"
118 androidjar="${project.target.android.jar}" 120 androidjar="${project.target.android.jar}"
119 apkfolder="${out.absolute.dir}" 121 apkfolder="${out.absolute.dir}"
120 nocrunch="${build.packaging.nocrunch}" 122 nocrunch="${build.packaging.nocrunch}"
121 resourcefilename="${resource.package.file.name}" 123 resourcefilename="${resource.package.file.name}"
122 resourcefilter="${aapt.resource.filter}" 124 resourcefilter="${aapt.resource.filter}"
123 libraryResFolderPathRefid="project.library.res.folder.path" 125 libraryResFolderPathRefid="project.library.res.folder.path"
124 libraryPackagesRefid="project.library.packages" 126 libraryPackagesRefid="project.library.packages"
125 libraryRFileRefid="project.library.bin.r.file.path" 127 libraryRFileRefid="project.library.bin.r.file.path"
126 previousBuildType="" 128 previousBuildType=""
127 buildType="${build.target}" 129 buildType="${build.target}"
128 ignoreAssets="${aapt.ignore.assets}"> 130 ignoreAssets="${aapt.ignore.assets}">
129 <res path="${out.res.absolute.dir}" /> 131 <res path="${out.res.absolute.dir}" />
130 <res path="${resource.absolute.dir}" /> 132 <res path="${resource.absolute.dir}" />
131 <!-- <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 -->
132 <!-- <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 -->
133 </aapt> 135 </aapt>
134 136
135 <touch file="${STAMP}" /> 137 <touch file="${STAMP}" />
136 </target> 138 </target>
137 </project> 139 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698