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

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

Issue 10959034: Make apks build from a single ant .xml template (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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"?>
2 <!-- 1 <!--
3 Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 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
5 found in the LICENSE file. 4 found in the LICENSE file.
6 --> 5 -->
7 <project name="ContentShellTest" default="debug" basedir="."> 6 <project default="debug">
7 <property name="ant.project.name" value="${APK_NAME}"/>
8 8
9 <description> 9 <description>
10 Building ContentShellTest.apk 10 Building ${ant.project.name}.apk
11 </description> 11 </description>
12 <import file="common.xml"/>
12 13
13 <import file="../../../../build/android/ant/common.xml"/> 14 <property-location
15 name="out.dir"
16 location="${PRODUCT_DIR}/${PACKAGE_NAME}"
17 check-exists="false"
18 />
19
20 <path id="javac.srcdirs.additional">
21 <filelist files="${ADDITIONAL_SRC_DIRS}"/>
22 <filelist files="${GENERATED_SRC_DIRS}"/>
23 </path>
14 24
15 <property-value name="target.abi" value="${APP_ABI}"/> 25 <property-value name="target.abi" value="${APP_ABI}"/>
16 <property-location name="out.dir" location="${PRODUCT_DIR}/content_shell_test"
17 check-exists="false"/>
18 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/> 26 <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
19 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/> 27 <property-value name="gen.absolute.dir" value="${out.dir}/gen"/>
20 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs" 28 <property-location name="native.libs.absolute.dir" location="${out.dir}/libs"
21 check-exists="false"/> 29 check-exists="false"/>
22 <property-location name="asset.absolute.dir" location="${out.dir}/assets" 30
23 check-exists="false"/> 31 <condition property="asset.absolute.dir"
32 value="${out.dir}/assets"
33 else="${ASSET_DIR}">
34 <equals arg1="${ASSET_DIR}" arg2=""/>
35 </condition>
36
24 <!-- Set the output directory for the final apk to the ${apks.dir}. --> 37 <!-- Set the output directory for the final apk to the ${apks.dir}. -->
25 <property-location name="out.final.file" 38 <property-location name="out.final.file"
26 location="${apks.dir}/${ant.project.name}-debug.apk" 39 location="${apks.dir}/${ant.project.name}-debug.apk"
27 check-exists="false"/> 40 check-exists="false"/>
28 <property name="generate.test.jar" value="true"/>
29
30 <path id="javac.custom.sourcepath">
31 <filelist files="${ADDITIONAL_SRC_DIRS}"/>
32 <filelist files="${GENERATED_SRC_DIRS}"/>
33 </path>
34 41
35 <path id="out.dex.jar.input.ref"> 42 <path id="out.dex.jar.input.ref">
36 <filelist files="${INPUT_JARS_PATHS}"/> 43 <filelist files="${INPUT_JARS_PATHS}"/>
37 </path> 44 </path>
38 45
39 <!-- Classpath for javac --> 46 <!-- Classpath for javac -->
40 <path id="javac.custom.classpath"> 47 <path id="javac.custom.classpath">
41 <path refid="out.dex.jar.input.ref"/> 48 <path refid="out.dex.jar.input.ref"/>
42 </path> 49 </path>
43 50
44 <import file="../../../../build/android/ant/sdk-targets.xml"/> 51 <import file="sdk-targets.xml"/>
45 <import file="${sdk.dir}/tools/ant/build.xml"/> 52 <import file="${sdk.dir}/tools/ant/build.xml"/>
46 </project> 53 </project>
54
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698