media/libvorbis/moz.build

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/.
     7 EXPORTS.vorbis += [
     8     'include/vorbis/codec.h',
     9     'include/vorbis/vorbisenc.h',
    10 ]
    12 UNIFIED_SOURCES += [
    13     'lib/vorbis_analysis.c',
    14     'lib/vorbis_bitrate.c',
    15     'lib/vorbis_block.c',
    16     'lib/vorbis_envelope.c',
    17     'lib/vorbis_floor0.c',
    18     'lib/vorbis_lookup.c',
    19     'lib/vorbis_lpc.c',
    20     'lib/vorbis_lsp.c',
    21     'lib/vorbis_mapping0.c',
    22     'lib/vorbis_mdct.c',
    23     'lib/vorbis_psy.c',
    24     'lib/vorbis_registry.c',
    25     'lib/vorbis_sharedbook.c',
    26     'lib/vorbis_smallft.c',
    27     'lib/vorbis_synthesis.c',
    28     'lib/vorbisenc.c',
    29 ]
    31 # These files can't be unified because of function redefinitions.
    32 SOURCES += [
    33     'lib/vorbis_codebook.c',
    34     'lib/vorbis_floor1.c',
    35     'lib/vorbis_info.c',
    36     'lib/vorbis_res0.c',
    37     'lib/vorbis_window.c',
    38 ]
    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.
    56 if CONFIG['GNU_CC']:
    57     CFLAGS += ['-Wno-uninitialized']

mercurial