Skip to content

Commit

Permalink
Fix the gdb path for NDK-r8b.
Browse files Browse the repository at this point in the history
- Removed android.toolchain property.
- Added android.gdbserver property.
- Changed property-location to check the both file and directory's existence.

TBR=jam
BUG=

Review URL: https://chromiumcodereview.appspot.com/10823435

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155108 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
michaelbai@chromium.org committed Sep 6, 2012
1 parent e890e09 commit 8eecfc6
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build/android/ant/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<condition>
<and>
<equals arg1="@{check-exists}" arg2="true"/>
<not><available type="dir" file="@{location}"/></not>
<not><available file="@{location}"/></not>
</and>
</condition>
</fail>
Expand All @@ -74,5 +74,5 @@
<property-location name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
<property-value name="target" value="android-${ANDROID_SDK_VERSION}"/>
<property name="source.dir" location="src"/>
<property-location name="toolchain.dir" location="${ANDROID_TOOLCHAIN}"/>
<property-location name="android.gdbserver" location="${ANDROID_GDBSERVER}"/>
</project>
2 changes: 1 addition & 1 deletion build/android/gdb_apk
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ file ${app_process}
target remote :4321
EOF

gdb=$(echo $ANDROID_TOOLCHAIN/*gdb)
gdb=$(echo $ANDROID_TOOLCHAIN/../../linux-x86/bin/*gdb)
if [[ ! -f ${gdb} ]] ; then
echo "Wow no gdb in env var ANDROID_TOOLCHAIN which is $ANDROID_TOOLCHAIN"
exit 4
Expand Down
2 changes: 0 additions & 2 deletions build/apk_test.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
'--ant-args',
'-DANDROID_SDK_VERSION=<(android_sdk_version)',
'--ant-args',
'-DANDROID_TOOLCHAIN=<(android_toolchain)',
'--ant-args',
'-DANDROID_GDBSERVER=<(android_gdbserver)',
'--ant-args',
'-DCHROMIUM_SRC=<(ant_build_out)/../..',
Expand Down
1 change: 0 additions & 1 deletion build/java.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
'-DANDROID_SDK_ROOT=<(android_sdk_root)',
'-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
'-DANDROID_SDK_VERSION=<(android_sdk_version)',
'-DANDROID_TOOLCHAIN=<(android_toolchain)',
'-DANDROID_GDBSERVER=<(android_gdbserver)',
'-Dbasedir=<(java_in_dir)',
'-buildfile',
Expand Down
1 change: 0 additions & 1 deletion content/content_shell.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@
'-DANDROID_SDK_ROOT=<(android_sdk_root)',
'-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
'-DANDROID_SDK_VERSION=<(android_sdk_version)',
'-DANDROID_TOOLCHAIN=<(android_toolchain)',
'-DANDROID_GDBSERVER=<(android_gdbserver)',
'-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
'-buildfile',
Expand Down
1 change: 0 additions & 1 deletion content/content_tests.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,6 @@
'-DANDROID_SDK_ROOT=<(android_sdk_root)',
'-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
'-DANDROID_SDK_VERSION=<(android_sdk_version)',
'-DANDROID_TOOLCHAIN=<(android_toolchain)',
'-DANDROID_GDBSERVER=<(android_gdbserver)',
'-buildfile',
'<(DEPTH)/content/shell/android/javatests/content_shell_test_apk.xml',
Expand Down
2 changes: 1 addition & 1 deletion content/shell/android/java/content_shell_apk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<property name="gen.absolute.dir" value="${out.dir}/gen"/>
<property name="jar.libs.dir" value="${out.dir}/java/libs"/>
<path id="native.libs.gdbserver">
<fileset file="${toolchain.dir}/../../gdbserver"/>
<fileset file="${android.gdbserver}"/>
</path>
<property name="native.libs.absolute.dir" location="${out.dir}/libs"/>
<property name="asset.absolute.dir" location="${out.dir}/assets"/>
Expand Down
2 changes: 1 addition & 1 deletion content/shell/android/javatests/content_shell_test_apk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<property name="resource.absolute.dir" value="../res"/>
<property name="gen.absolute.dir" value="${out.dir}/gen"/>
<path id="native.libs.gdbserver">
<fileset file="${toolchain.dir}/../../gdbserver"/>
<fileset file="${android.gdbserver}"/>
</path>
<property name="native.libs.absolute.dir" location="${out.dir}/libs" />
<property name="asset.absolute.dir" location="${out.dir}/assets" />
Expand Down
1 change: 0 additions & 1 deletion testing/android/native_test.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
'-DANDROID_SDK_ROOT=<(android_sdk_root)',
'-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
'-DANDROID_SDK_VERSION=<(android_sdk_version)',
'-DANDROID_TOOLCHAIN=<(android_toolchain)',
'-DANDROID_GDBSERVER=<(android_gdbserver)',
'-DCHROMIUM_SRC=<(ant_build_out)/../..',
'-buildfile',
Expand Down
2 changes: 1 addition & 1 deletion testing/android/native_test_apk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ found in the LICENSE file.
<property name="target.abi" value="${APP_ABI}"/>

<path id="native.libs.gdbserver">
<fileset file="${toolchain.dir}/../../gdbserver"/>
<fileset file="${android.gdbserver}"/>
</path>

<!-- We expect PRODUCT_DIR to be set like the gyp var
Expand Down

0 comments on commit 8eecfc6

Please sign in to comment.