mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 908503: Build config changes for libstagefright demuxer; r=glandium
This commit is contained in:
parent
402761fa6b
commit
2902d0e722
1
config/external/moz.build
vendored
1
config/external/moz.build
vendored
@ -42,6 +42,7 @@ external_dirs += [
|
||||
'media/libogg',
|
||||
'media/libtheora',
|
||||
'media/libspeex_resampler',
|
||||
'media/libstagefright',
|
||||
'media/libsoundtouch',
|
||||
]
|
||||
|
||||
|
108
media/libstagefright/moz.build
Normal file
108
media/libstagefright/moz.build
Normal file
@ -0,0 +1,108 @@
|
||||
# /*- 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/.
|
||||
|
||||
DEFINES['_GLIBCXX_OS_DEFINES'] = True
|
||||
DEFINES['ANDROID_SMP'] = 0
|
||||
DEFINES['FAKE_LOG_DEVICE'] = True
|
||||
DEFINES['LOG_NDEBUG'] = 0
|
||||
|
||||
if CONFIG['_MSC_VER']:
|
||||
DEFINES['OS_PATH_SEPARATOR'] = "'\\\\'"
|
||||
DEFINES['ssize_t'] = 'intptr_t'
|
||||
DEFINES['off64_t'] = 'int64_t'
|
||||
DEFINES['HAVE_MS_C_RUNTIME'] = True
|
||||
DEFINES['strcasecmp'] = 'stricmp'
|
||||
DEFINES['strncasecmp'] = 'strnicmp'
|
||||
DEFINES['__PRETTY_FUNCTION__'] = '__FUNCTION__'
|
||||
LOCAL_INCLUDES += [ 'ports/win32/include' ]
|
||||
elif CONFIG['OS_TARGET'] == 'Darwin':
|
||||
DEFINES['OS_PATH_SEPARATOR'] = "'/'"
|
||||
DEFINES['HAVE_SYS_UIO_H'] = True
|
||||
DEFINES['off64_t'] = 'off_t'
|
||||
LOCAL_INCLUDES += [ 'ports/darwin/include' ]
|
||||
elif CONFIG['MOZ_B2G'] and CONFIG['OS_TARGET'] == 'Android':
|
||||
DEFINES['OS_PATH_SEPARATOR'] = "'/'"
|
||||
if CONFIG['ANDROID_VERSION'] == '18':
|
||||
LOCAL_INCLUDES += [ 'ports/jb/include' ]
|
||||
elif CONFIG['ANDROID_VERSION'] == '15':
|
||||
LOCAL_INCLUDES += [ 'ports/ics/include' ]
|
||||
else:
|
||||
DEFINES['OS_PATH_SEPARATOR'] = "'/'"
|
||||
DEFINES['HAVE_SYS_UIO_H'] = True
|
||||
CXXFLAGS += ['-Wno-deprecated',
|
||||
'-Wno-format',
|
||||
'-Wno-dynamic-class-memaccess',
|
||||
'-Wno-tautological-compare',
|
||||
'-Wno-tautological-constant-out-of-range-compare',
|
||||
'-Wno-unused-variable',
|
||||
'-Wno-unused-function',
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-comment',
|
||||
'-Wno-incompatible-pointer-types-discards-qualifiers'
|
||||
]
|
||||
|
||||
EXPORTS.mp4_demuxer += [
|
||||
'binding/include/mp4_demuxer/DecoderData.h',
|
||||
'binding/include/mp4_demuxer/mp4_demuxer.h',
|
||||
]
|
||||
|
||||
SOURCES += [
|
||||
'frameworks/av/media/libstagefright/foundation/hexdump.cpp',
|
||||
'frameworks/av/media/libstagefright/MetaData.cpp',
|
||||
'system/core/libutils/String8.cpp',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'binding/Adts.cpp',
|
||||
'binding/DecoderData.cpp',
|
||||
'binding/mp4_demuxer.cpp',
|
||||
'frameworks/av/media/libstagefright/DataSource.cpp',
|
||||
'frameworks/av/media/libstagefright/ESDS.cpp',
|
||||
'frameworks/av/media/libstagefright/foundation/AAtomizer.cpp',
|
||||
'frameworks/av/media/libstagefright/foundation/ABitReader.cpp',
|
||||
'frameworks/av/media/libstagefright/foundation/ABuffer.cpp',
|
||||
'frameworks/av/media/libstagefright/foundation/AString.cpp',
|
||||
'frameworks/av/media/libstagefright/id3/ID3.cpp',
|
||||
'frameworks/av/media/libstagefright/MediaBuffer.cpp',
|
||||
'frameworks/av/media/libstagefright/MediaBufferGroup.cpp',
|
||||
'frameworks/av/media/libstagefright/MediaDefs.cpp',
|
||||
'frameworks/av/media/libstagefright/MediaSource.cpp',
|
||||
'frameworks/av/media/libstagefright/MPEG4Extractor.cpp',
|
||||
'frameworks/av/media/libstagefright/SampleIterator.cpp',
|
||||
'frameworks/av/media/libstagefright/SampleTable.cpp',
|
||||
'frameworks/av/media/libstagefright/Utils.cpp',
|
||||
]
|
||||
|
||||
if not CONFIG['MOZ_B2G']:
|
||||
SOURCES += [
|
||||
'system/core/liblog/fake_log_device.c',
|
||||
'system/core/libutils/RefBase.cpp',
|
||||
'system/core/libutils/String16.cpp',
|
||||
'system/core/libutils/VectorImpl.cpp',
|
||||
]
|
||||
UNIFIED_SOURCES += [
|
||||
'system/core/libcutils/strdup16to8.c',
|
||||
'system/core/liblog/logd_write.c',
|
||||
'system/core/liblog/logprint.c',
|
||||
'system/core/libutils/SharedBuffer.cpp',
|
||||
'system/core/libutils/Static.cpp',
|
||||
'system/core/libutils/Unicode.cpp',
|
||||
]
|
||||
LOCAL_INCLUDES += [
|
||||
'system/core/include',
|
||||
]
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'binding/include',
|
||||
'frameworks/av/include',
|
||||
'frameworks/av/include/media/stagefright/foundation',
|
||||
'frameworks/av/media/libstagefright/',
|
||||
'stubs/empty',
|
||||
'stubs/include',
|
||||
'stubs/include/media/stagefright/foundation',
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'gklayout'
|
Loading…
Reference in New Issue
Block a user