tor-browser

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

moz.build (1205B)


      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     "BTTypes.h",
     12     "BTVerifier.h",
     13     "Buffer.h",
     14     "CTKnownLogs.h",
     15     "CTLog.h",
     16     "CTPolicyEnforcer.h",
     17     "CTVerifyResult.h",
     18     "SignedCertificateTimestamp.h",
     19 ]
     20 
     21 UNIFIED_SOURCES += [
     22     "BTVerifier.cpp",
     23     "Buffer.cpp",
     24     "CTLogVerifier.cpp",
     25     "CTObjectsExtractor.cpp",
     26     "CTPolicyEnforcer.cpp",
     27     "CTSerialization.cpp",
     28     "CTVerifyResult.cpp",
     29     "MultiLogCTVerifier.cpp",
     30     "SignedCertificateTimestamp.cpp",
     31 ]
     32 
     33 TEST_DIRS += [
     34     "tests/gtest",
     35 ]
     36 
     37 if not CONFIG["MOZ_DEBUG"]:
     38     DEFINES["NDEBUG"] = True
     39 
     40 CXXFLAGS += [
     41     "-Wextra",
     42     "-Wunreachable-code",
     43 ]
     44 
     45 # Gecko headers aren't warning-free enough for us to enable these warnings.
     46 CXXFLAGS += [
     47     "-Wno-unused-parameter",
     48 ]
     49 
     50 FINAL_LIBRARY = "xul"
     51 
     52 if CONFIG["CC_TYPE"] == "clang-cl":
     53     AllowCompilerWarnings()  # workaround for bug 1090497