Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 # -*- Mode: python; c-basic-offset: 4; 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 NO_DIST_INSTALL = True
8 SOURCES += [
9 '../../build/jemalloc_config.c',
10 '../../build/mozjemalloc_compat.c',
11 ]
13 # Android doesn't have pthread_atfork, so just implement a dummy function.
14 # It shouldn't make much problem, as the use of fork is pretty limited on
15 # Android.
16 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
17 SOURCES += [
18 'pthread_atfork.c',
19 ]
21 LIBRARY_NAME = 'replace_jemalloc'
23 FORCE_SHARED_LIB = True
25 DEFINES['MOZ_JEMALLOC3'] = True
26 DEFINES['MOZ_REPLACE_JEMALLOC'] = True
28 GENERATED_INCLUDES += ['../../jemalloc/src/include']
29 if CONFIG['_MSC_VER']:
30 LOCAL_INCLUDES += ['/memory/jemalloc/src/include/msvc_compat']
32 DISABLE_STL_WRAPPING = True