michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: EXPORTS.vorbis += [ michael@0: 'include/vorbis/codec.h', michael@0: 'include/vorbis/vorbisenc.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'lib/vorbis_analysis.c', michael@0: 'lib/vorbis_bitrate.c', michael@0: 'lib/vorbis_block.c', michael@0: 'lib/vorbis_envelope.c', michael@0: 'lib/vorbis_floor0.c', michael@0: 'lib/vorbis_lookup.c', michael@0: 'lib/vorbis_lpc.c', michael@0: 'lib/vorbis_lsp.c', michael@0: 'lib/vorbis_mapping0.c', michael@0: 'lib/vorbis_mdct.c', michael@0: 'lib/vorbis_psy.c', michael@0: 'lib/vorbis_registry.c', michael@0: 'lib/vorbis_sharedbook.c', michael@0: 'lib/vorbis_smallft.c', michael@0: 'lib/vorbis_synthesis.c', michael@0: 'lib/vorbisenc.c', michael@0: ] michael@0: michael@0: # These files can't be unified because of function redefinitions. michael@0: SOURCES += [ michael@0: 'lib/vorbis_codebook.c', michael@0: 'lib/vorbis_floor1.c', michael@0: 'lib/vorbis_info.c', michael@0: 'lib/vorbis_res0.c', michael@0: 'lib/vorbis_window.c', michael@0: ] michael@0: michael@0: LOCAL_INCLUDES += ['lib'] michael@0: michael@0: if CONFIG['OS_ARCH'] == 'AIX': michael@0: DEFINES['alloca'] = '__alloca' michael@0: michael@0: if CONFIG['OS_ARCH'] == 'SunOS': michael@0: DEFINES['HAVE_ALLOCA_H'] = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: if CONFIG['GKMEDIAS_SHARED_LIBRARY']: michael@0: NO_VISIBILITY_FLAGS = True michael@0: michael@0: FINAL_LIBRARY = 'gkmedias' michael@0: michael@0: # Suppress warnings in third-party code. michael@0: if CONFIG['GNU_CC']: michael@0: CFLAGS += ['-Wno-uninitialized']