tor-browser

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

moz.build (1670B)


      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 external_dirs = []
      8 
      9 DIRS += [
     10     "gkcodecs",
     11     "lgpllibs",
     12     "rlbox",
     13     "sqlite",
     14 ]
     15 
     16 if CONFIG["MOZ_USING_WASM_SANDBOXING"]:
     17     DIRS += [
     18         "rlbox_wasm2c_sandbox",
     19         "wasm2c_sandbox_compiler",
     20     ]
     21 
     22 if not CONFIG["MOZ_SYSTEM_JPEG"]:
     23     external_dirs += ["media/libjpeg"]
     24 
     25 DIRS += [
     26     "/third_party/msgpack",
     27     "/third_party/sipcc",
     28 ]
     29 
     30 # There's no "native" brotli, zstd or woff2 yet, but probably in the future...
     31 external_dirs += ["modules/brotli"]
     32 external_dirs += ["modules/woff2"]
     33 
     34 if CONFIG["MOZ_UPDATER"]:
     35     external_dirs += ["modules/xz-embedded"]
     36 
     37 if CONFIG["MOZ_VORBIS"]:
     38     external_dirs += ["media/libvorbis"]
     39 
     40 if not CONFIG["MOZ_SYSTEM_LIBVPX"]:
     41     external_dirs += ["media/libvpx"]
     42 
     43 if not CONFIG["MOZ_SYSTEM_AV1"]:
     44     external_dirs += ["media/libaom"]
     45     external_dirs += ["media/libdav1d"]
     46 
     47 if not CONFIG["MOZ_SYSTEM_PNG"]:
     48     external_dirs += ["media/libpng"]
     49 
     50 if not CONFIG["MOZ_SYSTEM_WEBP"]:
     51     external_dirs += ["media/libwebp"]
     52 
     53 external_dirs += ["media/ffvpx"]
     54 
     55 if CONFIG["MOZ_JXL"]:
     56     external_dirs += ["media/libjxl", "media/highway"]
     57 
     58 external_dirs += [
     59     "media/libcubeb",
     60     "media/libmkv",
     61     "media/libnestegg",
     62     "media/libogg",
     63     "media/libopus",
     64     "media/libspeex_resampler",
     65     "media/libsoundtouch",
     66     "media/mp4parse-rust",
     67     "media/psshparser",
     68 ]
     69 
     70 DIRS += ["../../" + i for i in external_dirs]