2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'jemalloc_types.h',
|
|
|
|
]
|
|
|
|
|
2013-06-04 19:08:44 +04:00
|
|
|
if not CONFIG['MOZ_JEMALLOC3']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'jemalloc.c',
|
|
|
|
]
|
2013-06-18 16:13:42 +04:00
|
|
|
LIBRARY_NAME = 'jemalloc'
|
2013-10-24 21:52:00 +04:00
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-27 17:55:07 +04:00
|
|
|
|
|
|
|
# For non release/esr builds, enable (some) fatal jemalloc assertions. This
|
|
|
|
# helps us catch memory errors.
|
|
|
|
if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release', 'esr'):
|
|
|
|
DEFINES['MOZ_JEMALLOC_HARD_ASSERTS'] = True
|
|
|
|
|
|
|
|
DEFINES['abort'] = 'moz_abort'
|
|
|
|
|
|
|
|
if CONFIG['MOZ_REPLACE_MALLOC']:
|
|
|
|
DEFINES['MOZ_REPLACE_MALLOC'] = True
|
|
|
|
|
|
|
|
DEFINES['MOZ_JEMALLOC_IMPL'] = True
|