tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1641B)


      1 # -*- Mode: python; 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/.
      6 
      7 with Files('*'):
      8     BUG_COMPONENT = ('Core', 'Audio/Video')
      9 
     10 EXPORTS.vorbis += [
     11     'include/vorbis/codec.h',
     12     'include/vorbis/vorbisenc.h',
     13 ]
     14 
     15 UNIFIED_SOURCES += [
     16     'lib/vorbis_analysis.c',
     17     'lib/vorbis_bitrate.c',
     18     'lib/vorbis_block.c',
     19     'lib/vorbis_envelope.c',
     20     'lib/vorbis_floor0.c',
     21     'lib/vorbis_lookup.c',
     22     'lib/vorbis_lpc.c',
     23     'lib/vorbis_lsp.c',
     24     'lib/vorbis_mapping0.c',
     25     'lib/vorbis_mdct.c',
     26     'lib/vorbis_psy.c',
     27     'lib/vorbis_registry.c',
     28     'lib/vorbis_sharedbook.c',
     29     'lib/vorbis_smallft.c',
     30     'lib/vorbis_synthesis.c',
     31     'lib/vorbisenc.c',
     32 ]
     33 
     34 # These files can't be unified because of function redefinitions.
     35 SOURCES += [
     36     'lib/vorbis_codebook.c',
     37     'lib/vorbis_floor1.c',
     38     'lib/vorbis_info.c',
     39     'lib/vorbis_res0.c',
     40     'lib/vorbis_window.c',
     41 ]
     42 
     43 LOCAL_INCLUDES += ['lib']
     44 
     45 if CONFIG['OS_ARCH'] == 'SunOS':
     46     DEFINES['HAVE_ALLOCA_H'] = True
     47 
     48 if CONFIG["OS_ARCH"] == "Linux":
     49     OS_LIBS += [
     50         "m",
     51     ]
     52 
     53 # We allow warnings for third-party code that can be updated from upstream.
     54 AllowCompilerWarnings()
     55 
     56 FINAL_LIBRARY = 'gkcodecs'
     57 NoVisibilityFlags()
     58 
     59 # Suppress warnings in third-party code.
     60 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
     61     CFLAGS += ['-Wno-uninitialized']
     62 
     63 # Add libFuzzer configuration directives
     64 #include('/tools/fuzzing/libfuzzer-config.mozbuild')