build/buildconfig.py
author Eugen Sawin <esawin@me73.com>
Fri, 30 Jun 2017 10:37:27 -0700
changeset 415774 8c0a3de985d41f7fad4118e30a011659b01e8e3a
parent 392060 0041f17d932f68322f8693a05574f9870299eb12
child 434519 cb773c661e0ca0bf297e977343076bef34411523
permissions -rw-r--r--
Bug 1318247 - [1.0] Add custom refcounting of zips in ZipCollection to allow for thread-safe reuse of zips. r=glandium

# 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/.

import os
import sys
from mozbuild.base import MozbuildObject

config = MozbuildObject.from_environment()

for var in ('topsrcdir', 'topobjdir', 'defines', 'non_global_defines',
            'substs'):
    value = getattr(config, var)
    setattr(sys.modules[__name__], var, value)

substs = dict(substs)

for var in os.environ:
    if var not in ('CPP', 'CXXCPP', 'SHELL') and var in substs:
        substs[var] = os.environ[var]