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
15 if CONFIG['MOZ_MSVC_STL_WRAP__RAISE'] or CONFIG['MOZ_MSVC_STL_WRAP__Throw']:
16 build_msvc_wrappers = 1
18 build_msvc_wrappers = 0
20 if CONFIG['WRAP_STL_INCLUDES']:
22 EXPORTS.mozilla += ['throw_gcc.h']
23 elif CONFIG['_MSC_VER']:
24 DEFINES['_HAS_EXCEPTIONS'] = 0
25 if build_msvc_wrappers:
27 'msvc_raise_wrappers.h',
28 'msvc_throw_wrapper.h',
32 'msvc_raise_wrappers.cpp',
33 'msvc_throw_wrapper.cpp',
42 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
45 GeckoSharedLibrary('mozalloc', linkage=None)
48 # The strndup declaration in string.h is in an ifdef __USE_GNU section
49 DEFINES['_GNU_SOURCE'] = True
51 GENERATED_INCLUDES += ['/xpcom']
53 DISABLE_STL_WRAPPING = True
55 if CONFIG['CLANG_CXX'] or CONFIG['_MSC_VER']:
56 FAIL_ON_WARNINGS = True