1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # Copyright 2013 Mozilla Foundation and Mozilla contributors
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 LIBRARY_NAME = 'omxplugin'
23 FORCE_SHARED_LIB = True
25 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
30 'include/ics/media/stagefright/openmax',
34 # Stagefright header files define many multichar constants.
35 CXXFLAGS += ['-Wno-multichar']
37 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
39 '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
40 'dalvik/libnativehelper/include/nativehelper',
41 'frameworks/base/include/',
42 'frameworks/base/include/binder/',
43 'frameworks/base/include/utils/',
44 'frameworks/base/include/media/',
45 'frameworks/base/include/media/stagefright/openmax',
46 'frameworks/base/media/libstagefright/include',
47 'frameworks/base/native/include',
48 'system/core/include',
49 'hardware/libhardware/include',
54 '/media/omx-plugin/lib/ics/libstagefright/stagefright',
55 '/media/omx-plugin/lib/ics/libutils/utils',
59 # Don't use STL wrappers; this isn't Gecko code
60 DISABLE_STL_WRAPPING = True
61 NO_VISIBILITY_FLAGS = True