diff options
Diffstat (limited to 'widget/android/bindings')
-rw-r--r-- | widget/android/bindings/AndroidRect-classes.txt | 2 | ||||
-rw-r--r-- | widget/android/bindings/Bundle-classes.txt | 1 | ||||
-rw-r--r-- | widget/android/bindings/KeyEvent-classes.txt | 1 | ||||
-rw-r--r-- | widget/android/bindings/Makefile.in | 27 | ||||
-rw-r--r-- | widget/android/bindings/MediaCodec-classes.txt | 5 | ||||
-rw-r--r-- | widget/android/bindings/MotionEvent-classes.txt | 1 | ||||
-rw-r--r-- | widget/android/bindings/SurfaceTexture-classes.txt | 2 | ||||
-rw-r--r-- | widget/android/bindings/ViewConfiguration-classes.txt | 1 | ||||
-rw-r--r-- | widget/android/bindings/moz.build | 41 |
9 files changed, 81 insertions, 0 deletions
diff --git a/widget/android/bindings/AndroidRect-classes.txt b/widget/android/bindings/AndroidRect-classes.txt new file mode 100644 index 000000000..cbacca81e --- /dev/null +++ b/widget/android/bindings/AndroidRect-classes.txt @@ -0,0 +1,2 @@ +android.graphics.Rect +android.graphics.RectF diff --git a/widget/android/bindings/Bundle-classes.txt b/widget/android/bindings/Bundle-classes.txt new file mode 100644 index 000000000..9f535cddb --- /dev/null +++ b/widget/android/bindings/Bundle-classes.txt @@ -0,0 +1 @@ +android.os.Bundle diff --git a/widget/android/bindings/KeyEvent-classes.txt b/widget/android/bindings/KeyEvent-classes.txt new file mode 100644 index 000000000..b73e621ef --- /dev/null +++ b/widget/android/bindings/KeyEvent-classes.txt @@ -0,0 +1 @@ +android.view.KeyEvent diff --git a/widget/android/bindings/Makefile.in b/widget/android/bindings/Makefile.in new file mode 100644 index 000000000..ea66e6022 --- /dev/null +++ b/widget/android/bindings/Makefile.in @@ -0,0 +1,27 @@ +# 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_TOOLS)/lib/lint.jar \ + $(ANDROID_TOOLS)/lib/lint-checks.jar \ + $(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 diff --git a/widget/android/bindings/MediaCodec-classes.txt b/widget/android/bindings/MediaCodec-classes.txt new file mode 100644 index 000000000..ea26029af --- /dev/null +++ b/widget/android/bindings/MediaCodec-classes.txt @@ -0,0 +1,5 @@ +android.media.MediaCodec +android.media.MediaCodec$BufferInfo +android.media.MediaCodec$CryptoInfo +android.media.MediaDrm$KeyStatus +android.media.MediaFormat diff --git a/widget/android/bindings/MotionEvent-classes.txt b/widget/android/bindings/MotionEvent-classes.txt new file mode 100644 index 000000000..dd38dc000 --- /dev/null +++ b/widget/android/bindings/MotionEvent-classes.txt @@ -0,0 +1 @@ +android.view.MotionEvent diff --git a/widget/android/bindings/SurfaceTexture-classes.txt b/widget/android/bindings/SurfaceTexture-classes.txt new file mode 100644 index 000000000..5c7ca8968 --- /dev/null +++ b/widget/android/bindings/SurfaceTexture-classes.txt @@ -0,0 +1,2 @@ +android.graphics.SurfaceTexture +android.view.Surface diff --git a/widget/android/bindings/ViewConfiguration-classes.txt b/widget/android/bindings/ViewConfiguration-classes.txt new file mode 100644 index 000000000..e6601e65f --- /dev/null +++ b/widget/android/bindings/ViewConfiguration-classes.txt @@ -0,0 +1 @@ +android.view.ViewConfiguration diff --git a/widget/android/bindings/moz.build b/widget/android/bindings/moz.build new file mode 100644 index 000000000..1bd71fa95 --- /dev/null +++ b/widget/android/bindings/moz.build @@ -0,0 +1,41 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +# List of stems to generate .cpp and .h files for. To add a stem, add it to +# this list and ensure that $(stem)-classes.txt exists in this directory. +generated = [ + 'AndroidRect', + 'Bundle', + 'KeyEvent', + 'MediaCodec', + 'MotionEvent', + 'SurfaceTexture', + 'ViewConfiguration' +] + +SOURCES += ['!%s.cpp' % stem for stem in generated] + +EXPORTS += ['!%s.h' % stem for stem in generated] + +# We'd like to add these to a future GENERATED_EXPORTS list, but for now we mark +# them as generated here and manually install them in Makefile.in. +GENERATED_FILES += [stem + '.h' for stem in generated] + +# There is an unfortunate race condition when using generated SOURCES and +# pattern rules (see Makefile.in) that manifests itself as a VPATH resolution +# conflict: MediaCodec.o looks for MediaCodec.cpp and $(CURDIR)/MediaCodec.cpp, +# and the pattern rule is matched but doesn't resolve both sources, causing a +# failure. Adding the SOURCES to GENERATED_FILES causes the sources +# to be built at export time, which is before MediaCodec.o needs them; and by +# the time MediaCodec.o is built, the source is in place and the VPATH +# resolution works as expected. +GENERATED_FILES += [f[1:] for f in SOURCES] + +FINAL_LIBRARY = 'xul' + +LOCAL_INCLUDES += [ + '/widget/android', +] |