Chromium Code Reviews| Index: platform_tools/android/bin/android_make |
| diff --git a/platform_tools/android/bin/android_make b/platform_tools/android/bin/android_make |
| index a5f5268931010c134cbf19a6fc15888ef2bb41ce..83bd0401334d4c4acde9598bb7c5bbb9d15d2d73 100755 |
| --- a/platform_tools/android/bin/android_make |
| +++ b/platform_tools/android/bin/android_make |
| @@ -1,8 +1,5 @@ |
| #!/bin/bash |
| -# Fail-fast if anything in the script fails. |
|
epoger
2014/04/03 14:15:37
mtklein- I see you added the "set -e" in https://g
mtklein
2014/04/03 14:33:51
Yeah, please leave it in once you're done hacking.
djsollen
2014/04/03 14:43:51
I disagree that it should be added back here. If
mtklein
2014/04/03 14:46:29
I don't get it. Does android_setup.sh intentional
epoger
2014/04/03 14:50:07
The problem is, with "set -e" in place, there are
mtklein
2014/04/03 15:17:26
Right, so if nothing's changed, let's not change t
|
| -set -e |
| - |
| # Remove any existing .android_config file before running android_setup. If we |
| # did not remove this now then we would build for whatever device type was |
| # listed in the .android_config instead of the default device type. |
| @@ -11,14 +8,10 @@ rm -f .android_config |
| SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| source $SCRIPT_DIR/android_setup.sh |
|
mtklein
2014/04/03 14:33:51
Derek, remind me why android_setup.sh is a separat
djsollen
2014/04/03 14:43:51
The android_setup.sh script is a common include fi
|
| -if [ $(basename $0) = "android_make" ]; then |
| - GYP_GENERATORS=make-android make ${APP_ARGS[@]} |
| -else |
| - GYP_GENERATORS=ninja-android ./gyp_skia |
| - OUT=$SKIA_OUT/${BUILDTYPE-Debug} # Defaults to Debug if BUILDTYPE isn't set. |
| - ninja -C $OUT ${APP_ARGS[@]} |
| - ln -sf lib $OUT/lib.target # android_run_skia looks in lib.target; ninja writes to lib. |
| -fi |
| +GYP_GENERATORS=ninja-android ./gyp_skia |
| +OUT=$SKIA_OUT/${BUILDTYPE-Debug} # Defaults to Debug if BUILDTYPE isn't set. |
| +ninja -C $OUT ${APP_ARGS[@]} |
| +ln -sf lib $OUT/lib.target # android_run_skia looks in lib.target; ninja writes to lib. |
|
mtklein
2014/04/03 14:33:51
Can you add TODO(mtklein): change android_run_skia
epoger
2014/04/03 14:50:07
You mean like this?
epoger
2014/04/03 14:52:01
(You'll have to see patchset 2 to see the TODO I a
|
| # Write the device id into the .android_config file. This tells |
| # android_run_skia the last build we completed. |