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

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

Issue 291963002: Convert apk-package-resources.xml to python (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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-package.xml ('k') | build/android/gyp/package_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
(Empty)
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2005-2008 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (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
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17
18 <project default="-package-resources">
19 <property name="out.dir" location="${OUT_DIR}" />
20 <property name="out.absolute.dir" location="${out.dir}" />
21 <property name="out.res.absolute.dir" location="${out.dir}/res" />
22
23 <!-- tools location -->
24 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
25 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" />
26 <property name="android.sdk.tools.dir" location="${ANDROID_SDK_TOOLS}" />
27
28 <!-- jar file from where the tasks are loaded -->
29 <path id="android.antlibs">
30 <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
31 </path>
32
33 <!-- Custom tasks -->
34 <taskdef resource="anttasks.properties" classpathref="android.antlibs" />
35
36 <condition property="build.target" value="release" else="debug">
37 <equals arg1="${CONFIGURATION_NAME}" arg2="Release" />
38 </condition>
39 <condition property="build.is.packaging.debug" value="true" else="false">
40 <equals arg1="${build.target}" arg2="debug" />
41 </condition>
42
43 <property name="resource.dir" value="${RESOURCE_DIR}"/>
44 <property name="resource.absolute.dir" location="${resource.dir}"/>
45
46 <property name="asset.dir" value="${ASSET_DIR}" />
47 <property name="asset.absolute.dir" location="${asset.dir}" />
48
49 <property name="aapt" location="${android.sdk.tools.dir}/aapt" />
50
51 <property name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/>
52 <property name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/>
53
54 <!--
55 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
57 corresponding java packages in project.library.packages, which must be
58 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, henc e
59 the replacestring filterchain task.
60 -->
61 <path id="project.library.res.folder.path">
62 <filelist files="${ADDITIONAL_RES_DIRS}"/>
63 </path>
64 <path id="project.library.bin.r.file.path">
65 <filelist files="${ADDITIONAL_R_TEXT_FILES}"/>
66 </path>
67
68 <loadresource property="project.library.packages">
69 <propertyresource name="ADDITIONAL_RES_PACKAGES"/>
70 <filterchain>
71 <replacestring from=" " to=";"/>
72 </filterchain>
73 </loadresource>
74 <!-- Set to empty if not set by the loadresource above -->
75 <property name="project.library.packages" value=""/>
76
77 <property name="build.packaging.nocrunch" value="true" />
78
79 <property name="manifest.file" value="${ANDROID_MANIFEST}" />
80 <property name="manifest.abs.file" location="${manifest.file}" />
81
82 <!-- Intermediate files -->
83 <property name="resource.package.file.name" value="${APK_NAME}.ap_" />
84
85 <target name="-package-resources">
86 <aapt
87 executable="${aapt}"
88 command="package"
89 versioncode="${version.code}"
90 versionname="${version.name}"
91 debug="${build.is.packaging.debug}"
92 manifest="${manifest.abs.file}"
93 assets="${asset.absolute.dir}"
94 androidjar="${project.target.android.jar}"
95 apkfolder="${out.absolute.dir}"
96 nocrunch="${build.packaging.nocrunch}"
97 resourcefilename="${resource.package.file.name}"
98 resourcefilter=""
99 libraryResFolderPathRefid="project.library.res.folder.path"
100 libraryPackagesRefid="project.library.packages"
101 libraryRFileRefid="project.library.bin.r.file.path"
102 previousBuildType=""
103 buildType="${build.target}"
104 ignoreAssets="">
105 <res path="${out.res.absolute.dir}" />
106 <res path="${resource.absolute.dir}" />
107 <!-- <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 -->
109 </aapt>
110
111 <touch file="${STAMP}" />
112 </target>
113 </project>
OLDNEW
« no previous file with comments | « build/android/ant/apk-package.xml ('k') | build/android/gyp/package_resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698