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 | |
michael@0 | 7 | XPIDL_SOURCES += [ |
michael@0 | 8 | 'nsIConsoleListener.idl', |
michael@0 | 9 | 'nsIConsoleMessage.idl', |
michael@0 | 10 | 'nsIConsoleService.idl', |
michael@0 | 11 | 'nsICycleCollectorListener.idl', |
michael@0 | 12 | 'nsIDebug.idl', |
michael@0 | 13 | 'nsIDebug2.idl', |
michael@0 | 14 | 'nsIErrorService.idl', |
michael@0 | 15 | 'nsIException.idl', |
michael@0 | 16 | 'nsIGZFileWriter.idl', |
michael@0 | 17 | 'nsIInterfaceRequestor.idl', |
michael@0 | 18 | 'nsIMemory.idl', |
michael@0 | 19 | 'nsIMemoryInfoDumper.idl', |
michael@0 | 20 | 'nsIMemoryReporter.idl', |
michael@0 | 21 | 'nsIMessageLoop.idl', |
michael@0 | 22 | 'nsIMutable.idl', |
michael@0 | 23 | 'nsIProgrammingLanguage.idl', |
michael@0 | 24 | 'nsISecurityConsoleMessage.idl', |
michael@0 | 25 | 'nsIStatusReporter.idl', |
michael@0 | 26 | 'nsISupports.idl', |
michael@0 | 27 | 'nsIUUIDGenerator.idl', |
michael@0 | 28 | 'nsIVersionComparator.idl', |
michael@0 | 29 | 'nsIVisualEventTracer.idl', |
michael@0 | 30 | 'nsIWeakReference.idl', |
michael@0 | 31 | 'nsrootidl.idl', |
michael@0 | 32 | ] |
michael@0 | 33 | |
michael@0 | 34 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
michael@0 | 35 | XPIDL_SOURCES += [ |
michael@0 | 36 | 'nsIMacUtils.idl', |
michael@0 | 37 | ] |
michael@0 | 38 | |
michael@0 | 39 | XPIDL_MODULE = 'xpcom_base' |
michael@0 | 40 | |
michael@0 | 41 | EXPORTS += [ |
michael@0 | 42 | 'ErrorList.h', |
michael@0 | 43 | 'nsAgg.h', |
michael@0 | 44 | 'nsAutoPtr.h', |
michael@0 | 45 | 'nsAutoRef.h', |
michael@0 | 46 | 'nsCom.h', |
michael@0 | 47 | 'nscore.h', |
michael@0 | 48 | 'nsCycleCollector.h', |
michael@0 | 49 | 'nsDebugImpl.h', |
michael@0 | 50 | 'nsError.h', |
michael@0 | 51 | 'nsGZFileWriter.h', |
michael@0 | 52 | 'nsIID.h', |
michael@0 | 53 | 'nsInterfaceRequestorAgg.h', |
michael@0 | 54 | 'nsISizeOf.h', |
michael@0 | 55 | 'nsISupportsBase.h', |
michael@0 | 56 | 'nsISupportsObsolete.h', |
michael@0 | 57 | 'nsObjCExceptions.h', |
michael@0 | 58 | 'nsStackWalk.h', |
michael@0 | 59 | 'nsTraceRefcnt.h', |
michael@0 | 60 | 'nsWeakPtr.h', |
michael@0 | 61 | ] |
michael@0 | 62 | |
michael@0 | 63 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 64 | EXPORTS += [ |
michael@0 | 65 | 'nsWindowsHelpers.h', |
michael@0 | 66 | ] |
michael@0 | 67 | if CONFIG['MOZ_DEBUG']: |
michael@0 | 68 | EXPORTS += ['pure.h'] |
michael@0 | 69 | SOURCES += ['pure_api.c'] |
michael@0 | 70 | |
michael@0 | 71 | EXPORTS.mozilla += [ |
michael@0 | 72 | 'AvailableMemoryTracker.h', |
michael@0 | 73 | 'ClearOnShutdown.h', |
michael@0 | 74 | 'CycleCollectedJSRuntime.h', |
michael@0 | 75 | 'Debug.h', |
michael@0 | 76 | 'nsMemoryInfoDumper.h', |
michael@0 | 77 | 'StackWalk.h', |
michael@0 | 78 | 'StaticMutex.h', |
michael@0 | 79 | 'StaticPtr.h', |
michael@0 | 80 | 'SystemMemoryReporter.h', |
michael@0 | 81 | 'VisualEventTracer.h', |
michael@0 | 82 | ] |
michael@0 | 83 | |
michael@0 | 84 | # nsDebugImpl isn't unified because we disable PGO so that NS_ABORT_OOM isn't |
michael@0 | 85 | # optimized away oddly. |
michael@0 | 86 | SOURCES += [ |
michael@0 | 87 | 'nsDebugImpl.cpp', |
michael@0 | 88 | ] |
michael@0 | 89 | SOURCES['nsDebugImpl.cpp'].no_pgo = True |
michael@0 | 90 | |
michael@0 | 91 | UNIFIED_SOURCES += [ |
michael@0 | 92 | 'AvailableMemoryTracker.cpp', |
michael@0 | 93 | 'ClearOnShutdown.cpp', |
michael@0 | 94 | 'CycleCollectedJSRuntime.cpp', |
michael@0 | 95 | 'Debug.cpp', |
michael@0 | 96 | 'nsConsoleMessage.cpp', |
michael@0 | 97 | 'nsConsoleService.cpp', |
michael@0 | 98 | 'nsCycleCollector.cpp', |
michael@0 | 99 | 'nsDumpUtils.cpp', |
michael@0 | 100 | 'nsErrorService.cpp', |
michael@0 | 101 | 'nsGZFileWriter.cpp', |
michael@0 | 102 | 'nsInterfaceRequestorAgg.cpp', |
michael@0 | 103 | 'nsMemoryImpl.cpp', |
michael@0 | 104 | 'nsMemoryInfoDumper.cpp', |
michael@0 | 105 | 'nsMemoryReporterManager.cpp', |
michael@0 | 106 | 'nsMessageLoop.cpp', |
michael@0 | 107 | 'nsSecurityConsoleMessage.cpp', |
michael@0 | 108 | 'nsStatusReporterManager.cpp', |
michael@0 | 109 | 'nsSystemInfo.cpp', |
michael@0 | 110 | 'nsTraceRefcnt.cpp', |
michael@0 | 111 | 'nsUUIDGenerator.cpp', |
michael@0 | 112 | 'nsVersionComparatorImpl.cpp', |
michael@0 | 113 | 'VisualEventTracer.cpp', |
michael@0 | 114 | ] |
michael@0 | 115 | |
michael@0 | 116 | # On Windows, NS_StackWalk will only work correctly if we have frame pointers available. |
michael@0 | 117 | # That will only be true for non-optimized builds, and for optimized builds with |
michael@0 | 118 | # --enable-profiling in the .mozconfig (which is turned on in Nightly by default.) |
michael@0 | 119 | # We exclude this file from other build configurations so that if somebody adds a |
michael@0 | 120 | # new usage of NS_StackWalk it will cause a link error, which is better than having |
michael@0 | 121 | # NS_StackWalk silently return garbage at runtime. |
michael@0 | 122 | if CONFIG['OS_TARGET'] != 'WINNT' or \ |
michael@0 | 123 | (not CONFIG['MOZ_OPTIMIZE'] or CONFIG['MOZ_PROFILING'] or CONFIG['MOZ_DEBUG']): |
michael@0 | 124 | UNIFIED_SOURCES += [ |
michael@0 | 125 | 'nsStackWalk.cpp', |
michael@0 | 126 | ] |
michael@0 | 127 | |
michael@0 | 128 | if CONFIG['OS_ARCH'] == 'Linux': |
michael@0 | 129 | SOURCES += [ |
michael@0 | 130 | 'SystemMemoryReporter.cpp', |
michael@0 | 131 | ] |
michael@0 | 132 | |
michael@0 | 133 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': |
michael@0 | 134 | SOURCES += [ |
michael@0 | 135 | 'nsMacUtilsImpl.cpp', |
michael@0 | 136 | ] |
michael@0 | 137 | elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': |
michael@0 | 138 | SOURCES += [ |
michael@0 | 139 | 'nsCrashOnException.cpp', |
michael@0 | 140 | ] |
michael@0 | 141 | |
michael@0 | 142 | UNIFIED_SOURCES += [ |
michael@0 | 143 | 'nsErrorAssertsC.c', |
michael@0 | 144 | ] |
michael@0 | 145 | |
michael@0 | 146 | MSVC_ENABLE_PGO = True |
michael@0 | 147 | |
michael@0 | 148 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 149 | |
michael@0 | 150 | FINAL_LIBRARY = 'xpcom_core' |
michael@0 | 151 | |
michael@0 | 152 | LOCAL_INCLUDES += [ |
michael@0 | 153 | '../build', |
michael@0 | 154 | '/xpcom/ds', |
michael@0 | 155 | ] |
michael@0 | 156 | |
michael@0 | 157 | if CONFIG['MOZ_OPTIMIZE']: |
michael@0 | 158 | DEFINES['MOZ_OPTIMIZE'] = True |
michael@0 | 159 | |
michael@0 | 160 | if CONFIG['GNU_CC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': |
michael@0 | 161 | # Work around bug 986928 |
michael@0 | 162 | CXXFLAGS += ['-Wno-error=format'] |