moz.build (583B)
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 8 @template 9 def ReplaceMalloc(name): 10 if CONFIG["MOZ_REPLACE_MALLOC_STATIC"]: 11 DEFINES["MOZ_REPLACE_MALLOC_PREFIX"] = name.replace("-", "_") 12 FINAL_LIBRARY = "memory" 13 else: 14 SharedLibrary(name) 15 16 17 DIRS += [ 18 "logalloc", 19 ] 20 21 if CONFIG["MOZ_DMD"]: 22 DIRS += ["dmd"]