memory/replace/jemalloc/moz.build

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:942ab2cdf241
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
7
8 SOURCES += [
9 '../../build/jemalloc_config.c',
10 '../../build/mozjemalloc_compat.c',
11 ]
12
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 ]
20
21 LIBRARY_NAME = 'replace_jemalloc'
22
23 FORCE_SHARED_LIB = True
24
25 DEFINES['MOZ_JEMALLOC3'] = True
26 DEFINES['MOZ_REPLACE_JEMALLOC'] = True
27
28 GENERATED_INCLUDES += ['../../jemalloc/src/include']
29 if CONFIG['_MSC_VER']:
30 LOCAL_INCLUDES += ['/memory/jemalloc/src/include/msvc_compat']
31
32 DISABLE_STL_WRAPPING = True

mercurial