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/.
16 LIBRARY_DEFINES["MOZ_HAS_MOZGLUE"] = True
17 DEFINES["MOZ_MEMORY_IMPL"] = True
19 if CONFIG["MOZ_BUILD_APP"] == "memory":
20 DEFINES["IMPL_MFBT"] = True
22 if CONFIG["MOZ_REPLACE_MALLOC"]:
25 "replace_malloc_bridge.h",
29 DEFINES["MOZ_PHC"] = True
32 # PHC.cpp is #included in mozjemalloc.cpp
35 if CONFIG["MOZ_MEMORY"]:
46 if CONFIG["OS_TARGET"] == "Darwin" and (
47 CONFIG["MOZ_REPLACE_MALLOC"] or CONFIG["MOZ_MEMORY"]
55 if CONFIG["OS_TARGET"] == "Android" and CONFIG["CC_TYPE"] == "clang":
57 "-Wno-tautological-pointer-compare",
60 if CONFIG["MOZ_BUILD_APP"] != "memory":
61 FINAL_LIBRARY = "mozglue"
63 if CONFIG["MOZ_REPLACE_MALLOC_STATIC"]:
64 DEFINES["MOZ_REPLACE_MALLOC_STATIC"] = True
68 if CONFIG["CC_TYPE"] == "clang-cl":
69 AllowCompilerWarnings() # workaround for bug 1090497