tor-browser

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

moz.build (1725B)


      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 DEFINES["IMPL_LIBXUL"] = True
      8 DEFINES["MOZILLA_INTERNAL_API"] = True
      9 
     10 # Do NOT export this library.  We don't actually want our test code
     11 # being added to libxul or anything.
     12 
     13 Library("dombindings_test_s")
     14 
     15 MOCHITEST_MANIFESTS += ["mochitest.toml"]
     16 
     17 MOCHITEST_CHROME_MANIFESTS += ["chrome.toml"]
     18 
     19 TEST_WEBIDL_FILES += [
     20     "TestCallback.webidl",
     21     "TestDictionary.webidl",
     22     "TestJSImplInheritanceGen.webidl",
     23     "TestTypedef.webidl",
     24 ]
     25 
     26 TESTING_JS_MODULES += [
     27     "TestInterfaceJS.sys.mjs",
     28 ]
     29 
     30 PREPROCESSED_TEST_WEBIDL_FILES += [
     31     "TestCodeGen.webidl",
     32     "TestExampleGen.webidl",
     33     "TestJSImplGen.webidl",
     34 ]
     35 
     36 WEBIDL_EXAMPLE_INTERFACES += [
     37     "TestExampleInterface",
     38     "TestExampleProxyInterface",
     39     "TestExampleThrowingConstructorInterface",
     40     "TestExampleWorkerInterface",
     41 ]
     42 
     43 # Bug 932082 tracks having bindings use namespaced includes.
     44 LOCAL_INCLUDES += [
     45     "!/dist/include/mozilla/dom",
     46 ]
     47 
     48 LOCAL_INCLUDES += [
     49     "!..",
     50     "/dom/bindings",
     51     "/js/xpconnect/src",
     52     "/js/xpconnect/wrappers",
     53 ]
     54 
     55 include("/ipc/chromium/chromium-config.mozbuild")
     56 
     57 if CONFIG["MOZ_DEBUG"]:
     58     XPIDL_SOURCES += [
     59         "mozITestInterfaceJS.idl",
     60     ]
     61 
     62     XPIDL_MODULE = "dom_bindings_test"
     63 
     64 # Because we don't actually link this code anywhere, we don't care about
     65 # their optimization level, so don't waste time on optimization.
     66 if CONFIG["CC_TYPE"] == "clang-cl":
     67     CXXFLAGS += ["-Od"]
     68 else:
     69     CXXFLAGS += ["-O0"]