tor-browser

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

moz.build (2738B)


      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 CONFIGURE_SUBST_FILES += ["installer/Makefile"]
      8 
      9 SPHINX_TREES["/browser"] = "docs"
     10 
     11 EXTRA_COMPONENTS += [
     12     "l10n-registry.manifest",
     13 ]
     14 
     15 DIRS += [
     16     "actors",
     17     "base",
     18     "components",
     19     "fonts",
     20     "fxr",
     21     "locales",
     22     "modules",
     23     "themes",
     24     "extensions",
     25     "branding",
     26 ]
     27 
     28 DIRS += [
     29     "app",
     30 ]
     31 
     32 if CONFIG["MAKENSISU"]:
     33     DIRS += ["installer/windows"]
     34 
     35 TEST_DIRS += [
     36     "tools/mozscreenshots",
     37 ]
     38 
     39 DIST_SUBDIR = "browser"
     40 export("DIST_SUBDIR")
     41 
     42 # These defines are read in firefox.js
     43 DEFINES["APP_VERSION"] = CONFIG["MOZ_APP_VERSION"]
     44 
     45 for cdm in CONFIG["MOZ_EME_MODULES"]:
     46     DEFINES["MOZ_%s_EME" % cdm.upper()] = True
     47 
     48 if CONFIG["MOZ_UPDATE_AGENT"]:
     49     DEFINES["MOZ_UPDATE_AGENT"] = True
     50 
     51 if CONFIG["MOZ_ARTIFACT_BUILDS"]:
     52     DEFINES["MOZ_ARTIFACT_BUILDS"] = True
     53 
     54 # These files are specified in this moz.build to pick up DIST_SUBDIR as set in
     55 # this directory, which is un-set in browser/app.
     56 JS_PREFERENCE_PP_FILES += [
     57     "app/profile/000-tor-browser.js",
     58     "app/profile/firefox.js",
     59 ]
     60 FINAL_TARGET_FILES.defaults += ["app/permissions"]
     61 
     62 with Files("**"):
     63     BUG_COMPONENT = ("Firefox", "General")
     64     SCHEDULES.exclusive = ["linux", "macosx", "windows", "firefox"]
     65 
     66 with Files("docs/**"):
     67     SCHEDULES.exclusive = ["docs"]
     68 
     69 with Files("Makefile.in"):
     70     BUG_COMPONENT = ("Firefox Build System", "General")
     71 
     72 with Files("*.mk"):
     73     BUG_COMPONENT = ("Firefox Build System", "General")
     74 
     75 with Files("**/moz.build"):
     76     BUG_COMPONENT = ("Firefox Build System", "General")
     77 
     78 with Files("moz.configure"):
     79     BUG_COMPONENT = ("Firefox Build System", "General")
     80 
     81 with Files("app.mozbuild"):
     82     BUG_COMPONENT = ("Firefox Build System", "General")
     83 
     84 with Files("moz.build"):
     85     BUG_COMPONENT = ("Firefox Build System", "General")
     86 
     87 with Files("confvars.sh"):
     88     BUG_COMPONENT = ("Firefox Build System", "General")
     89 
     90 with Files("LICENSE"):
     91     BUG_COMPONENT = ("Firefox Build System", "General")
     92 
     93 with Files("branding/**"):
     94     BUG_COMPONENT = ("Firefox", "General")
     95 
     96 with Files("config/**"):
     97     BUG_COMPONENT = ("Firefox Build System", "General")
     98 
     99 with Files("docs/**"):
    100     BUG_COMPONENT = ("Toolkit", "Telemetry")
    101 
    102 with Files("fonts/**"):
    103     BUG_COMPONENT = ("Core", "Graphics: Text")
    104 
    105 with Files("installer/**"):
    106     BUG_COMPONENT = ("Firefox", "Installer")
    107 
    108 with Files("tools/**"):
    109     BUG_COMPONENT = ("Firefox", "General")
    110 
    111 with Files("l10n-registry.manifest"):
    112     BUG_COMPONENT = ("Core", "Localization")