michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: NO_DIST_INSTALL = True michael@0: michael@0: SOURCES += [ michael@0: '../../build/jemalloc_config.c', michael@0: '../../build/mozjemalloc_compat.c', michael@0: ] michael@0: michael@0: # Android doesn't have pthread_atfork, so just implement a dummy function. michael@0: # It shouldn't make much problem, as the use of fork is pretty limited on michael@0: # Android. michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: SOURCES += [ michael@0: 'pthread_atfork.c', michael@0: ] michael@0: michael@0: LIBRARY_NAME = 'replace_jemalloc' michael@0: michael@0: FORCE_SHARED_LIB = True michael@0: michael@0: DEFINES['MOZ_JEMALLOC3'] = True michael@0: DEFINES['MOZ_REPLACE_JEMALLOC'] = True michael@0: michael@0: GENERATED_INCLUDES += ['../../jemalloc/src/include'] michael@0: if CONFIG['_MSC_VER']: michael@0: LOCAL_INCLUDES += ['/memory/jemalloc/src/include/msvc_compat'] michael@0: michael@0: DISABLE_STL_WRAPPING = True