Index: build/android_jar_location.sh |
diff --git a/build/android_jar_location.sh b/build/android_jar_location.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..620f3cabbed73b92b1c70d07d78e279c32b9f7c2 |
--- /dev/null |
+++ b/build/android_jar_location.sh |
@@ -0,0 +1,12 @@ |
+#!/bin/sh |
+# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# Tries to find the location of android.jar in the android SDK root dir. |
+# This script is called from system_classes_jni_generator.gypi |
+if [ -f $ANDROID_SDK_ROOT/android.jar ]; then |
+ /bin/echo -n $ANDROID_SDK_ROOT ; |
+else /bin/echo -n |
+ /bin/echo -n $ANDROID_SDK_ROOT/platforms/android-${ANDROID_SDK_VERSION} ; |
+fi |