Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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