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

Unified Diff: testing/android/native_test_apk.xml

Issue 10689102: Copying gdbserver to the apk to enable native debugging for native_test_apk (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Refine the patch 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/android/generate_native_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/android/native_test_apk.xml
diff --git a/testing/android/native_test_apk.xml b/testing/android/native_test_apk.xml
index fe2db25eb8bbd366196def54c3346bd6f19150c4..fff76710f789e965caf0c7a1955cda4e793dfe6c 100644
--- a/testing/android/native_test_apk.xml
+++ b/testing/android/native_test_apk.xml
@@ -14,10 +14,15 @@ found in the LICENSE file.
<property environment="env"/>
<property name="sdk.dir" location="${env.ANDROID_SDK_ROOT}"/>
<property name="sdk.version" value="${env.ANDROID_SDK_VERSION}"/>
+ <property name="toolchain.dir" location="${env.ANDROID_TOOLCHAIN}"/>
<property name="src" location="."/>
<property name="source.dir" location="java"/>
+ <property name="target.abi" value="${APP_ABI}"/>
<property name="target" value="android-${env.ANDROID_SDK_VERSION}"/>
+ <path id="native.libs.gdbserver">
+ <fileset file="${toolchain.dir}/../../gdbserver"/>
+ </path>
<condition property="location.base"
value="${sdk.dir}"
@@ -57,6 +62,21 @@ found in the LICENSE file.
<property name="native.libs.absolute.dir" location="${out.dir}/libs" />
-->
+ <target name="-post-compile">
+ <!-- copy gdbserver to main libs directory if building debug. -->
+ <if>
+ <condition>
+ <equals arg1="${build.target}" arg2="debug" />
+ </condition>
+ <then>
+ <echo message="Copying gdbserver to the apk to enable native debugging"/>
bulach 2012/07/06 09:59:12 I don't know much about this, but... does it need
+ <copy todir="${out.dir}/libs/${target.abi}">
+ <path refid="native.libs.gdbserver"/>
+ </copy>
+ </then>
+ </if>
+ </target>
+
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
« 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