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

Side by Side Diff: testing/android/native_test_apk.xml

Issue 10701113: Place jars into the java/libs for native unittest apk (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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 | Annotate | Revision Log
« no previous file with comments | « testing/android/generate_native_test.py ('k') | 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 7
8 <project name="replaceme" default="debug" basedir="."> 8 <project name="replaceme" default="debug" basedir=".">
9 9
10 <description> 10 <description>
11 Building native test runner ChromeNativeTests_replaceme.apk 11 Building native test runner ChromeNativeTests_replaceme.apk
12 </description> 12 </description>
13 13
14 <property environment="env"/> 14 <property environment="env"/>
15 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/> 15 <property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/>
16 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/> 16 <property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/>
17 <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/> 17 <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/>
18 <property name="src" location="."/> 18 <property name="src" location="."/>
19 <property name="source.dir" location="java"/> 19 <property name="source.dir" location="java/src"/>
20 <property name="target.abi" value="${APP_ABI}"/> 20 <property name="target.abi" value="${APP_ABI}"/>
21 21
22 <property name="target" value="android-${env.ANDROID_SDK_VERSION}"/> 22 <property name="target" value="android-${env.ANDROID_SDK_VERSION}"/>
23 <path id="native.libs.gdbserver"> 23 <path id="native.libs.gdbserver">
24 <fileset file="${toolchain.dir}/../../gdbserver"/> 24 <fileset file="${toolchain.dir}/../../gdbserver"/>
25 </path> 25 </path>
26 26
27 <condition property="location.base" 27 <condition property="location.base"
28 value="${sdk.dir}" 28 value="${sdk.dir}"
29 else="${sdk.dir}/platforms/android-${sdk.version}"> 29 else="${sdk.dir}/platforms/android-${sdk.version}">
(...skipping 13 matching lines...) Expand all
43 <fail message="PRODUCT_DIR env var not set?" /> 43 <fail message="PRODUCT_DIR env var not set?" />
44 </else> 44 </else>
45 </if> 45 </if>
46 </target> 46 </target>
47 47
48 <property name="out.dir" location="${PRODUCT_DIR}/replaceme_apk"/> 48 <property name="out.dir" location="${PRODUCT_DIR}/replaceme_apk"/>
49 49
50 <property name="resource.absolute.dir" value="res"/> 50 <property name="resource.absolute.dir" value="res"/>
51 <property name="gen.absolute.dir" value="${out.dir}/gen"/> 51 <property name="gen.absolute.dir" value="${out.dir}/gen"/>
52 52
53 <!-- Nilesh: this is what we should transition to. 53 <condition property="external.jars.dir"
54 TODO(jrg): make sure we transition; will involve gyp changes 54 value="${out.dir}/java/libs"
55 for placing jar outputs in new directory. 55 else="">
56 When we transition we'll probably also want to change 56 <available file="${out.dir}/java/libs" type="dir"/>
57 generate_native_test.py to copy the jars into java/libs, not 57 </condition>
58 just libs (see line 124 or so). 58 <path id="out.dex.jar.input.ref">
59 --> 59 <fileset dir="${external.jars.dir}" includes="*.jar"/>
60 <!-- 60 </path>
61 <property name="jar.libs.dir" value="${out.dir}/java/libs"/> 61 <condition property="java.compilerargs"
62 value="-classpath ${toString:out.dex.jar.input.ref}">
63 <not>
64 <equals arg1="${external.jars.dir}" arg2=""/>
65 </not>
66 </condition>
62 <property name="native.libs.absolute.dir" location="${out.dir}/libs" /> 67 <property name="native.libs.absolute.dir" location="${out.dir}/libs" />
63 -->
64 68
65 <target name="-post-compile"> 69 <target name="-post-compile">
66 <!-- copy gdbserver to main libs directory if building debug. --> 70 <!-- copy gdbserver to main libs directory if building debug. -->
67 <if> 71 <if>
68 <condition> 72 <condition>
69 <equals arg1="${build.target}" arg2="debug" /> 73 <equals arg1="${build.target}" arg2="debug" />
70 </condition> 74 </condition>
71 <then> 75 <then>
72 <echo message="Copying gdbserver to the apk to enable native debugging"/ > 76 <echo message="Copying gdbserver to the apk to enable native debugging"/ >
73 <copy todir="${out.dir}/libs/${target.abi}"> 77 <copy todir="${out.dir}/libs/${target.abi}">
74 <path refid="native.libs.gdbserver"/> 78 <path refid="native.libs.gdbserver"/>
75 </copy> 79 </copy>
76 </then> 80 </then>
77 </if> 81 </if>
78 </target> 82 </target>
79 83
80 <import file="${sdk.dir}/tools/ant/build.xml" /> 84 <import file="${sdk.dir}/tools/ant/build.xml" />
81 85
82 </project> 86 </project>
OLDNEW
« no previous file with comments | « testing/android/generate_native_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698