1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 'include/vorbis/codec.h',
9 'include/vorbis/vorbisenc.h',
13 'lib/vorbis_analysis.c',
14 'lib/vorbis_bitrate.c',
16 'lib/vorbis_envelope.c',
17 'lib/vorbis_floor0.c',
18 'lib/vorbis_lookup.c',
21 'lib/vorbis_mapping0.c',
24 'lib/vorbis_registry.c',
25 'lib/vorbis_sharedbook.c',
26 'lib/vorbis_smallft.c',
27 'lib/vorbis_synthesis.c',
31 # These files can't be unified because of function redefinitions.
33 'lib/vorbis_codebook.c',
34 'lib/vorbis_floor1.c',
37 'lib/vorbis_window.c',
40 LOCAL_INCLUDES += ['lib']
42 if CONFIG['OS_ARCH'] == 'AIX':
43 DEFINES['alloca'] = '__alloca'
45 if CONFIG['OS_ARCH'] == 'SunOS':
46 DEFINES['HAVE_ALLOCA_H'] = True
48 MSVC_ENABLE_PGO = True
50 if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
51 NO_VISIBILITY_FLAGS = True
53 FINAL_LIBRARY = 'gkmedias'
55 # Suppress warnings in third-party code.
57 CFLAGS += ['-Wno-uninitialized']