зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1338629 - Update annotation processing classpath to reflect SDK 25.3+ r=nalexander
It looks like Google decided to split these jars out a bit, so we need to piece them all back together. We could probably just query the sdk version instead, but I'm not 100% sure know when this setup changed - moreover we don't know when (if?) the paths are likely to change again. SDK 26.0 still has lint 25.3.1, so the SDK and lint versions don't appear to be tied. It seems that only the lint* jars are needed to compile 'build/annotationProcessor', however we need all the remaining jars in the classpath when running that code in 'widget/android/bindings'. MozReview-Commit-ID: GAKwMrVXW55 --HG-- extra : rebase_source : 4e790aaccae8ccc3f151c39bf1ef4404b2581d7a
This commit is contained in:
Родитель
a8810d8865
Коммит
86b076ed2e
|
@ -18,7 +18,4 @@ jar.sources += [
|
|||
'utils/GeneratableElementIterator.java',
|
||||
'utils/Utils.java',
|
||||
]
|
||||
jar.extra_jars += [
|
||||
CONFIG['ANDROID_TOOLS'] + '/lib/lint.jar',
|
||||
CONFIG['ANDROID_TOOLS'] + '/lib/lint-checks.jar',
|
||||
]
|
||||
jar.extra_jars += CONFIG['ANDROID_LINT_CLASSPATH'].split()
|
||||
|
|
|
@ -237,6 +237,8 @@ fi
|
|||
dnl Configure an Android SDK.
|
||||
dnl Arg 1: target SDK version, like 23.
|
||||
dnl Arg 2: list of build-tools versions, like "23.0.3 23.0.1".
|
||||
dnl Arg 3: target lint version, like "25.3.1" (note: we fall back to
|
||||
dnl unversioned lint if this version is not found).
|
||||
AC_DEFUN([MOZ_ANDROID_SDK],
|
||||
[
|
||||
|
||||
|
@ -361,6 +363,26 @@ case "$target" in
|
|||
;;
|
||||
esac
|
||||
|
||||
android_lint_target=$3
|
||||
ANDROID_LINT_CLASSPATH=""
|
||||
android_lint_versioned_jar="$ANDROID_SDK_ROOT/tools/lib/lint-$android_lint_target.jar"
|
||||
android_lint_unversioned_jar="$ANDROID_SDK_ROOT/tools/lib/lint.jar"
|
||||
if test -e "$android_lint_versioned_jar" ; then
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $android_lint_versioned_jar"
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $ANDROID_SDK_ROOT/tools/lib/lint-checks-$android_lint_target.jar"
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $ANDROID_SDK_ROOT/tools/lib/sdklib-$android_lint_target.jar"
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $ANDROID_SDK_ROOT/tools/lib/repository-$android_lint_target.jar"
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $ANDROID_SDK_ROOT/tools/lib/common-$android_lint_target.jar"
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $ANDROID_SDK_ROOT/tools/lib/lint-api-$android_lint_target.jar"
|
||||
elif test -e "$android_lint_unversioned_jar" ; then
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $android_lint_unversioned_jar"
|
||||
ANDROID_LINT_CLASSPATH="$ANDROID_LINT_CLASSPATH $ANDROID_SDK_ROOT/tools/lib/lint-checks.jar"
|
||||
else
|
||||
AC_MSG_ERROR([Unable to find android sdk's lint jar. This probably means that you need to update android.m4 to find the latest version of lint-*.jar and all its dependencies. (looked for $android_lint_versioned_jar and $android_lint_unversioned_jar)])
|
||||
fi
|
||||
AC_MSG_RESULT([$ANDROID_LINT_CLASSPATH])
|
||||
AC_SUBST(ANDROID_LINT_CLASSPATH)
|
||||
|
||||
MOZ_ARG_WITH_STRING(android-min-sdk,
|
||||
[ --with-android-min-sdk=[VER] Impose a minimum Firefox for Android SDK version],
|
||||
[ MOZ_ANDROID_MIN_SDK_VERSION=$withval ])
|
||||
|
|
|
@ -2344,7 +2344,7 @@ dnl ========================================================
|
|||
if test -z "$gonkdir" ; then
|
||||
case "$MOZ_BUILD_APP" in
|
||||
mobile/android)
|
||||
MOZ_ANDROID_SDK(23, 23.0.3 23.0.1)
|
||||
MOZ_ANDROID_SDK(23, 23.0.3 23.0.1, 25.3.1)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
|
||||
annotation_processor_jar_files := \
|
||||
$(DEPTH)/build/annotationProcessors/annotationProcessors.jar \
|
||||
$(ANDROID_TOOLS)/lib/lint.jar \
|
||||
$(ANDROID_TOOLS)/lib/lint-checks.jar \
|
||||
$(ANDROID_LINT_CLASSPATH) \
|
||||
$(NULL)
|
||||
|
||||
sdk_processor := \
|
||||
|
|
Загрузка…
Ссылка в новой задаче