Bug 1755973 - Try implied arr+[0] in GetUniformIndices. r=gfx-reviewers,bradwerth
[gecko.git] / memory / mozalloc / moz.build
blob2d13c6cf143c1370a202229b343c90134a57f7cc
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 NoVisibilityFlags()
8 EXPORTS.mozilla += [
9     "cxxalloc.h",
10     "mozalloc.h",
11     "mozalloc_abort.h",
12     "mozalloc_oom.h",
15 if CONFIG["WRAP_STL_INCLUDES"]:
16     if CONFIG["CC_TYPE"] in ("clang", "gcc"):
17         EXPORTS.mozilla += ["throw_gcc.h"]
18     elif CONFIG["CC_TYPE"] == "clang-cl":
19         DEFINES["_HAS_EXCEPTIONS"] = 0
20         SOURCES += [
21             "msvc_raise_wrappers.cpp",
22         ]
24 if CONFIG["OS_TARGET"] == "WINNT":
25     # Keep this file separate to avoid #include'ing windows.h everywhere.
26     SOURCES += [
27         "winheap.cpp",
28     ]
30 UNIFIED_SOURCES += [
31     "mozalloc.cpp",
32     "mozalloc_abort.cpp",
33     "mozalloc_oom.cpp",
36 if CONFIG["MOZ_MEMORY"]:
37     # In MinGW, we don't want to actually export these functions out of the library
38     # as the functions in libc++ correctly forward to jemalloc and exporting them
39     # produces duplicate symbol errors.
40     if not (CONFIG["CC_TYPE"] == "clang" and CONFIG["OS_TARGET"] == "WINNT"):
41         SOURCES += [
42             "cxxalloc.cpp",
43         ]
45 FINAL_LIBRARY = "mozglue"
47 # The strndup declaration in string.h is in an ifdef __USE_GNU section
48 DEFINES["_GNU_SOURCE"] = True
50 DisableStlWrapping()
52 LOCAL_INCLUDES += [
53     "!/xpcom",
54     "/memory/build",
57 DIST_INSTALL = True
59 REQUIRES_UNIFIED_BUILD = True