memory/moz.build
author Nick Alexander <nalexander@mozilla.com>
Tue, 20 Oct 2015 15:30:44 -0700
changeset 268968 d8bf6eec26273b90f2a92c6d1e7a967ede086c2b
parent 260783 2e49287be6e4d421971fad2a4dee01e1297e31c4
child 288544 ec1879bdc5dc04d4a810c5177be94eb9b3218b9b
permissions -rw-r--r--
Bug 1123416 - Part 3: Limit IntelliJ objdir indexing. r=sebastian IntelliJ's exclusion mechanism (for Gradle-based projects) is not very flexible; we get just idea.module.excludeDirs. This patch crawls the file system to skip what we can.

# -*- Mode: python; c-basic-offset: 4; 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/.

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

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

if CONFIG['MOZ_MEMORY']:
    DIRS += [
        'build',
        'mozjemalloc',
    ]

    if CONFIG['MOZ_JEMALLOC4'] or CONFIG['MOZ_REPLACE_MALLOC']:
        if not CONFIG['MOZ_NATIVE_JEMALLOC']:
            DIRS += ['jemalloc']

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