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

Side by Side Diff: content/shell/android/java/content_shell_apk.xml

Issue 10763019: Fix ant build of content shell for updated Android SDK tools. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- 2 <!--
3 Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 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 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <project name="ContentShell" default="debug" basedir="."> 7 <project name="ContentShell" default="debug" basedir=".">
8 8
9 <description> 9 <description>
10 Building ContentShell.apk 10 Building ContentShell.apk
11 </description> 11 </description>
12 12
13 <property environment="env"/> 13 <property environment="env"/>
14 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> 14 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/>
15 <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/> 15 <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/>
16 <property name="source.dir" location="src"/> 16 <property name="source.dir" location="src"/>
17 <property name="target" value="android-${env.ANDROID_SDK_VERSION}"/> 17 <property name="target" value="android-${env.ANDROID_SDK_VERSION}"/>
18 <property name="target.abi" value="${APP_ABI}"/> 18 <property name="target.abi" value="${APP_ABI}"/>
19 <property name="out.dir" location="${PRODUCT_DIR}/content_shell"/> 19 <property name="out.dir" location="${PRODUCT_DIR}/content_shell"/>
20 <property name="resource.absolute.dir" value="../res"/> 20 <property name="resource.absolute.dir" value="../res"/>
21 <property name="gen.absolute.dir" value="${out.dir}/gen"/> 21 <property name="gen.absolute.dir" value="${out.dir}/gen"/>
22 <property name="jar.libs.dir" value="${out.dir}/java/libs"/>
23 <path id="native.libs.gdbserver"> 22 <path id="native.libs.gdbserver">
24 <fileset file="${toolchain.dir}/../../gdbserver"/> 23 <fileset file="${toolchain.dir}/../../gdbserver"/>
25 </path> 24 </path>
26 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> 25 <property name="native.libs.absolute.dir" location="${out.dir}/libs" />
27 <property name="asset.absolute.dir" location="${out.dir}/assets" /> 26 <property name="asset.absolute.dir" location="${out.dir}/assets" />
28 <!-- If your app crashes when referencing java from a different .jar 27
29 (e.g. java.lang.NoClassDefFoundError: 28 <path id="out.dex.jar.input.ref">
30 org.chromium.content.common.CommandLine), And if 29 <fileset file="${out.dir}/java/libs/chromium_content.jar"/>
31 chromium_content.jar is in fact in your java/libs directory (as 30 <fileset file="${out.dir}/java/libs/chromium_net.jar"/>
32 placed by a gyp 'cp'), the following line will make sure it 31 <fileset file="${out.dir}/java/libs/chromium_base.jar"/>
33 gets added to the classes.dex file. --> 32 <fileset file="${out.dir}/java/libs/chromium_media.jar"/>
34 <property name="out.classes.absolute.dir" location="${jar.libs.dir}" /> 33 </path>
34 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in put.ref}"/>
35 35
36 <!-- We expect PRODUCT_DIR to be set like the gyp var 36 <!-- We expect PRODUCT_DIR to be set like the gyp var
37 (e.g. $ROOT/out/Debug) --> 37 (e.g. $ROOT/out/Debug) -->
38 <!-- TODO(satish): ideally we need this to run before -build-setup, where 38 <!-- TODO(satish): ideally we need this to run before -build-setup, where
39 directories are made based on this variable. --> 39 directories are made based on this variable. -->
40 <target name="-pre-build"> 40 <target name="-pre-build">
41 <if> 41 <if>
42 <condition> 42 <condition>
43 <isset property="PRODUCT_DIR" /> 43 <isset property="PRODUCT_DIR" />
44 </condition> 44 </condition>
(...skipping 18 matching lines...) Expand all
63 <copy todir="${out.dir}/libs/${target.abi}"> 63 <copy todir="${out.dir}/libs/${target.abi}">
64 <path refid="native.libs.gdbserver"/> 64 <path refid="native.libs.gdbserver"/>
65 </copy> 65 </copy>
66 </then> 66 </then>
67 </if> 67 </if>
68 </target> 68 </target>
69 69
70 <import file="${sdk.dir}/tools/ant/build.xml" /> 70 <import file="${sdk.dir}/tools/ant/build.xml" />
71 71
72 </project> 72 </project>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698