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
14 if CONFIG['WRAP_STL_INCLUDES']:
16 EXPORTS.mozilla += ['throw_gcc.h']
17 elif CONFIG['_MSC_VER']:
18 DEFINES['_HAS_EXCEPTIONS'] = 0
19 if CONFIG['MOZ_MSVC_STL_WRAP_RAISE']:
21 'msvc_raise_wrappers.h',
25 'msvc_raise_wrappers.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']