media/omx-plugin/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/omx-plugin/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,58 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# Copyright 2013 Mozilla Foundation and Mozilla contributors
     1.7 +#
     1.8 +# Licensed under the Apache License, Version 2.0 (the "License");
     1.9 +# you may not use this file except in compliance with the License.
    1.10 +# You may obtain a copy of the License at
    1.11 +#
    1.12 +#     http://www.apache.org/licenses/LICENSE-2.0
    1.13 +#
    1.14 +# Unless required by applicable law or agreed to in writing, software
    1.15 +# distributed under the License is distributed on an "AS IS" BASIS,
    1.16 +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.17 +# See the License for the specific language governing permissions and
    1.18 +# limitations under the License.
    1.19 +
    1.20 +SOURCES += [
    1.21 +    'OmxPlugin.cpp',
    1.22 +]
    1.23 +
    1.24 +LIBRARY_NAME = 'omxplugin'
    1.25 +
    1.26 +FORCE_SHARED_LIB = True
    1.27 +
    1.28 +LOCAL_INCLUDES += [
    1.29 +    '../../content/media/plugins',
    1.30 +]
    1.31 +
    1.32 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    1.33 +    pass
    1.34 +else:
    1.35 +    LOCAL_INCLUDES += [
    1.36 +        'include/ics',
    1.37 +        'include/ics/media/stagefright/openmax',
    1.38 +    ]
    1.39 +
    1.40 +if CONFIG['GNU_CXX']:
    1.41 +    # Stagefright header files define many multichar constants.
    1.42 +    CXXFLAGS += ['-Wno-multichar']
    1.43 +
    1.44 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    1.45 +    CXXFLAGS += [
    1.46 +         '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
    1.47 +             'dalvik/libnativehelper/include/nativehelper',
    1.48 +             'frameworks/base/include/',
    1.49 +             'frameworks/base/include/binder/',
    1.50 +             'frameworks/base/include/utils/',
    1.51 +             'frameworks/base/include/media/',
    1.52 +             'frameworks/base/include/media/stagefright/openmax',
    1.53 +             'frameworks/base/media/libstagefright/include',
    1.54 +             'frameworks/base/native/include',
    1.55 +             'system/core/include',
    1.56 +             'hardware/libhardware/include',
    1.57 +         ]
    1.58 +    ]
    1.59 +
    1.60 +# Don't use STL wrappers; this isn't Gecko code
    1.61 +DISABLE_STL_WRAPPING = True

mercurial