tor-browser

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

moz.build (1148B)


      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 with Files("**"):
      8     BUG_COMPONENT = ("Core", "Security: PSM")
      9 
     10 EXPORTS += [
     11     "CertVerifier.h",
     12     "OCSPCache.h",
     13 ]
     14 
     15 UNIFIED_SOURCES += [
     16     "CertVerifier.cpp",
     17     "NSSCertDBTrustDomain.cpp",
     18     "OCSPCache.cpp",
     19 ]
     20 
     21 if not CONFIG["NSS_NO_EV_CERTS"]:
     22     UNIFIED_SOURCES += [
     23         "ExtendedValidation.cpp",
     24     ]
     25 
     26 LOCAL_INCLUDES += [
     27     "/security/ct",
     28     "/security/manager/ssl",
     29 ]
     30 
     31 DIRS += [
     32     "../ct",
     33     "signature_cache",
     34 ]
     35 
     36 CXXFLAGS += [
     37     "-Wextra",
     38     "-Wunreachable-code",
     39 ]
     40 
     41 # Gecko headers aren't warning-free enough for us to enable these warnings.
     42 CXXFLAGS += [
     43     "-Wno-unused-parameter",
     44 ]
     45 
     46 include("/ipc/chromium/chromium-config.mozbuild")
     47 
     48 FINAL_LIBRARY = "xul"
     49 
     50 if CONFIG["CC_TYPE"] == "clang-cl":
     51     AllowCompilerWarnings()  # workaround for bug 1090497
     52 
     53 if CONFIG["MOZ_SYSTEM_NSS"]:
     54     DEFINES["MOZ_SYSTEM_NSS"] = True