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 | EXPORTS += [ |
michael@0 | 8 | 'nsIIPCBackgroundChildCreateCallback.h', |
michael@0 | 9 | 'nsIIPCSerializableInputStream.h', |
michael@0 | 10 | 'nsIIPCSerializableURI.h', |
michael@0 | 11 | ] |
michael@0 | 12 | |
michael@0 | 13 | EXPORTS.mozilla.ipc += [ |
michael@0 | 14 | 'BackgroundChild.h', |
michael@0 | 15 | 'BackgroundParent.h', |
michael@0 | 16 | 'BrowserProcessSubThread.h', |
michael@0 | 17 | 'CrossProcessMutex.h', |
michael@0 | 18 | 'FileDescriptor.h', |
michael@0 | 19 | 'FileDescriptorUtils.h', |
michael@0 | 20 | 'GeckoChildProcessHost.h', |
michael@0 | 21 | 'InputStreamUtils.h', |
michael@0 | 22 | 'IOThreadChild.h', |
michael@0 | 23 | 'MessageChannel.h', |
michael@0 | 24 | 'MessageLink.h', |
michael@0 | 25 | 'ProcessChild.h', |
michael@0 | 26 | 'ProtocolUtils.h', |
michael@0 | 27 | 'ScopedXREEmbed.h', |
michael@0 | 28 | 'SharedMemory.h', |
michael@0 | 29 | 'SharedMemoryBasic.h', |
michael@0 | 30 | 'SharedMemorySysV.h', |
michael@0 | 31 | 'Shmem.h', |
michael@0 | 32 | 'Transport.h', |
michael@0 | 33 | 'URIUtils.h', |
michael@0 | 34 | 'WindowsMessageLoop.h', |
michael@0 | 35 | ] |
michael@0 | 36 | |
michael@0 | 37 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 38 | EXPORTS.mozilla.ipc += [ |
michael@0 | 39 | 'Transport_win.h', |
michael@0 | 40 | ] |
michael@0 | 41 | SOURCES += [ |
michael@0 | 42 | 'SharedMemory_windows.cpp', |
michael@0 | 43 | 'Transport_win.cpp', |
michael@0 | 44 | 'WindowsMessageLoop.cpp', |
michael@0 | 45 | ] |
michael@0 | 46 | else: |
michael@0 | 47 | EXPORTS.mozilla.ipc += [ |
michael@0 | 48 | 'Transport_posix.h', |
michael@0 | 49 | ] |
michael@0 | 50 | UNIFIED_SOURCES += [ |
michael@0 | 51 | 'SharedMemory_posix.cpp', |
michael@0 | 52 | 'Transport_posix.cpp', |
michael@0 | 53 | ] |
michael@0 | 54 | |
michael@0 | 55 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 56 | SOURCES += [ |
michael@0 | 57 | 'CrossProcessMutex_windows.cpp', |
michael@0 | 58 | ] |
michael@0 | 59 | elif CONFIG['OS_ARCH'] == 'Linux': |
michael@0 | 60 | UNIFIED_SOURCES += [ |
michael@0 | 61 | 'CrossProcessMutex_posix.cpp', |
michael@0 | 62 | ] |
michael@0 | 63 | else: |
michael@0 | 64 | UNIFIED_SOURCES += [ |
michael@0 | 65 | 'CrossProcessMutex_unimplemented.cpp', |
michael@0 | 66 | ] |
michael@0 | 67 | |
michael@0 | 68 | # Android has its own, |
michael@0 | 69 | # almost-but-not-quite-compatible-with-POSIX-or-/dev/shm shared memory |
michael@0 | 70 | # impl. |
michael@0 | 71 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 72 | EXPORTS.mozilla.ipc += ['SharedMemoryBasic_android.h'] |
michael@0 | 73 | UNIFIED_SOURCES += [ |
michael@0 | 74 | 'SharedMemoryBasic_android.cpp', |
michael@0 | 75 | ] |
michael@0 | 76 | else: |
michael@0 | 77 | EXPORTS.mozilla.ipc += ['SharedMemoryBasic_chromium.h'] |
michael@0 | 78 | |
michael@0 | 79 | if CONFIG['OS_ARCH'] == 'Linux': |
michael@0 | 80 | UNIFIED_SOURCES += [ |
michael@0 | 81 | 'ProcessUtils_linux.cpp', |
michael@0 | 82 | ] |
michael@0 | 83 | elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'): |
michael@0 | 84 | UNIFIED_SOURCES += [ |
michael@0 | 85 | 'ProcessUtils_bsd.cpp' |
michael@0 | 86 | ] |
michael@0 | 87 | else: |
michael@0 | 88 | UNIFIED_SOURCES += [ |
michael@0 | 89 | 'ProcessUtils_none.cpp', |
michael@0 | 90 | ] |
michael@0 | 91 | |
michael@0 | 92 | EXPORTS.ipc += [ |
michael@0 | 93 | 'IPCMessageUtils.h', |
michael@0 | 94 | ] |
michael@0 | 95 | |
michael@0 | 96 | UNIFIED_SOURCES += [ |
michael@0 | 97 | 'BackgroundImpl.cpp', |
michael@0 | 98 | 'BrowserProcessSubThread.cpp', |
michael@0 | 99 | 'FileDescriptor.cpp', |
michael@0 | 100 | 'FileDescriptorUtils.cpp', |
michael@0 | 101 | 'InputStreamUtils.cpp', |
michael@0 | 102 | 'MessageChannel.cpp', |
michael@0 | 103 | 'MessageLink.cpp', |
michael@0 | 104 | 'MessagePump.cpp', |
michael@0 | 105 | 'ProcessChild.cpp', |
michael@0 | 106 | 'ProtocolUtils.cpp', |
michael@0 | 107 | 'ScopedXREEmbed.cpp', |
michael@0 | 108 | 'SharedMemory.cpp', |
michael@0 | 109 | 'Shmem.cpp', |
michael@0 | 110 | 'StringUtil.cpp', |
michael@0 | 111 | ] |
michael@0 | 112 | |
michael@0 | 113 | # GeckoChildProcessHost.cpp cannot be built in unified mode because it uses plarena.h. |
michael@0 | 114 | # URIUtils.cpp cannot be built in unified mode because of name clashes on strdup. |
michael@0 | 115 | SOURCES += [ |
michael@0 | 116 | 'BackgroundChildImpl.cpp', |
michael@0 | 117 | 'BackgroundParentImpl.cpp', |
michael@0 | 118 | 'GeckoChildProcessHost.cpp', |
michael@0 | 119 | 'URIUtils.cpp', |
michael@0 | 120 | ] |
michael@0 | 121 | |
michael@0 | 122 | LOCAL_INCLUDES += [ |
michael@0 | 123 | '/xpcom/build', |
michael@0 | 124 | ] |
michael@0 | 125 | |
michael@0 | 126 | IPDL_SOURCES = [ |
michael@0 | 127 | 'InputStreamParams.ipdlh', |
michael@0 | 128 | 'PBackground.ipdl', |
michael@0 | 129 | 'PBackgroundTest.ipdl', |
michael@0 | 130 | 'ProtocolTypes.ipdlh', |
michael@0 | 131 | 'URIParams.ipdlh', |
michael@0 | 132 | ] |
michael@0 | 133 | |
michael@0 | 134 | |
michael@0 | 135 | LOCAL_INCLUDES += [ |
michael@0 | 136 | '/xpcom/threads', |
michael@0 | 137 | ] |
michael@0 | 138 | |
michael@0 | 139 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 140 | |
michael@0 | 141 | FINAL_LIBRARY = 'xul' |
michael@0 | 142 | |
michael@0 | 143 | for var in ('MOZ_CHILD_PROCESS_NAME', 'MOZ_CHILD_PROCESS_BUNDLE'): |
michael@0 | 144 | DEFINES[var] = '"%s"' % CONFIG[var] |
michael@0 | 145 | |
michael@0 | 146 | LOCAL_INCLUDES += [ |
michael@0 | 147 | '/toolkit/crashreporter', |
michael@0 | 148 | ] |
michael@0 | 149 | |
michael@0 | 150 | if CONFIG['MOZ_CONTENT_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 151 | LOCAL_INCLUDES += [ |
michael@0 | 152 | '/security/sandbox/win/src/sandboxbroker', |
michael@0 | 153 | ] |