1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvorbis/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,57 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +EXPORTS.vorbis += [ 1.11 + 'include/vorbis/codec.h', 1.12 + 'include/vorbis/vorbisenc.h', 1.13 +] 1.14 + 1.15 +UNIFIED_SOURCES += [ 1.16 + 'lib/vorbis_analysis.c', 1.17 + 'lib/vorbis_bitrate.c', 1.18 + 'lib/vorbis_block.c', 1.19 + 'lib/vorbis_envelope.c', 1.20 + 'lib/vorbis_floor0.c', 1.21 + 'lib/vorbis_lookup.c', 1.22 + 'lib/vorbis_lpc.c', 1.23 + 'lib/vorbis_lsp.c', 1.24 + 'lib/vorbis_mapping0.c', 1.25 + 'lib/vorbis_mdct.c', 1.26 + 'lib/vorbis_psy.c', 1.27 + 'lib/vorbis_registry.c', 1.28 + 'lib/vorbis_sharedbook.c', 1.29 + 'lib/vorbis_smallft.c', 1.30 + 'lib/vorbis_synthesis.c', 1.31 + 'lib/vorbisenc.c', 1.32 +] 1.33 + 1.34 +# These files can't be unified because of function redefinitions. 1.35 +SOURCES += [ 1.36 + 'lib/vorbis_codebook.c', 1.37 + 'lib/vorbis_floor1.c', 1.38 + 'lib/vorbis_info.c', 1.39 + 'lib/vorbis_res0.c', 1.40 + 'lib/vorbis_window.c', 1.41 +] 1.42 + 1.43 +LOCAL_INCLUDES += ['lib'] 1.44 + 1.45 +if CONFIG['OS_ARCH'] == 'AIX': 1.46 + DEFINES['alloca'] = '__alloca' 1.47 + 1.48 +if CONFIG['OS_ARCH'] == 'SunOS': 1.49 + DEFINES['HAVE_ALLOCA_H'] = True 1.50 + 1.51 +MSVC_ENABLE_PGO = True 1.52 + 1.53 +if CONFIG['GKMEDIAS_SHARED_LIBRARY']: 1.54 + NO_VISIBILITY_FLAGS = True 1.55 + 1.56 +FINAL_LIBRARY = 'gkmedias' 1.57 + 1.58 +# Suppress warnings in third-party code. 1.59 +if CONFIG['GNU_CC']: 1.60 + CFLAGS += ['-Wno-uninitialized']