Bumping manifests a=b2g-bump
[gecko.git] / media / omx-plugin / moz.build
blob05bc4c20f4f82159b6ab91f7d2716b91650b0a15
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.
17 SOURCES += [
18     'OmxPlugin.cpp',
21 LIBRARY_NAME = 'omxplugin'
23 FORCE_SHARED_LIB = True
25 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
26     pass
27 else:
28     LOCAL_INCLUDES += [
29         'include/ics',
30         'include/ics/media/stagefright/openmax',
31     ]
33 if CONFIG['GNU_CXX']:
34     # Stagefright header files define many multichar constants.
35     CXXFLAGS += ['-Wno-multichar']
37 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
38     CXXFLAGS += [
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',
50          ]
51     ]
52 else:
53     USE_LIBS += [
54         '/media/omx-plugin/lib/ics/libstagefright/stagefright',
55         '/media/omx-plugin/lib/ics/libutils/utils',
56         'videoeditorplayer',
57     ]
59 # Don't use STL wrappers; this isn't Gecko code
60 DISABLE_STL_WRAPPING = True
61 NO_VISIBILITY_FLAGS = True