2
# This Source Code Form is subject to the terms of the Mozilla Public
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
topsrcdir = @top_srcdir@
11
include $(DEPTH)/config/autoconf.mk
16
STL_FLAGS = -D_HAS_EXCEPTIONS=0
20
LIBRARY_NAME = mozalloc
23
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
29
# TODO: we do this in crashreporter and storage/src too, should be centralized
30
ifeq ($(OS_ARCH),Linux)
34
ifeq (,$(filter-out OS2,$(OS_ARCH)))
35
# The strndup declaration in string.h is in an ifdef __USE_GNU section
36
DEFINES += -D_GNU_SOURCE
39
EXPORTS_NAMESPACES = mozilla
44
mozalloc_macro_wrappers.h \
46
mozalloc_undef_macro_wrappers.h \
55
ifdef WRAP_STL_INCLUDES #{
57
EXPORTS_mozilla += throw_gcc.h
61
ifeq ($(MOZ_MSVC_STL_WRAP__RAISE),1) #{
62
BUILD_MSVC_WRAPPERS = 1
64
ifeq ($(MOZ_MSVC_STL_WRAP__Throw),1) #{
65
BUILD_MSVC_WRAPPERS = 1
69
ifdef BUILD_MSVC_WRAPPERS #{
71
msvc_raise_wrappers.h \
72
msvc_throw_wrapper.h \
77
msvc_raise_wrappers.cpp \
78
msvc_throw_wrapper.cpp \
87
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
88
SDK_LIBRARY = $(IMPORT_LIBRARY)
90
SDK_LIBRARY = $(SHARED_LIBRARY)
93
LOCAL_INCLUDES += -I$(DEPTH)/xpcom
95
include $(topsrcdir)/config/rules.mk