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

Side by Side Diff: content/shell/android/javatests/content_shell_test_apk.xml

Issue 10825033: Check variable PRODUCT_DIR firstly for content shell test (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 4 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 | « 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="ContentShellTest" default="debug" basedir="."> 7 <project name="ContentShellTest" default="debug" basedir=".">
8 8
9 <description> 9 <description>
10 Building ContentShellTest.apk 10 Building ContentShellTest.apk
(...skipping 15 matching lines...) Expand all
26 <property name="asset.absolute.dir" location="${out.dir}/assets" /> 26 <property name="asset.absolute.dir" location="${out.dir}/assets" />
27 27
28 <path id="out.dex.jar.input.ref"> 28 <path id="out.dex.jar.input.ref">
29 <fileset dir="${PRODUCT_DIR}/content_shell/java/libs"/> 29 <fileset dir="${PRODUCT_DIR}/content_shell/java/libs"/>
30 <pathelement location="${PRODUCT_DIR}/content_shell/classes"/> 30 <pathelement location="${PRODUCT_DIR}/content_shell/classes"/>
31 </path> 31 </path>
32 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in put.ref}"/> 32 <property name="java.compilerargs" value="-classpath ${toString:out.dex.jar.in put.ref}"/>
33 33
34 <!-- We expect PRODUCT_DIR to be set like the gyp var 34 <!-- We expect PRODUCT_DIR to be set like the gyp var
35 (e.g. $ROOT/out/Debug) --> 35 (e.g. $ROOT/out/Debug) -->
36 <!-- TODO(satish): ideally we need this to run before -build-setup, where 36 <fail message="PRODUCT_DIR env var not set?">
37 directories are made based on this variable. --> 37 <condition>
38 <target name="-pre-build"> 38 <not>
39 <if> 39 <isset property="PRODUCT_DIR"/>
40 <condition> 40 </not>
41 <isset property="PRODUCT_DIR" /> 41 </condition>
42 </condition> 42 </fail>
43 <else>
44 <fail message="PRODUCT_DIR env var not set?" />
45 </else>
46 </if>
47 </target>
48 43
49 <target name="-post-compile"> 44 <target name="-post-compile">
50 <!-- copy gdbserver to main libs directory if building debug. 45 <!-- copy gdbserver to main libs directory if building debug.
51 TODO(jrg): for now, Chrome on Android always builds native code 46 TODO(jrg): for now, Chrome on Android always builds native code
52 as Release and java/ant as Debug, which means we always install 47 as Release and java/ant as Debug, which means we always install
53 gdbserver. Resolve this discrepancy, possibly by making this 48 gdbserver. Resolve this discrepancy, possibly by making this
54 Release Official build java/ant as Release. --> 49 Release Official build java/ant as Release. -->
55 <if> 50 <if>
56 <condition> 51 <condition>
57 <equals arg1="${build.target}" arg2="debug" /> 52 <equals arg1="${build.target}" arg2="debug" />
58 </condition> 53 </condition>
59 <then> 54 <then>
60 <echo message="Copying gdbserver to the apk to enable native debugging"/ > 55 <echo message="Copying gdbserver to the apk to enable native debugging"/ >
61 <copy todir="${out.dir}/libs/${target.abi}"> 56 <copy todir="${out.dir}/libs/${target.abi}">
62 <path refid="native.libs.gdbserver"/> 57 <path refid="native.libs.gdbserver"/>
63 </copy> 58 </copy>
64 </then> 59 </then>
65 </if> 60 </if>
66 </target> 61 </target>
67 62
68 <import file="${sdk.dir}/tools/ant/build.xml" /> 63 <import file="${sdk.dir}/tools/ant/build.xml" />
69 64
70 </project> 65 </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