tor-browser

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

moz.build (1954B)


      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/.
      6 
      7 IPDL_SOURCES += [
      8     "MIDITypes.ipdlh",
      9     "PMIDIManager.ipdl",
     10     "PMIDIPort.ipdl",
     11 ]
     12 
     13 EXPORTS.mozilla.dom += [
     14     "MIDIAccess.h",
     15     "MIDIAccessManager.h",
     16     "MIDIInput.h",
     17     "MIDIInputMap.h",
     18     "MIDIManagerChild.h",
     19     "MIDIManagerParent.h",
     20     "MIDIMessageEvent.h",
     21     "MIDIMessageQueue.h",
     22     "MIDIOutput.h",
     23     "MIDIOutputMap.h",
     24     "MIDIPermissionRequest.h",
     25     "MIDIPlatformRunnables.h",
     26     "MIDIPlatformService.h",
     27     "MIDIPort.h",
     28     "MIDIPortChild.h",
     29     "MIDIPortInterface.h",
     30     "MIDIPortParent.h",
     31     "MIDIUtils.h",
     32 ]
     33 
     34 UNIFIED_SOURCES += [
     35     "MIDIAccess.cpp",
     36     "MIDIAccessManager.cpp",
     37     "MIDIInput.cpp",
     38     "MIDIInputMap.cpp",
     39     "MIDILog.cpp",
     40     "MIDIManagerChild.cpp",
     41     "MIDIManagerParent.cpp",
     42     "MIDIMessageEvent.cpp",
     43     "MIDIMessageQueue.cpp",
     44     "MIDIOutput.cpp",
     45     "MIDIOutputMap.cpp",
     46     "MIDIPermissionRequest.cpp",
     47     "MIDIPlatformRunnables.cpp",
     48     "MIDIPlatformService.cpp",
     49     "MIDIPort.cpp",
     50     "MIDIPortChild.cpp",
     51     "MIDIPortInterface.cpp",
     52     "MIDIPortParent.cpp",
     53     "MIDIUtils.cpp",
     54     "TestMIDIPlatformService.cpp",
     55 ]
     56 
     57 include("/ipc/chromium/chromium-config.mozbuild")
     58 
     59 if CONFIG["MOZ_WEBMIDI_MIDIR_IMPL"]:
     60     DEFINES["MOZ_WEBMIDI_MIDIR_IMPL"] = True
     61     DIRS += ["midir_impl"]
     62     UNIFIED_SOURCES += [
     63         "midirMIDIPlatformService.cpp",
     64     ]
     65 
     66     if CONFIG["OS_TARGET"] == "Linux":
     67         OS_LIBS += ["asound"]  # Required by midir
     68         UNIFIED_SOURCES += ["AlsaCompatibility.cpp"]
     69 
     70 FINAL_LIBRARY = "xul"
     71 LOCAL_INCLUDES += [
     72     "/dom/base",
     73 ]
     74 
     75 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]
     76 BROWSER_CHROME_MANIFESTS += ["tests/browser.toml"]