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.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 external_dirs = []
michael@0 8 if not CONFIG['MOZ_NATIVE_SQLITE']:
michael@0 9 external_dirs += ['db/sqlite3/src']
michael@0 10
michael@0 11 if not CONFIG['MOZ_NATIVE_JPEG']:
michael@0 12 external_dirs += ['media/libjpeg']
michael@0 13
michael@0 14 if CONFIG['MOZ_UPDATER']:
michael@0 15 if not CONFIG['MOZ_NATIVE_BZ2']:
michael@0 16 external_dirs += ['modules/libbz2']
michael@0 17
michael@0 18 if CONFIG['MOZ_VORBIS']:
michael@0 19 external_dirs += ['media/libvorbis']
michael@0 20
michael@0 21 if CONFIG['MOZ_TREMOR']:
michael@0 22 external_dirs += ['media/libtremor']
michael@0 23
michael@0 24 if CONFIG['MOZ_OPUS']:
michael@0 25 external_dirs += ['media/libopus']
michael@0 26
michael@0 27 if CONFIG['MOZ_WEBM']:
michael@0 28 external_dirs += ['media/libnestegg']
michael@0 29
michael@0 30 if CONFIG['MOZ_WEBM_ENCODER']:
michael@0 31 external_dirs += ['media/libmkv']
michael@0 32
michael@0 33 if CONFIG['MOZ_VPX'] and not CONFIG['MOZ_NATIVE_LIBVPX']:
michael@0 34 external_dirs += ['media/libvpx']
michael@0 35
michael@0 36 if not CONFIG['MOZ_NATIVE_PNG']:
michael@0 37 external_dirs += ['media/libpng']
michael@0 38
michael@0 39 external_dirs += [
michael@0 40 'media/kiss_fft',
michael@0 41 'media/libcubeb',
michael@0 42 'media/libogg',
michael@0 43 'media/libtheora',
michael@0 44 'media/libspeex_resampler',
michael@0 45 'media/libsoundtouch',
michael@0 46 ]
michael@0 47
michael@0 48 PARALLEL_DIRS += ['../../' + i for i in external_dirs]

mercurial