Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | NO_VISIBILITY_FLAGS = True |
michael@0 | 7 | |
michael@0 | 8 | EXPORTS.mozilla += [ |
michael@0 | 9 | 'fallible.h', |
michael@0 | 10 | 'mozalloc.h', |
michael@0 | 11 | 'mozalloc_abort.h', |
michael@0 | 12 | 'mozalloc_oom.h', |
michael@0 | 13 | 'VolatileBuffer.h', |
michael@0 | 14 | ] |
michael@0 | 15 | |
michael@0 | 16 | if CONFIG['MOZ_MSVC_STL_WRAP__RAISE'] or CONFIG['MOZ_MSVC_STL_WRAP__Throw']: |
michael@0 | 17 | build_msvc_wrappers = 1 |
michael@0 | 18 | else: |
michael@0 | 19 | build_msvc_wrappers = 0 |
michael@0 | 20 | |
michael@0 | 21 | if CONFIG['WRAP_STL_INCLUDES']: |
michael@0 | 22 | if CONFIG['GNU_CXX']: |
michael@0 | 23 | EXPORTS.mozilla += ['throw_gcc.h'] |
michael@0 | 24 | elif CONFIG['_MSC_VER']: |
michael@0 | 25 | DEFINES['_HAS_EXCEPTIONS'] = 0 |
michael@0 | 26 | if build_msvc_wrappers: |
michael@0 | 27 | EXPORTS.mozilla += [ |
michael@0 | 28 | 'msvc_raise_wrappers.h', |
michael@0 | 29 | 'msvc_throw_wrapper.h', |
michael@0 | 30 | 'throw_msvc.h', |
michael@0 | 31 | ] |
michael@0 | 32 | SOURCES += [ |
michael@0 | 33 | 'msvc_raise_wrappers.cpp', |
michael@0 | 34 | 'msvc_throw_wrapper.cpp', |
michael@0 | 35 | ] |
michael@0 | 36 | |
michael@0 | 37 | UNIFIED_SOURCES += [ |
michael@0 | 38 | 'mozalloc.cpp', |
michael@0 | 39 | 'mozalloc_abort.cpp', |
michael@0 | 40 | 'mozalloc_oom.cpp', |
michael@0 | 41 | ] |
michael@0 | 42 | |
michael@0 | 43 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 44 | UNIFIED_SOURCES += [ |
michael@0 | 45 | 'VolatileBufferAshmem.cpp', |
michael@0 | 46 | ] |
michael@0 | 47 | elif CONFIG['OS_TARGET'] == 'Darwin': |
michael@0 | 48 | UNIFIED_SOURCES += [ |
michael@0 | 49 | 'VolatileBufferOSX.cpp', |
michael@0 | 50 | ] |
michael@0 | 51 | elif CONFIG['OS_TARGET'] == 'WINNT': |
michael@0 | 52 | UNIFIED_SOURCES += [ |
michael@0 | 53 | 'VolatileBufferWindows.cpp', |
michael@0 | 54 | ] |
michael@0 | 55 | else: |
michael@0 | 56 | UNIFIED_SOURCES += [ |
michael@0 | 57 | 'VolatileBufferFallback.cpp', |
michael@0 | 58 | ] |
michael@0 | 59 | |
michael@0 | 60 | LIBRARY_NAME = 'mozalloc' |
michael@0 | 61 | |
michael@0 | 62 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
michael@0 | 63 | FORCE_STATIC_LIB = True |
michael@0 | 64 | else: |
michael@0 | 65 | FORCE_SHARED_LIB = True |
michael@0 | 66 | |
michael@0 | 67 | # The strndup declaration in string.h is in an ifdef __USE_GNU section |
michael@0 | 68 | DEFINES['_GNU_SOURCE'] = True |
michael@0 | 69 | |
michael@0 | 70 | TEST_TOOL_DIRS += ['tests'] |
michael@0 | 71 | |
michael@0 | 72 | GENERATED_INCLUDES += ['/xpcom'] |
michael@0 | 73 | |
michael@0 | 74 | DISABLE_STL_WRAPPING = True |