Debian Codegraph @

js/src/irregexp/moz.build

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