1 # Copyright 2012 Mozilla Foundation and Mozilla contributors
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 topsrcdir
= @top_srcdir@
20 include $(DEPTH
)/config
/autoconf.mk
22 MODULE_NAME
= omxplugin
23 LIBRARY_NAME
= omxplugin
26 # Don't use STL wrappers; this isn't Gecko code
29 # must link statically with the CRT; this isn't Gecko code
32 # Need to custom install OMX media plugin
40 include $(topsrcdir
)/config
/rules.mk
43 # Turn off C++ 11 features due to conflicts with Android OS headers and char16_t definition
44 # Stagefright header files define many multichar constants.
45 CXXFLAGS
+= -std
=gnu
++98 -Wno-multichar
49 -I
$(srcdir)/..
/..
/content
/media
/plugins \
52 ifeq ($(MOZ_WIDGET_TOOLKIT
),gonk
)
54 -lutils
-lstagefright
-lmedia
-lstagefright_omx
-lbinder
-lui \
59 -I
$(ANDROID_SOURCE
)/dalvik
/libnativehelper
/include/nativehelper \
60 -I
$(ANDROID_SOURCE
)/frameworks
/base
/include/ \
61 -I
$(ANDROID_SOURCE
)/frameworks
/base
/include/binder
/ \
62 -I
$(ANDROID_SOURCE
)/frameworks
/base
/include/utils
/ \
63 -I
$(ANDROID_SOURCE
)/frameworks
/base
/include/media
/ \
64 -I
$(ANDROID_SOURCE
)/frameworks
/base
/include/media
/stagefright
/openmax \
65 -I
$(ANDROID_SOURCE
)/frameworks
/base
/media
/libstagefright
/include \
66 -I
$(ANDROID_SOURCE
)/frameworks
/base
/native
/include \
67 -I
$(ANDROID_SOURCE
)/system
/core
/include \
68 -I
$(ANDROID_SOURCE
)/hardware
/libhardware
/include \
72 -L
$(DEPTH
)/media
/omx-plugin
/lib
/ics
/libutils \
74 -L
$(DEPTH
)/media
/omx-plugin
/lib
/ics
/libstagefright \
79 -I
$(srcdir)/include/ics \
80 -I
$(srcdir)/include/ics
/media
/stagefright
/openmax \
84 libs
:: $(DLL_PREFIX
)$(LIBRARY_NAME
)$(DLL_SUFFIX
)
85 $(INSTALL
) $< $(DEPTH
)/dist/bin