mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
86b076ed2e
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
27 lines
1.1 KiB
Makefile
27 lines
1.1 KiB
Makefile
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
# Bug 1099345 - The SDK's lint code (used by the code generator) does not enjoy
|
|
# concurrent access to a cache that it generates.
|
|
.NOTPARALLEL:
|
|
|
|
annotation_processor_jar_files := \
|
|
$(DEPTH)/build/annotationProcessors/annotationProcessors.jar \
|
|
$(ANDROID_LINT_CLASSPATH) \
|
|
$(NULL)
|
|
|
|
sdk_processor := \
|
|
$(JAVA) \
|
|
-Dcom.android.tools.lint.bindir='$(ANDROID_TOOLS)' \
|
|
-classpath $(subst $(NULL) ,:,$(strip $(annotation_processor_jar_files))) \
|
|
org.mozilla.gecko.annotationProcessors.SDKProcessor
|
|
|
|
# For the benefit of readers: the following pattern rule says that,
|
|
# for example, MediaCodec.cpp and MediaCodec.h can be produced from
|
|
# MediaCodec-classes.txt. This formulation invokes the SDK processor
|
|
# at most once.
|
|
|
|
%.cpp %.h: $(ANDROID_SDK)/android.jar %-classes.txt $(annotation_processor_jar_files)
|
|
$(sdk_processor) $(ANDROID_SDK)/android.jar $(srcdir)/$*-classes.txt $(CURDIR) $* 16
|