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/.
15 LIBRARY_DEFINES["MOZ_HAS_MOZGLUE"] = True
16 DEFINES["MOZ_MEMORY_IMPL"] = True
18 if CONFIG["MOZ_REPLACE_MALLOC"]:
21 "replace_malloc_bridge.h",
25 DEFINES["MOZ_PHC"] = True
27 if CONFIG["MOZ_MEMORY"]:
38 if CONFIG["OS_TARGET"] == "Darwin" and (
39 CONFIG["MOZ_REPLACE_MALLOC"] or CONFIG["MOZ_MEMORY"]
47 if CONFIG["OS_TARGET"] == "Android" and CONFIG["CC_TYPE"] == "clang":
49 "-Wno-tautological-pointer-compare",
52 if CONFIG["MOZ_BUILD_APP"] != "memory":
53 FINAL_LIBRARY = "mozglue"
55 if CONFIG["MOZ_REPLACE_MALLOC_STATIC"]:
56 DEFINES["MOZ_REPLACE_MALLOC_STATIC"] = True
60 if CONFIG["CC_TYPE"] == "clang-cl":
61 AllowCompilerWarnings() # workaround for bug 1090497