tor-browser

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

moz.build (1067B)


      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 GeckoProgram("fuzz-tests", linkage=None)
      8 
      9 include("../js-cxxflags.mozbuild")
     10 include("../js-standalone.mozbuild")
     11 
     12 UNIFIED_SOURCES += [
     13     "testExample.cpp",
     14     "testRegExp.cpp",
     15     "tests.cpp",
     16     "testStructuredCloneReader.cpp",
     17     "testWasm.cpp",
     18 ]
     19 
     20 DEFINES["EXPORT_JS_API"] = True
     21 
     22 LOCAL_INCLUDES += [
     23     "!..",
     24     "..",
     25 ]
     26 
     27 if CONFIG["FUZZING"]:
     28     USE_LIBS += [
     29         "static:fuzzer-registry",
     30     ]
     31 
     32     # Add libFuzzer configuration directives
     33     include("/tools/fuzzing/libfuzzer-config.mozbuild")
     34 
     35 if CONFIG["FUZZING_INTERFACES"]:
     36     if CONFIG["LIBFUZZER"]:
     37         USE_LIBS += ["static:fuzzer"]
     38     else:
     39         USE_LIBS += ["static:fuzzer-interface"]
     40 
     41 USE_LIBS += [
     42     "static:js",
     43     "static:jsrust",
     44 ]
     45 
     46 DEFINES["topsrcdir"] = "%s/js/src" % TOPSRCDIR