config/external/moz.build

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     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 external_dirs = []
     8 if not CONFIG['MOZ_NATIVE_SQLITE']:
     9     external_dirs += ['db/sqlite3/src']
    11 if not CONFIG['MOZ_NATIVE_JPEG']:
    12     external_dirs += ['media/libjpeg']
    14 if CONFIG['MOZ_UPDATER']:
    15     if not CONFIG['MOZ_NATIVE_BZ2']:
    16         external_dirs += ['modules/libbz2']
    18 if CONFIG['MOZ_VORBIS']:
    19     external_dirs += ['media/libvorbis']
    21 if CONFIG['MOZ_TREMOR']:
    22     external_dirs += ['media/libtremor']
    24 if CONFIG['MOZ_OPUS']:
    25     external_dirs += ['media/libopus']
    27 if CONFIG['MOZ_WEBM']:
    28     external_dirs += ['media/libnestegg']
    30 if CONFIG['MOZ_WEBM_ENCODER']:
    31     external_dirs += ['media/libmkv']
    33 if CONFIG['MOZ_VPX'] and not CONFIG['MOZ_NATIVE_LIBVPX']:
    34     external_dirs += ['media/libvpx']
    36 if not CONFIG['MOZ_NATIVE_PNG']:
    37     external_dirs += ['media/libpng']
    39 external_dirs += [
    40     'media/kiss_fft',
    41     'media/libcubeb',
    42     'media/libogg',
    43     'media/libtheora',
    44     'media/libspeex_resampler',
    45     'media/libsoundtouch',
    46 ]
    48 PARALLEL_DIRS += ['../../' + i for i in external_dirs]

mercurial