media/omx-plugin/Makefile.in
author Ehsan Akhgari <ehsan@mozilla.com>
Tue, 15 Oct 2013 11:54:08 -0400
changeset 150777 9b752936ade2f76563ad32a9337e062b490f55df
parent 149701 c9d0dc574767a9ad61e7b997490d699a040a24df
child 153169 c7558eab4d70ad6243e1beb4778b49efb32aaaf0
permissions -rw-r--r--
Bug 924012 - Provide a HashString version for char16_t if needed; r=Waldo

# Copyright 2012 Mozilla Foundation and Mozilla contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

MODULE_NAME = omxplugin
FORCE_SHARED_LIB = 1

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

# must link statically with the CRT; this isn't Gecko code
USE_STATIC_LIBS = 1

include $(topsrcdir)/config/rules.mk

ifdef GNU_CXX
# Stagefright header files define many multichar constants.
CXXFLAGS += -Wno-multichar
endif

INCLUDES        += \
                -I$(srcdir)/../../content/media/plugins \
                $(NULL)

ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
EXTRA_DSO_LDOPTS += \
               -lutils -lstagefright -lmedia -lstagefright_omx -lbinder -lui \
               -lhardware -lcutils \
		$(NULL)

INCLUDES        += \
                -I$(ANDROID_SOURCE)/dalvik/libnativehelper/include/nativehelper \
                -I$(ANDROID_SOURCE)/frameworks/base/include/ \
                -I$(ANDROID_SOURCE)/frameworks/base/include/binder/ \
                -I$(ANDROID_SOURCE)/frameworks/base/include/utils/ \
                -I$(ANDROID_SOURCE)/frameworks/base/include/media/ \
                -I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright/openmax \
                -I$(ANDROID_SOURCE)/frameworks/base/media/libstagefright/include \
                -I$(ANDROID_SOURCE)/frameworks/base/native/include \
                -I$(ANDROID_SOURCE)/system/core/include \
                -I$(ANDROID_SOURCE)/hardware/libhardware/include \
                $(NULL)
else
EXTRA_DSO_LDOPTS += \
		-L$(DEPTH)/media/omx-plugin/lib/ics/libutils \
		-lutils \
		-L$(DEPTH)/media/omx-plugin/lib/ics/libstagefright \
		-lstagefright \
		$(NULL)

INCLUDES        += \
                -I$(srcdir)/include/ics \
                -I$(srcdir)/include/ics/media/stagefright/openmax \
                $(NULL)
endif

libs::	$(DLL_PREFIX)$(LIBRARY_NAME)$(DLL_SUFFIX)
	$(INSTALL) $< $(DEPTH)/dist/bin

libs:: $(PROGRAMS)