tor-browser

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

moz.build (7304B)


      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 DIRS += [
      8     "manifests",
      9     "tests",
     10     "ssltunnel",
     11     "BrowserTestUtils",
     12 ]
     13 
     14 XPI_NAME = "mochijar"
     15 
     16 USE_EXTENSION_MANIFEST = True
     17 
     18 FINAL_TARGET_FILES += [
     19     "api.js",
     20     "manifest.json",
     21     "schema.json",
     22 ]
     23 
     24 FINAL_TARGET_FILES.content += [
     25     "browser-harness.xhtml",
     26     "browser-test.js",
     27     "chrome-harness.js",
     28     "chunkifyTests.js",
     29     "harness.xhtml",
     30     "ignorePrefs.json",
     31     "manifestLibrary.js",
     32     "mochitest-e10s-utils.js",
     33     "mochitestListingsUtils.js",
     34     "redirect.html",
     35     "server.js",
     36     "shutdown-leaks-collector.js",
     37     "ShutdownLeaksCollector.sys.mjs",
     38 ]
     39 
     40 FINAL_TARGET_FILES.content.dynamic += [
     41     "dynamic/getMyDirectory.sjs",
     42 ]
     43 
     44 FINAL_TARGET_FILES.content.static += [
     45     "static/harness.css",
     46 ]
     47 
     48 FINAL_TARGET_FILES.content.tests.SimpleTest += [
     49     "../../docshell/test/chrome/docshell_helpers.js",
     50     "../modules/StructuredLog.sys.mjs",
     51     "tests/SimpleTest/AccessibilityUtils.js",
     52     "tests/SimpleTest/DragChildContextBase.sys.mjs",
     53     "tests/SimpleTest/DragParentContextBase.sys.mjs",
     54     "tests/SimpleTest/DragSourceChildContext.sys.mjs",
     55     "tests/SimpleTest/DragSourceParentContext.sys.mjs",
     56     "tests/SimpleTest/DragTargetChildContext.sys.mjs",
     57     "tests/SimpleTest/DragTargetParentContext.sys.mjs",
     58     "tests/SimpleTest/EventUtils.js",
     59     "tests/SimpleTest/ExtensionTestUtils.js",
     60     "tests/SimpleTest/iframe-between-tests.html",
     61     "tests/SimpleTest/LogController.js",
     62     "tests/SimpleTest/MemoryStats.js",
     63     "tests/SimpleTest/MockObjects.js",
     64     "tests/SimpleTest/MozillaLogger.js",
     65     "tests/SimpleTest/NativeKeyCodes.js",
     66     "tests/SimpleTest/paint_listener.js",
     67     "tests/SimpleTest/setup.js",
     68     "tests/SimpleTest/SimpleTest.js",
     69     "tests/SimpleTest/test.css",
     70     "tests/SimpleTest/TestRunner.js",
     71     "tests/SimpleTest/WindowSnapshot.js",
     72     "tests/SimpleTest/WorkerHandler.js",
     73     "tests/SimpleTest/WorkerSimpleTest.js",
     74 ]
     75 
     76 FINAL_TARGET_FILES.content.tests.BrowserTestUtils += [
     77     "BrowserTestUtils/content/content-about-page-utils.js",
     78     "BrowserTestUtils/content/content-task.js",
     79 ]
     80 
     81 MOCHITEST_MANIFESTS += [
     82     "baselinecoverage/plain/mochitest.toml",
     83 ]
     84 
     85 MOCHITEST_CHROME_MANIFESTS += [
     86     "baselinecoverage/chrome/chrome.toml",
     87     "chrome/chrome.toml",
     88 ]
     89 
     90 BROWSER_CHROME_MANIFESTS += ["baselinecoverage/browser_chrome/browser.toml"]
     91 
     92 TEST_HARNESS_FILES.testing.mochitest += [
     93     "/build/pgo/server-locations.txt",
     94     "/build/valgrind/cross-architecture.sup",
     95     "/build/valgrind/i386-pc-linux-gnu.sup",
     96     "/build/valgrind/x86_64-pc-linux-gnu.sup",
     97     "/netwerk/test/httpserver/httpd.sys.mjs",
     98     "bisection.py",
     99     "browser-harness.xhtml",
    100     "browser-test.js",
    101     "chrome-harness.js",
    102     "chunkifyTests.js",
    103     "document-builder.sjs",
    104     "DoHServer/doh_server.js",
    105     "favicon.ico",
    106     "harness.xhtml",
    107     "Http2Server/http2_server.js",
    108     "ignorePrefs.json",
    109     "leaks.py",
    110     "mach_test_package_commands.py",
    111     "manifest.webapp",
    112     "manifestLibrary.js",
    113     "mochitest_options.py",
    114     "mochitestListingsUtils.js",
    115     "pywebsocket_wrapper.py",
    116     "redirect.html",
    117     "runjunit.py",
    118     "runtests.py",
    119     "runtestsremote.py",
    120     "runtestsremoteios.py",
    121     "server.js",
    122     "start_desktop.js",
    123 ]
    124 
    125 TEST_HARNESS_FILES.testing.mochitest.DoHServer += [
    126     "DoHServer/doh_server.js",
    127     "DoHServer/http2-cert.key.pem",
    128     "DoHServer/http2-cert.pem",
    129 ]
    130 
    131 TEST_HARNESS_FILES.testing.mochitest.Http2Server += [
    132     "Http2Server/http2_server.js",
    133     "Http2Server/mochitest-cert.key.pem",
    134     "Http2Server/mochitest-cert.pem",
    135 ]
    136 
    137 TEST_HARNESS_FILES.testing.mochitest.embed += [
    138     "embed/Xm5i5kbIXzc",
    139     "embed/Xm5i5kbIXzc^headers^",
    140 ]
    141 
    142 TEST_HARNESS_FILES.testing.mochitest.pywebsocket3.mod_pywebsocket += [
    143     "pywebsocket3/mod_pywebsocket/__init__.py",
    144     "pywebsocket3/mod_pywebsocket/_stream_exceptions.py",
    145     "pywebsocket3/mod_pywebsocket/common.py",
    146     "pywebsocket3/mod_pywebsocket/dispatch.py",
    147     "pywebsocket3/mod_pywebsocket/extensions.py",
    148     "pywebsocket3/mod_pywebsocket/fast_masking.i",
    149     "pywebsocket3/mod_pywebsocket/http_header_util.py",
    150     "pywebsocket3/mod_pywebsocket/memorizingfile.py",
    151     "pywebsocket3/mod_pywebsocket/msgutil.py",
    152     "pywebsocket3/mod_pywebsocket/request_handler.py",
    153     "pywebsocket3/mod_pywebsocket/server_util.py",
    154     "pywebsocket3/mod_pywebsocket/standalone.py",
    155     "pywebsocket3/mod_pywebsocket/stream.py",
    156     "pywebsocket3/mod_pywebsocket/util.py",
    157     "pywebsocket3/mod_pywebsocket/websocket_server.py",
    158 ]
    159 
    160 TEST_HARNESS_FILES.testing.mochitest.pywebsocket3.mod_pywebsocket.handshake += [
    161     "pywebsocket3/mod_pywebsocket/handshake/__init__.py",
    162     "pywebsocket3/mod_pywebsocket/handshake/base.py",
    163     "pywebsocket3/mod_pywebsocket/handshake/hybi.py",
    164 ]
    165 
    166 TEST_HARNESS_FILES.testing.mochitest.dynamic += [
    167     "dynamic/getMyDirectory.sjs",
    168 ]
    169 
    170 TEST_HARNESS_FILES.testing.mochitest.static += [
    171     "static/harness.css",
    172 ]
    173 
    174 TEST_HARNESS_FILES.testing.mochitest.iceserver += [
    175     "/testing/tools/iceserver/iceserver.py",
    176 ]
    177 
    178 TEST_HARNESS_FILES.testing.mochitest.websocketprocessbridge += [
    179     "/testing/tools/websocketprocessbridge/websocketprocessbridge.py",
    180     "/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements_3.txt",
    181 ]
    182 
    183 TEST_HARNESS_FILES.testing.mochitest.DoHServer.dns_packet += [
    184     "../xpcshell/dns-packet/classes.js",
    185     "../xpcshell/dns-packet/index.js",
    186     "../xpcshell/dns-packet/opcodes.js",
    187     "../xpcshell/dns-packet/optioncodes.js",
    188     "../xpcshell/dns-packet/package.json",
    189     "../xpcshell/dns-packet/rcodes.js",
    190     "../xpcshell/dns-packet/test.js",
    191     "../xpcshell/dns-packet/types.js",
    192 ]
    193 
    194 TEST_HARNESS_FILES.testing.mochitest.Http2Server.node_ws += [
    195     "../xpcshell/node-ws/browser.js",
    196     "../xpcshell/node-ws/index.js",
    197     "../xpcshell/node-ws/package.json",
    198     "../xpcshell/node-ws/wrapper.mjs",
    199 ]
    200 
    201 TEST_HARNESS_FILES.testing.mochitest.Http2Server.node_ws.lib += [
    202     "../xpcshell/node-ws/lib/buffer-util.js",
    203     "../xpcshell/node-ws/lib/constants.js",
    204     "../xpcshell/node-ws/lib/event-target.js",
    205     "../xpcshell/node-ws/lib/extension.js",
    206     "../xpcshell/node-ws/lib/limiter.js",
    207     "../xpcshell/node-ws/lib/permessage-deflate.js",
    208     "../xpcshell/node-ws/lib/receiver.js",
    209     "../xpcshell/node-ws/lib/sender.js",
    210     "../xpcshell/node-ws/lib/stream.js",
    211     "../xpcshell/node-ws/lib/subprotocol.js",
    212     "../xpcshell/node-ws/lib/validation.js",
    213     "../xpcshell/node-ws/lib/websocket-server.js",
    214     "../xpcshell/node-ws/lib/websocket.js",
    215 ]
    216 
    217 TEST_HARNESS_FILES.testing.mochitest.DoHServer.node_ip += [
    218     "../xpcshell/node_ip/package.json",
    219 ]
    220 
    221 TEST_HARNESS_FILES.testing.mochitest.DoHServer.node_ip.lib += [
    222     "../xpcshell/node_ip/lib/ip.js",
    223 ]
    224 
    225 if CONFIG["MOZ_BUILD_APP"] != "mobile/android":
    226     TEST_HARNESS_FILES.testing.mochitest += [
    227         "extensions/**.xpi",
    228     ]
    229 
    230 with Files("**"):
    231     BUG_COMPONENT = ("Testing", "Mochitest")
    232     SCHEDULES.exclusive = ["mochitest"]
    233 
    234 with Files("*remote*"):
    235     BUG_COMPONENT = ("GeckoView", "General")