Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | EXPORTS.vorbis += [ |
michael@0 | 8 | 'include/vorbis/codec.h', |
michael@0 | 9 | 'include/vorbis/vorbisenc.h', |
michael@0 | 10 | ] |
michael@0 | 11 | |
michael@0 | 12 | UNIFIED_SOURCES += [ |
michael@0 | 13 | 'lib/vorbis_analysis.c', |
michael@0 | 14 | 'lib/vorbis_bitrate.c', |
michael@0 | 15 | 'lib/vorbis_block.c', |
michael@0 | 16 | 'lib/vorbis_envelope.c', |
michael@0 | 17 | 'lib/vorbis_floor0.c', |
michael@0 | 18 | 'lib/vorbis_lookup.c', |
michael@0 | 19 | 'lib/vorbis_lpc.c', |
michael@0 | 20 | 'lib/vorbis_lsp.c', |
michael@0 | 21 | 'lib/vorbis_mapping0.c', |
michael@0 | 22 | 'lib/vorbis_mdct.c', |
michael@0 | 23 | 'lib/vorbis_psy.c', |
michael@0 | 24 | 'lib/vorbis_registry.c', |
michael@0 | 25 | 'lib/vorbis_sharedbook.c', |
michael@0 | 26 | 'lib/vorbis_smallft.c', |
michael@0 | 27 | 'lib/vorbis_synthesis.c', |
michael@0 | 28 | 'lib/vorbisenc.c', |
michael@0 | 29 | ] |
michael@0 | 30 | |
michael@0 | 31 | # These files can't be unified because of function redefinitions. |
michael@0 | 32 | SOURCES += [ |
michael@0 | 33 | 'lib/vorbis_codebook.c', |
michael@0 | 34 | 'lib/vorbis_floor1.c', |
michael@0 | 35 | 'lib/vorbis_info.c', |
michael@0 | 36 | 'lib/vorbis_res0.c', |
michael@0 | 37 | 'lib/vorbis_window.c', |
michael@0 | 38 | ] |
michael@0 | 39 | |
michael@0 | 40 | LOCAL_INCLUDES += ['lib'] |
michael@0 | 41 | |
michael@0 | 42 | if CONFIG['OS_ARCH'] == 'AIX': |
michael@0 | 43 | DEFINES['alloca'] = '__alloca' |
michael@0 | 44 | |
michael@0 | 45 | if CONFIG['OS_ARCH'] == 'SunOS': |
michael@0 | 46 | DEFINES['HAVE_ALLOCA_H'] = True |
michael@0 | 47 | |
michael@0 | 48 | MSVC_ENABLE_PGO = True |
michael@0 | 49 | |
michael@0 | 50 | if CONFIG['GKMEDIAS_SHARED_LIBRARY']: |
michael@0 | 51 | NO_VISIBILITY_FLAGS = True |
michael@0 | 52 | |
michael@0 | 53 | FINAL_LIBRARY = 'gkmedias' |
michael@0 | 54 | |
michael@0 | 55 | # Suppress warnings in third-party code. |
michael@0 | 56 | if CONFIG['GNU_CC']: |
michael@0 | 57 | CFLAGS += ['-Wno-uninitialized'] |