Bug 864164 followup - Also send the params to the stream when setting the buffer...
[gecko.git] / media / omx-plugin / Makefile.in
blob9372f12878e262c54bac84f6b64a071c9c75a1d3
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.
15 DEPTH = @DEPTH@
16 topsrcdir = @top_srcdir@
17 srcdir = @srcdir@
18 VPATH = @srcdir@
20 include $(DEPTH)/config/autoconf.mk
22 MODULE_NAME = omxplugin
23 LIBRARY_NAME = omxplugin
24 FORCE_SHARED_LIB = 1
26 # Don't use STL wrappers; this isn't Gecko code
27 STL_FLAGS =
29 # must link statically with the CRT; this isn't Gecko code
30 USE_STATIC_LIBS = 1
32 # Need to custom install OMX media plugin
33 NO_DIST_INSTALL = 1
34 NO_INSTALL = 1
36 CPPSRCS = \
37 OmxPlugin.cpp \
38 $(NULL)
40 include $(topsrcdir)/config/rules.mk
42 ifdef GNU_CXX
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
46 endif
48 INCLUDES += \
49 -I$(srcdir)/../../content/media/plugins \
50 $(NULL)
52 ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
53 EXTRA_DSO_LDOPTS += \
54 -lutils -lstagefright -lmedia -lstagefright_omx -lbinder -lui \
55 -lhardware -lcutils \
56 $(NULL)
58 INCLUDES += \
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 \
69 $(NULL)
70 else
71 EXTRA_DSO_LDOPTS += \
72 -L$(DEPTH)/media/omx-plugin/lib/ics/libutils \
73 -lutils \
74 -L$(DEPTH)/media/omx-plugin/lib/ics/libstagefright \
75 -lstagefright \
76 $(NULL)
78 INCLUDES += \
79 -I$(srcdir)/include/ics \
80 -I$(srcdir)/include/ics/media/stagefright/openmax \
81 $(NULL)
82 endif
84 libs:: $(DLL_PREFIX)$(LIBRARY_NAME)$(DLL_SUFFIX)
85 $(INSTALL) $< $(DEPTH)/dist/bin
87 libs:: $(PROGRAMS)