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

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

Issue 12963009: Split apk-build.xml into 3 steps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 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
« no previous file with comments | « build/android/ant/apk-build.xml ('k') | build/android/ant/apk-compile.xml » ('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="-code-gen">
19 <property name="verbose" value="false" />
20
21 <property name="out.dir" location="${OUT_DIR}" />
22 <property name="out.absolute.dir" location="${out.dir}" />
23 <property name="out.res.absolute.dir" location="${out.dir}/res" />
24 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm l" />
25 <property name="gen.absolute.dir" value="${out.dir}/gen"/>
26
27 <!-- tools location -->
28 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
29 <property name="target" value="android-${ANDROID_SDK_VERSION}"/>
30 <property name="android.tools.dir" location="${sdk.dir}/tools" />
31 <property name="android.platform.tools.dir" location="${sdk.dir}/platform-tool s" />
32 <property name="aapt" location="${android.platform.tools.dir}/aapt" />
33 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" />
34
35 <!-- jar file from where the tasks are loaded -->
36 <path id="android.antlibs">
37 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
38 </path>
39
40 <!-- Custom tasks -->
41 <taskdef resource="anttasks.properties" classpathref="android.antlibs" />
42
43 <!--
44 Include additional resource folders in the apk, e.g. content/.../res. We
45 list the res folders in project.library.res.folder.path and the
46 corresponding java packages in project.library.packages, which must be
47 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, hence
48 the javascript task.
49 -->
50 <path id="project.library.res.folder.path">
51 <filelist files="${ADDITIONAL_RES_DIRS}"/>
52 </path>
53 <path id="project.library.bin.r.file.path">
54 <filelist files="${ADDITIONAL_R_TEXT_FILES}"/>
55 </path>
56 <script language="javascript">
57 var before = project.getProperty("ADDITIONAL_RES_PACKAGES");
58 project.setProperty("project.library.packages", before.replaceAll(" ", ";")) ;
59 </script>
60
61 <path id="project.library.manifest.file.path">
62 <filelist files="${LIBRARY_MANIFEST_PATHS}"/>
63 </path>
64
65 <!-- manifest merger default value -->
66 <property name="manifestmerger.enabled" value="false" />
67
68 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
69
70 <property name="manifest.file" value="${ANDROID_MANIFEST}" />
71 <property name="manifest.abs.file" location="${manifest.file}" />
72
73 <!-- Intermediate files -->
74 <property name="resource.package.file.name" value="${APK_NAME}.ap_" />
75
76 <property name="aapt.ignore.assets" value="" />
77
78 <target name="-mergemanifest">
79 <mergemanifest
80 appManifest="${manifest.abs.file}"
81 outManifest="${out.manifest.abs.file}"
82 enabled="${manifestmerger.enabled}">
83 <library refid="project.library.manifest.file.path" />
84 </mergemanifest>
85 </target>
86
87 <!-- Code Generation: compile resources (aapt -> R.java), aidl -->
88 <target name="-code-gen" depends="-mergemanifest">
89 <mkdir dir="${out.absolute.dir}" />
90 <mkdir dir="${out.res.absolute.dir}" />
91 <mkdir dir="${gen.absolute.dir}" />
92
93 <aapt executable="${aapt}"
94 command="package"
95 verbose="${verbose}"
96 manifest="${out.manifest.abs.file}"
97 androidjar="${project.target.android.jar}"
98 rfolder="${gen.absolute.dir}"
99 nonConstantId="false"
100 libraryResFolderPathRefid="project.library.res.folder.path"
101 libraryPackagesRefid="project.library.packages"
102 libraryRFileRefid="project.library.bin.r.file.path"
103 ignoreAssets="${aapt.ignore.assets}"
104 binFolder="${out.absolute.dir}"
105 proguardFile="${out.absolute.dir}/proguard.txt">
106 <res path="${out.res.absolute.dir}" />
107 <res path="${resource.absolute.dir}" />
108 </aapt>
109
110 <touch file="${STAMP}" />
111 </target>
112 </project>
OLDNEW
« no previous file with comments | « build/android/ant/apk-build.xml ('k') | build/android/ant/apk-compile.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698