tor-browser

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

moz.build (2099B)


      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 # This picks up *hapticfeedback* which is graveyard
      8 with Files("**"):
      9     BUG_COMPONENT = ("Core", "DOM: Core & HTML")
     10 
     11 with Files("*ocationProvider*"):
     12     BUG_COMPONENT = ("Core", "DOM: Geolocation")
     13 
     14 with Files("windows/*LocationProvider*"):
     15     BUG_COMPONENT = ("Core", "DOM: Geolocation")
     16 
     17 with Files("mac/*LocationProvider*"):
     18     BUG_COMPONENT = ("Core", "DOM: Geolocation")
     19 
     20 with Files("mac/*OSPermissionRequest*"):
     21     BUG_COMPONENT = ("Firefox", "Site Permissions")
     22 
     23 with Files("linux/*LocationProvider*"):
     24     BUG_COMPONENT = ("Core", "DOM: Geolocation")
     25 
     26 with Files("android/*LocationProvider*"):
     27     BUG_COMPONENT = ("Core", "DOM: Geolocation")
     28 
     29 with Files("tests/mochitest.toml"):
     30     BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
     31 
     32 with Files("tests/*1197901*"):
     33     BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
     34 
     35 
     36 toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"]
     37 
     38 if toolkit == "windows":
     39     DIRS += ["windows"]
     40 elif toolkit == "cocoa":
     41     DIRS += ["mac"]
     42 elif toolkit == "android":
     43     DIRS += ["android"]
     44 elif toolkit == "gtk":
     45     DIRS += ["linux"]
     46 
     47 if toolkit != "cocoa":
     48     EXPORTS += [
     49         "nsOSPermissionRequest.h",
     50     ]
     51 
     52 XPIDL_SOURCES += [
     53     "nsIOSPermissionRequest.idl",
     54 ]
     55 
     56 XPIDL_MODULE = "dom_system"
     57 
     58 EXPORTS += [
     59     "nsDeviceSensors.h",
     60     "nsOSPermissionRequestBase.h",
     61 ]
     62 
     63 UNIFIED_SOURCES += [
     64     "nsDeviceSensors.cpp",
     65     "nsHapticFeedback.cpp",
     66     "nsOSPermissionRequestBase.cpp",
     67 ]
     68 
     69 EXTRA_JS_MODULES += [
     70     "NetworkGeolocationProvider.sys.mjs",
     71 ]
     72 
     73 XPCOM_MANIFESTS += [
     74     "components.conf",
     75 ]
     76 
     77 include("/ipc/chromium/chromium-config.mozbuild")
     78 
     79 FINAL_LIBRARY = "xul"
     80 # We fire the nsDOMDeviceAcceleration
     81 LOCAL_INCLUDES += [
     82     "/dom/base",
     83     "/dom/bindings",
     84     "/js/xpconnect/loader",
     85     "/xpcom/base",
     86 ]
     87 
     88 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]