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

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

Issue 10254028: Add native debugging support to android content shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: satish feedback Created 8 years, 7 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 | « content/content_shell.gypi ('k') | testing/android/README.chromium » ('j') | 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="source.dir" location="java"/> 16 <property name="source.dir" location="java"/>
16 <property name="target" value="android-14"/> 17 <property name="target" value="android-14"/>
18 <property name="out.dir" location="${PRODUCT_DIR}/content_shell"/>
19 <property name="resource.absolute.dir" value="res"/>
20 <property name="gen.absolute.dir" value="${out.dir}/gen"/>
21 <property name="jar.libs.dir" value="${out.dir}/java/libs"/>
22 <path id="native.libs.gdbserver">
23 <fileset file="${toolchain.dir}/../../gdbserver"/>
24 </path>
25 <property name="native.libs.absolute.dir" location="${out.dir}/libs" />
17 26
18 <!-- We expect PRODUCT_DIR to be set like the gyp var 27 <!-- We expect PRODUCT_DIR to be set like the gyp var
19 (e.g. $ROOT/out/Debug) --> 28 (e.g. $ROOT/out/Debug) -->
20 <!-- TODO(satish): ideally we need this to run before -build-setup, where 29 <!-- TODO(satish): ideally we need this to run before -build-setup, where
21 directories are made based on this variable. --> 30 directories are made based on this variable. -->
22 <target name="-pre-build"> 31 <target name="-pre-build">
23 <if> 32 <if>
24 <condition> 33 <condition>
25 <isset property="PRODUCT_DIR" /> 34 <isset property="PRODUCT_DIR" />
26 </condition> 35 </condition>
27 <else> 36 <else>
28 <fail message="PRODUCT_DIR env var not set?" /> 37 <fail message="PRODUCT_DIR env var not set?" />
29 </else> 38 </else>
30 </if> 39 </if>
31 </target> 40 </target>
32 41
33 <property name="out.dir" location="${PRODUCT_DIR}/content_shell"/> 42 <target name="-post-compile">
34 43 <!-- copy gdbserver to main libs directory if building debug.
35 <property name="resource.absolute.dir" value="res"/> 44 TODO(jrg): for now, Chrome on Android always builds native code
36 <property name="gen.absolute.dir" value="${out.dir}/gen"/> 45 as Release and java/ant as Debug, which means we always install
37 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> 46 gdbserver. Resolve this discrepancy, possibly by making this
38 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> 47 Release Official build java/ant as Release. -->
48 <if>
49 <condition>
50 <equals arg1="${build.target}" arg2="debug" />
51 </condition>
52 <then>
53 <echo message="Copying gdbserver to the apk to enable native debugging"/ >
54 <copy todir="${out.dir}/libs/armeabi">
55 <path refid="native.libs.gdbserver"/>
56 </copy>
57 </then>
58 </if>
59 </target>
39 60
40 <import file="${sdk.dir}/tools/ant/build.xml" /> 61 <import file="${sdk.dir}/tools/ant/build.xml" />
41 62
42 </project> 63 </project>
OLDNEW
« no previous file with comments | « content/content_shell.gypi ('k') | testing/android/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698