memory/jemalloc/moz.build

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 SOURCES += [
michael@0 8 'src/src/arena.c',
michael@0 9 'src/src/atomic.c',
michael@0 10 'src/src/base.c',
michael@0 11 'src/src/bitmap.c',
michael@0 12 'src/src/chunk.c',
michael@0 13 'src/src/chunk_dss.c',
michael@0 14 'src/src/chunk_mmap.c',
michael@0 15 'src/src/ckh.c',
michael@0 16 'src/src/ctl.c',
michael@0 17 'src/src/extent.c',
michael@0 18 'src/src/hash.c',
michael@0 19 'src/src/huge.c',
michael@0 20 'src/src/jemalloc.c',
michael@0 21 'src/src/mb.c',
michael@0 22 'src/src/mutex.c',
michael@0 23 'src/src/prof.c',
michael@0 24 'src/src/quarantine.c',
michael@0 25 'src/src/rtree.c',
michael@0 26 'src/src/stats.c',
michael@0 27 'src/src/tcache.c',
michael@0 28 'src/src/tsd.c',
michael@0 29 'src/src/util.c',
michael@0 30 ]
michael@0 31
michael@0 32 # Only OSX needs the zone allocation implementation,
michael@0 33 # but only if replace-malloc is not enabled.
michael@0 34 if CONFIG['OS_TARGET'] == 'Darwin' and not CONFIG['MOZ_REPLACE_MALLOC']:
michael@0 35 SOURCES += [
michael@0 36 'src/src/zone.c',
michael@0 37 ]
michael@0 38
michael@0 39 LIBRARY_NAME = 'jemalloc'
michael@0 40
michael@0 41 FORCE_STATIC_LIB = True
michael@0 42
michael@0 43 if CONFIG['_MSC_VER']:
michael@0 44 DEFINES['DLLEXPORT'] = True
michael@0 45 LOCAL_INCLUDES += ['src/include/msvc_compat']
michael@0 46
michael@0 47 if CONFIG['OS_TARGET'] == 'Linux':
michael@0 48 # For mremap
michael@0 49 DEFINES['_GNU_SOURCE'] = True
michael@0 50
michael@0 51 DEFINES['abort'] = 'moz_abort'
michael@0 52
michael@0 53 GENERATED_INCLUDES += ['src/include']
michael@0 54 LOCAL_INCLUDES += ['src/include']

mercurial