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/.
8 'nsIIPCBackgroundChildCreateCallback.h',
9 'nsIIPCSerializableInputStream.h',
10 'nsIIPCSerializableURI.h',
13 EXPORTS.mozilla.ipc += [
17 'BrowserProcessSubThread.h',
18 'CrossProcessMutex.h',
20 'FileDescriptorUtils.h',
21 'GeckoChildProcessHost.h',
30 'SharedMemoryBasic.h',
35 'WindowsMessageLoop.h',
38 if CONFIG['OS_ARCH'] == 'WINNT':
39 EXPORTS.mozilla.ipc += [
43 'SharedMemory_windows.cpp',
45 'WindowsMessageLoop.cpp',
48 EXPORTS.mozilla.ipc += [
52 'SharedMemory_posix.cpp',
53 'Transport_posix.cpp',
56 if CONFIG['OS_ARCH'] == 'WINNT':
58 'CrossProcessMutex_windows.cpp',
60 elif CONFIG['OS_ARCH'] == 'Linux':
62 'CrossProcessMutex_posix.cpp',
66 'CrossProcessMutex_unimplemented.cpp',
69 # Android has its own,
70 # almost-but-not-quite-compatible-with-POSIX-or-/dev/shm shared memory
72 if CONFIG['OS_TARGET'] == 'Android':
73 EXPORTS.mozilla.ipc += ['SharedMemoryBasic_android.h']
75 'SharedMemoryBasic_android.cpp',
78 EXPORTS.mozilla.ipc += ['SharedMemoryBasic_chromium.h']
80 if CONFIG['OS_ARCH'] == 'Linux':
82 'ProcessUtils_linux.cpp',
84 elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
86 'ProcessUtils_bsd.cpp'
88 elif CONFIG['OS_ARCH'] in ('Darwin'):
94 'ProcessUtils_none.cpp',
102 'BackgroundImpl.cpp',
103 'BackgroundUtils.cpp',
104 'BrowserProcessSubThread.cpp',
105 'FileDescriptor.cpp',
106 'FileDescriptorUtils.cpp',
107 'InputStreamUtils.cpp',
108 'MessageChannel.cpp',
113 'ScopedXREEmbed.cpp',
119 # GeckoChildProcessHost.cpp cannot be built in unified mode because it uses plarena.h.
120 # URIUtils.cpp cannot be built in unified mode because of name clashes on strdup.
122 'BackgroundChildImpl.cpp',
123 'BackgroundParentImpl.cpp',
124 'GeckoChildProcessHost.cpp',
133 'InputStreamParams.ipdlh',
135 'PBackgroundSharedTypes.ipdlh',
136 'PBackgroundTest.ipdl',
138 'ProtocolTypes.ipdlh',
148 include('/ipc/chromium/chromium-config.mozbuild')
150 FINAL_LIBRARY = 'xul'
152 for var in ('MOZ_CHILD_PROCESS_NAME', 'MOZ_CHILD_PROCESS_BUNDLE',
153 'DLL_PREFIX', 'DLL_SUFFIX'):
154 DEFINES[var] = '"%s"' % CONFIG[var]
157 '/toolkit/crashreporter',
160 if CONFIG['OS_ARCH'] == 'WINNT':
162 '/security/sandbox/win/src/sandboxbroker',
165 FAIL_ON_WARNINGS = True