moz.build (818B)
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 EXPORTS += [ 8 "DMD.h", 9 ] 10 11 UNIFIED_SOURCES += [ 12 "DMD.cpp", 13 ] 14 15 if not CONFIG["MOZ_REPLACE_MALLOC_STATIC"]: 16 UNIFIED_SOURCES += [ 17 "/mfbt/HashFunctions.cpp", 18 "/mfbt/Poison.cpp", 19 "/mozglue/misc/StackWalk.cpp", 20 ] 21 if CONFIG["OS_ARCH"] == "WINNT": 22 OS_LIBS += [ 23 "dbghelp", 24 ] 25 26 ReplaceMalloc("dmd") 27 28 DEFINES["MOZ_NO_MOZALLOC"] = True 29 DEFINES["IMPL_MFBT"] = True 30 31 if CONFIG["MOZ_OPTIMIZE"]: 32 DEFINES["MOZ_OPTIMIZE"] = True 33 34 DisableStlWrapping() 35 36 TEST_DIRS += ["test"]