1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/memory/jemalloc/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +SOURCES += [ 1.11 + 'src/src/arena.c', 1.12 + 'src/src/atomic.c', 1.13 + 'src/src/base.c', 1.14 + 'src/src/bitmap.c', 1.15 + 'src/src/chunk.c', 1.16 + 'src/src/chunk_dss.c', 1.17 + 'src/src/chunk_mmap.c', 1.18 + 'src/src/ckh.c', 1.19 + 'src/src/ctl.c', 1.20 + 'src/src/extent.c', 1.21 + 'src/src/hash.c', 1.22 + 'src/src/huge.c', 1.23 + 'src/src/jemalloc.c', 1.24 + 'src/src/mb.c', 1.25 + 'src/src/mutex.c', 1.26 + 'src/src/prof.c', 1.27 + 'src/src/quarantine.c', 1.28 + 'src/src/rtree.c', 1.29 + 'src/src/stats.c', 1.30 + 'src/src/tcache.c', 1.31 + 'src/src/tsd.c', 1.32 + 'src/src/util.c', 1.33 +] 1.34 + 1.35 +# Only OSX needs the zone allocation implementation, 1.36 +# but only if replace-malloc is not enabled. 1.37 +if CONFIG['OS_TARGET'] == 'Darwin' and not CONFIG['MOZ_REPLACE_MALLOC']: 1.38 + SOURCES += [ 1.39 + 'src/src/zone.c', 1.40 + ] 1.41 + 1.42 +LIBRARY_NAME = 'jemalloc' 1.43 + 1.44 +FORCE_STATIC_LIB = True 1.45 + 1.46 +if CONFIG['_MSC_VER']: 1.47 + DEFINES['DLLEXPORT'] = True 1.48 + LOCAL_INCLUDES += ['src/include/msvc_compat'] 1.49 + 1.50 +if CONFIG['OS_TARGET'] == 'Linux': 1.51 + # For mremap 1.52 + DEFINES['_GNU_SOURCE'] = True 1.53 + 1.54 +DEFINES['abort'] = 'moz_abort' 1.55 + 1.56 +GENERATED_INCLUDES += ['src/include'] 1.57 +LOCAL_INCLUDES += ['src/include']