gecko-dev/memory/mozjemalloc/moz.build

30 строки
737 B
Python

# -*- 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/.
EXPORTS += [
'mozjemalloc_types.h',
]
SOURCES += [
'mozjemalloc.cpp',
]
FINAL_LIBRARY = 'memory'
DEFINES['MOZ_JEMALLOC_IMPL'] = True
LOCAL_INCLUDES += [
'/memory/build',
]
if CONFIG['GNU_CXX']:
# too many warnings from functions generated through rb_wrab from rb.h.
CXXFLAGS += ['-Wno-unused-function']
if CONFIG['_MSC_VER']:
CXXFLAGS += ['-wd4273'] # inconsistent dll linkage (bug 558163)
DISABLE_STL_WRAPPING = True