tor-browser

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

moz.build (904B)


      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("logalloc")
      8 
      9 SOURCES += [
     10     "LogAlloc.cpp",
     11 ]
     12 
     13 # FdPrintf is statically linked if we're using static linking to mozjemalloc
     14 # and PHC is also compiled-in.
     15 if not CONFIG["MOZ_REPLACE_MALLOC_STATIC"] or not CONFIG["MOZ_PHC"]:
     16     SOURCES += [
     17         "/memory/build/FdPrintf.cpp",
     18     ]
     19 
     20 DisableStlWrapping()
     21 NO_PGO = True
     22 DEFINES["MOZ_NO_MOZALLOC"] = True
     23 
     24 LOCAL_INCLUDES += [
     25     "/memory/build",
     26 ]
     27 
     28 # Android doesn't have pthread_atfork, but we have our own in mozglue.
     29 if CONFIG["OS_TARGET"] == "Android" and FORCE_SHARED_LIB:
     30     USE_LIBS += [
     31         "mozglue",
     32     ]
     33 
     34 DIRS += [
     35     "replay",
     36 ]