mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
7a90ff53d7
--HG-- extra : source : 8393f458463ff465c0862209a7bef284e5ce6b48
59 lines
1.7 KiB
Python
59 lines
1.7 KiB
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
DIRS += ['fmp4_muxer']
|
|
|
|
EXPORTS += [
|
|
'ContainerWriter.h',
|
|
'EncodedFrameContainer.h',
|
|
'MediaEncoder.h',
|
|
'OpusTrackEncoder.h',
|
|
'TrackEncoder.h',
|
|
'TrackMetadataBase.h',
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
'MediaEncoder.cpp',
|
|
'OpusTrackEncoder.cpp',
|
|
'TrackEncoder.cpp',
|
|
]
|
|
|
|
if CONFIG['MOZ_OMX_ENCODER']:
|
|
EXPORTS += ['OmxTrackEncoder.h']
|
|
UNIFIED_SOURCES += ['OmxTrackEncoder.cpp']
|
|
|
|
if CONFIG['MOZ_WEBM_ENCODER']:
|
|
EXPORTS += ['VorbisTrackEncoder.h',
|
|
'VP8TrackEncoder.h',
|
|
]
|
|
UNIFIED_SOURCES += ['VorbisTrackEncoder.cpp',
|
|
'VP8TrackEncoder.cpp',
|
|
]
|
|
LOCAL_INCLUDES += ['/media/libyuv/include']
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
# These includes are from Android JB, for use of MediaCodec.
|
|
LOCAL_INCLUDES += ['/ipc/chromium/src']
|
|
CXXFLAGS += [
|
|
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
|
'frameworks/native/opengl/include',
|
|
'frameworks/native/include',
|
|
'frameworks/av/include/media',
|
|
]
|
|
]
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
# Suppress some GCC warnings being treated as errors:
|
|
# - about attributes on forward declarations for types that are already
|
|
# defined, which complains about an important MOZ_EXPORT for android::AString
|
|
if CONFIG['GNU_CC']:
|
|
CXXFLAGS += ['-Wno-error=attributes']
|