memory/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 31 Aug 2017 16:43:19 +0900
changeset 380199 77650b2c281280c89b5407d25b56838efb886cad
parent 358521 faae5fbdd01ddaf171810c446a645ea00085aa54
child 382423 a531623c4ec56359d7c6012f62e897318eeb2aa9
permissions -rw-r--r--
Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn The files relevant to the memory allocator are currently spread between memory/mozjemalloc and memory/build, and the distinction was historically from sharing some Mozilla-specific things between mozjemalloc and jemalloc3. That distinction is not useful anymore, so we fold everything together. As we will likely rename the allocator at some point in the future, it is preferable to move away from the mozjemalloc directory rather than in its direction.

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

with Files("**"):
    BUG_COMPONENT = ("Core", "Memory Allocator")

DIRS += [
    'mozalloc',
    'fallible',
]

if not CONFIG['JS_STANDALONE']:
    DIRS += ['volatile']

if CONFIG['MOZ_MEMORY']:
    # NB: gtest dir is included in toolkit/toolkit.build due to its dependency
    # on libxul.
    DIRS += [
        'build',
    ]

    if CONFIG['MOZ_REPLACE_MALLOC']:
        DIRS += ['replace']