moz.build (1207B)
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 Program("mozjemalloc-info") 8 9 SOURCES += [ 10 "/mfbt/Assertions.cpp", 11 "/mfbt/RandomNum.cpp", 12 "/mfbt/TaggedAnonymousMemory.cpp", 13 "/mozglue/misc/StackWalk.cpp", 14 "MozjemallocInfo.cpp", 15 ] 16 17 # Link replace-malloc and the default allocator. 18 USE_LIBS += [ 19 "memory", 20 ] 21 22 # The memory library defines this, so it's needed here too. 23 DEFINES["IMPL_MFBT"] = True 24 25 OS_LIBS += CONFIG["LIBATOMIC_LIBS"] 26 27 UNIFIED_SOURCES += [ 28 "/mfbt/double-conversion/double-conversion/bignum-dtoa.cc", 29 "/mfbt/double-conversion/double-conversion/bignum.cc", 30 "/mfbt/double-conversion/double-conversion/cached-powers.cc", 31 "/mfbt/double-conversion/double-conversion/double-to-string.cc", 32 "/mfbt/double-conversion/double-conversion/fast-dtoa.cc", 33 "/mfbt/double-conversion/double-conversion/fixed-dtoa.cc", 34 "/mozglue/misc/Printf.cpp", 35 ] 36 37 DisableStlWrapping() 38 39 include("/mozglue/build/replace_malloc.mozbuild")