2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:22 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# Copyright 2013 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.
|
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'OmxPlugin.cpp',
|
|
|
|
]
|
|
|
|
|
2014-09-04 04:04:45 +04:00
|
|
|
SharedLibrary('omxplugin')
|
2013-12-31 13:06:11 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'include/ics',
|
|
|
|
'include/ics/media/stagefright/openmax',
|
|
|
|
]
|
2014-03-04 06:58:37 +04:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
# Stagefright header files define many multichar constants.
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-multichar',
|
|
|
|
'-Wno-shadow',
|
|
|
|
]
|
2014-03-04 06:58:37 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2015-11-04 08:28:42 +03:00
|
|
|
if CONFIG['ANDROID_VERSION'] == '15':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'%' + '%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
|
|
'dalvik/libnativehelper/include/nativehelper',
|
|
|
|
'frameworks/base/include/',
|
|
|
|
'frameworks/base/include/binder/',
|
|
|
|
'frameworks/base/include/media/',
|
|
|
|
'frameworks/base/include/media/stagefright/openmax',
|
|
|
|
'frameworks/base/include/utils/',
|
|
|
|
'frameworks/base/media/libstagefright/include',
|
|
|
|
'frameworks/base/native/include',
|
|
|
|
'hardware/libhardware/include',
|
|
|
|
'system/core/include',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
2015-03-30 17:32:10 +03:00
|
|
|
EXTRA_DSO_LDOPTS += [
|
|
|
|
'-lutils',
|
|
|
|
'-lstagefright',
|
|
|
|
'-lmedia',
|
|
|
|
'-lstagefright_omx',
|
|
|
|
'-lbinder',
|
|
|
|
'-lui',
|
|
|
|
'-lhardware',
|
|
|
|
'-lcutils',
|
|
|
|
]
|
2014-07-23 08:30:52 +04:00
|
|
|
else:
|
|
|
|
USE_LIBS += [
|
|
|
|
'/media/omx-plugin/lib/ics/libstagefright/stagefright',
|
|
|
|
'/media/omx-plugin/lib/ics/libutils/utils',
|
|
|
|
'videoeditorplayer',
|
|
|
|
]
|
2014-03-05 04:39:06 +04:00
|
|
|
|
|
|
|
# Don't use STL wrappers; this isn't Gecko code
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-05-06 09:28:04 +04:00
|
|
|
NO_VISIBILITY_FLAGS = True
|