tor-browser

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

moz.build (1442B)


      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 ReplaceMalloc("phc")
      8 
      9 DEFINES["MOZ_NO_MOZALLOC"] = True
     10 DEFINES["IMPL_MFBT"] = True
     11 
     12 LOCAL_INCLUDES += [
     13     "../logalloc",
     14     "/memory/build",
     15 ]
     16 
     17 EXPORTS += [
     18     "PHC.h",
     19 ]
     20 
     21 UNIFIED_SOURCES += [
     22     "PHC.cpp",
     23 ]
     24 
     25 if CONFIG["MOZ_BUILD_APP"] == "memory":
     26     UNIFIED_SOURCES += [
     27         "/mfbt/double-conversion/double-conversion/bignum-dtoa.cc",
     28         "/mfbt/double-conversion/double-conversion/bignum.cc",
     29         "/mfbt/double-conversion/double-conversion/cached-powers.cc",
     30         "/mfbt/double-conversion/double-conversion/double-to-string.cc",
     31         "/mfbt/double-conversion/double-conversion/fast-dtoa.cc",
     32         "/mfbt/double-conversion/double-conversion/fixed-dtoa.cc",
     33         "/mfbt/double-conversion/double-conversion/string-to-double.cc",
     34         "/mfbt/double-conversion/double-conversion/strtod.cc",
     35         "/mozglue/misc/Printf.cpp",
     36     ]
     37 
     38 if not CONFIG["MOZ_REPLACE_MALLOC_STATIC"]:
     39     UNIFIED_SOURCES += [
     40         "../logalloc/FdPrintf.cpp",
     41         "/mozglue/misc/StackWalk.cpp",
     42     ]
     43     if CONFIG["OS_ARCH"] == "WINNT":
     44         OS_LIBS += [
     45             "dbghelp",
     46         ]
     47 
     48 TEST_DIRS += ["test"]
     49 
     50 DisableStlWrapping()