michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # Copyright 2013 Mozilla Foundation and Mozilla contributors michael@0: # michael@0: # Licensed under the Apache License, Version 2.0 (the "License"); michael@0: # you may not use this file except in compliance with the License. michael@0: # You may obtain a copy of the License at michael@0: # michael@0: # http://www.apache.org/licenses/LICENSE-2.0 michael@0: # michael@0: # Unless required by applicable law or agreed to in writing, software michael@0: # distributed under the License is distributed on an "AS IS" BASIS, michael@0: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: # See the License for the specific language governing permissions and michael@0: # limitations under the License. michael@0: michael@0: SOURCES += [ michael@0: 'OmxPlugin.cpp', michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'omxplugin' michael@0: michael@0: FORCE_SHARED_LIB = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../../content/media/plugins', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: pass michael@0: else: michael@0: LOCAL_INCLUDES += [ michael@0: 'include/ics', michael@0: 'include/ics/media/stagefright/openmax', michael@0: ] michael@0: michael@0: if CONFIG['GNU_CXX']: michael@0: # Stagefright header files define many multichar constants. michael@0: CXXFLAGS += ['-Wno-multichar'] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: CXXFLAGS += [ michael@0: '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ michael@0: 'dalvik/libnativehelper/include/nativehelper', michael@0: 'frameworks/base/include/', michael@0: 'frameworks/base/include/binder/', michael@0: 'frameworks/base/include/utils/', michael@0: 'frameworks/base/include/media/', michael@0: 'frameworks/base/include/media/stagefright/openmax', michael@0: 'frameworks/base/media/libstagefright/include', michael@0: 'frameworks/base/native/include', michael@0: 'system/core/include', michael@0: 'hardware/libhardware/include', michael@0: ] michael@0: ] michael@0: michael@0: # Don't use STL wrappers; this isn't Gecko code michael@0: DISABLE_STL_WRAPPING = True