From ee05979f3f77c1c39f7c5b6f98d14b15d7c31181 Mon Sep 17 00:00:00 2001 From: "jrg@chromium.org" Date: Thu, 10 May 2012 01:50:47 +0000 Subject: [PATCH] Android content shell bringup. Build media java files (we weren't). Fix adb_install_content_shell for cases where the app was stuck. Add upstream staging gyp var / #define. Be more consistent about jar output files (all in lib.java). Upstream a bunch of random files (e.g. ppapi). Upstream a bunch of java and native code hit as part of shlib init. Properly package jar files in content shell. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10377059 git-svn-id: http://src.chromium.org/svn/trunk/src/build@136219 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/adb_install_content_shell | 2 ++ android/envsetup.sh | 8 ++++++++ android/gdb_content_shell | 6 ++++-- common.gypi | 9 +++++++++ java.gypi | 4 ++-- 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/android/adb_install_content_shell b/android/adb_install_content_shell index b4d805213..d1a8ee965 100755 --- a/android/adb_install_content_shell +++ b/android/adb_install_content_shell @@ -4,4 +4,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +# install -r doesn't always work? Try uninstalling first. +adb uninstall org.chromium.content_shell adb install -r ${CHROME_SRC}/out/Release/content_shell/ContentShell-debug.apk diff --git a/android/envsetup.sh b/android/envsetup.sh index ead8fdf46..dcf51ee13 100755 --- a/android/envsetup.sh +++ b/android/envsetup.sh @@ -62,6 +62,14 @@ case "${TARGET_PRODUCT-full}" in return 1 esac +# If we are building NDK/SDK, and in the upstream (open source) tree, +# define a special variable for bringup purposes. +case "${ANDROID_BUILD_TOP-undefined}" in + "undefined") + DEFINES+=" android_upstream_bringup=1" + ;; +esac + toolchain_path="${ANDROID_NDK_ROOT}/toolchains/${toolchain_arch}/prebuilt/" export ANDROID_TOOLCHAIN="${toolchain_path}/${toolchain_dir}/bin/" diff --git a/android/gdb_content_shell b/android/gdb_content_shell index 54a705d42..94c096287 100755 --- a/android/gdb_content_shell +++ b/android/gdb_content_shell @@ -72,8 +72,9 @@ fi # gdb commands cmdfile=$(mktemp /tmp/gdb_android_XXXXXXXX) cat >$cmdfile<