tor-browser

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

moz.build (1852B)


      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 FINAL_LIBRARY = "js"
      8 
      9 # Includes should be relative to parent path
     10 LOCAL_INCLUDES += ["!..", ".."]
     11 
     12 include("../js-compileflags.mozbuild")
     13 include("../js-config.mozbuild")
     14 include("../js-cxxflags.mozbuild")
     15 
     16 # Suppress spurious warnings in third-party code.
     17 # See bug 1810584, bug 1879225, and bug 1895871.
     18 CXXFLAGS += ["-Wno-error=type-limits", "-Wno-error=return-type", "-Wno-sign-compare"]
     19 if CONFIG["CC_TYPE"] == "gcc":
     20     CXXFLAGS += ["-Wno-error=nonnull", "-Wno-narrowing"]
     21 if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
     22     CXXFLAGS += ["-Wno-c++11-narrowing"]
     23 
     24 
     25 UNIFIED_SOURCES += [
     26     "imported/regexp-bytecode-generator.cc",
     27     "imported/regexp-bytecode-peephole.cc",
     28     "imported/regexp-bytecodes.cc",
     29     "imported/regexp-compiler-tonode.cc",
     30     "imported/regexp-dotprinter.cc",
     31     "imported/regexp-interpreter.cc",
     32     "imported/regexp-macro-assembler-tracer.cc",
     33     "imported/regexp-macro-assembler.cc",
     34     "imported/regexp-parser.cc",
     35     "imported/regexp-stack.cc",
     36     "RegExpAPI.cpp",
     37     "RegExpShim.cpp",
     38     "util/UnicodeShim.cpp",
     39 ]
     40 SOURCES += [
     41     "imported/regexp-ast.cc",
     42     "imported/regexp-compiler.cc",  # Bug 1643693
     43     "RegExpNativeMacroAssembler.cpp",
     44 ]
     45 
     46 if CONFIG["JS_HAS_INTL_API"]:
     47     CXXFLAGS += ["-DV8_INTL_SUPPORT"]
     48     UNIFIED_SOURCES += ["imported/property-sequences.cc", "imported/special-case.cc"]
     49 
     50 # Make sure all irregexp code is built with libfuzzer
     51 # coverage instrumentation in FUZZING mode.
     52 if CONFIG["FUZZING_INTERFACES"] and CONFIG["LIBFUZZER"]:
     53     include("/tools/fuzzing/libfuzzer-config.mozbuild")