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

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

Issue 12599005: Begin de-antification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add License header 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/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 <project default="error"> 6 <project default="error">
7 <property name="ant.project.name" value="${APK_NAME}"/> 7 <property name="ant.project.name" value="${APK_NAME}"/>
8 <!-- 8 <!--
9 Gyp will pass CONFIGURATION_NAME as the target for ant to build. These targe ts will call the 9 Gyp will pass CONFIGURATION_NAME as the target for ant to build. These targe ts will call the
10 appropriate sdk tools target. 10 appropriate sdk tools target.
11 --> 11 -->
12 <target name="Debug" depends="debug"/> 12 <target name="Debug" depends="debug"/>
13 <target name="Release" depends="release"/> 13 <target name="Release" depends="release"/>
14 <target name="error"> 14 <target name="error">
15 <fail message="CONFIGURATION_NAME should be passed as a target to ant."/> 15 <fail message="CONFIGURATION_NAME should be passed as a target to ant."/>
16 </target> 16 </target>
17 17
18 <description> 18 <description>
19 Building ${ant.project.name}.apk 19 Building ${ant.project.name}.apk
20 </description> 20 </description>
21 <import file="common.xml"/> 21 <import file="common.xml"/>
22 22
23 <property-location name="out.dir" location="${OUT_DIR}" check-exists="false" / > 23 <!-- TODO(cjhopman): Remove this property when all gyp files define the CHROMI UM_SRC property. -->
24 <property name="CHROMIUM_SRC" value="${PRODUCT_DIR}/../.." />
24 25
25 <path id="javac.srcdirs.additional"> 26 <import file="apk-build.xml"/>
26 <filelist files="${ADDITIONAL_SRC_DIRS}"/>
27 <filelist files="${GENERATED_SRC_DIRS}"/>
28 </path>
29
30 <!--
31 Include additional resource folders in the apk, e.g. content/.../res. We
32 list the res folders in project.library.res.folder.path and the
33 corresponding java packages in project.library.packages, which must be
34 semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, hence
35 the javascript task.
36 -->
37 <path id="project.library.res.folder.path">
38 <filelist files="${ADDITIONAL_RES_DIRS}"/>
39 </path>
40 <path id="project.library.bin.r.file.path">
41 <filelist files="${ADDITIONAL_R_TEXT_FILES}"/>
42 </path>
43 <script language="javascript">
44 var before = project.getProperty("ADDITIONAL_RES_PACKAGES");
45 project.setProperty("project.library.packages", before.replaceAll(" ", ";")) ;
46 </script>
47
48 <property-value name="target.abi" value="${APP_ABI}"/>
49 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
50 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/>
51 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs"
52 check-exists="false"/>
53
54 <property-value name="version.code" value="${APP_MANIFEST_VERSION_CODE}"/>
55 <property-value name="version.name" value="${APP_MANIFEST_VERSION_NAME}"/>
56
57 <!--
58 We use the PROGUARD_ENABLED flag for enabling proguard. By default proguard is enabled for
59 Release builds if proguard.config is set. Setting proguard.config even to an empty string will
60 enable proguard. Set this property only when we have explicitly enabled prog uard.
61 -->
62 <condition property="proguard.config" value="${PROGUARD_FLAGS}">
63 <istrue value="${PROGUARD_ENABLED}"/>
64 </condition>
65 <!-- TODO(shashishekhar): Enable emma and code-coverage filters. -->
66
67 <condition property="asset.absolute.dir"
68 value="${out.dir}/assets"
69 else="${ASSET_DIR}">
70 <equals arg1="${ASSET_DIR}" arg2=""/>
71 </condition>
72
73 <!-- Set the output directory for the final apk to the ${apks.dir}. -->
74 <property-location name="out.final.file"
75 location="${apks.dir}/${ant.project.name}.apk"
76 check-exists="false"/>
77
78 <!-- Classpath for javac -->
79 <path id="javac.custom.classpath">
80 <filelist files="${INPUT_JARS_PATHS}"/>
81 </path>
82
83 <path id="out.dex.jar.input.ref">
84 <path refid="javac.custom.classpath"/>
85 </path>
86
87 <import file="sdk-targets.xml"/>
88 <import file="${sdk.dir}/tools/ant/build.xml"/>
89 </project> 27 </project>
90 28
OLDNEW
« no previous file with comments | « build/android/ant/apk-build.xml ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698