Bug 1283439 - Include OpusDecoder.h only for Rust MP4 parsing r=kinetik
[gecko.git] / memory / mozalloc / moz.build
blobf4154aa92ee57e08b7b1e66923868d3525dc91fb
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 NO_VISIBILITY_FLAGS = True
8 EXPORTS.mozilla += [
9     'mozalloc.h',
10     'mozalloc_abort.h',
11     'mozalloc_oom.h',
14 if CONFIG['WRAP_STL_INCLUDES']:
15     if CONFIG['GNU_CXX']:
16         EXPORTS.mozilla += ['throw_gcc.h']
17     elif CONFIG['_MSC_VER']:
18         DEFINES['_HAS_EXCEPTIONS'] = 0
19         if CONFIG['MOZ_MSVC_STL_WRAP_RAISE']:
20             EXPORTS.mozilla += [
21                 'msvc_raise_wrappers.h',
22                 'throw_msvc.h',
23             ]
24             SOURCES += [
25                 'msvc_raise_wrappers.cpp',
26             ]
28 UNIFIED_SOURCES += [
29     'mozalloc.cpp',
30     'mozalloc_abort.cpp',
31     'mozalloc_oom.cpp',
34 FINAL_LIBRARY = 'mozglue'
36 # The strndup declaration in string.h is in an ifdef __USE_GNU section
37 DEFINES['_GNU_SOURCE'] = True
39 DISABLE_STL_WRAPPING = True
41 DEFINES['IMPL_MFBT'] = True
43 if CONFIG['_MSC_VER']:
44     DIRS += ['staticruntime']
46 LOCAL_INCLUDES += [
47     '!/xpcom',
48     '/memory/build',
51 DIST_INSTALL = True