Bug 1859954 - Use XP_DARWIN rather than XP_MACOS in PHC r=glandium
[gecko.git] / memory / replace / phc / moz.build
blobe2d233642cf9263a8f4372a750f6136324a0bd5b
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/.
7 ReplaceMalloc("phc")
9 DEFINES["MOZ_NO_MOZALLOC"] = True
10 DEFINES["IMPL_MFBT"] = True
12 LOCAL_INCLUDES += [
13     "../logalloc",
14     "/memory/build",
17 EXPORTS += [
18     "PHC.h",
21 UNIFIED_SOURCES += [
22     "PHC.cpp",
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     ]
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         ]
48 TEST_DIRS += ["test"]
50 DisableStlWrapping()