2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:22 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsIIPCSerializableInputStream.h',
|
|
|
|
'nsIIPCSerializableURI.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.ipc += [
|
|
|
|
'BrowserProcessSubThread.h',
|
|
|
|
'CrossProcessMutex.h',
|
|
|
|
'FileDescriptor.h',
|
|
|
|
'FileDescriptorUtils.h',
|
|
|
|
'GeckoChildProcessHost.h',
|
|
|
|
'InputStreamUtils.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'IOThreadChild.h',
|
2013-09-28 01:42:08 +00:00
|
|
|
'MessageChannel.h',
|
|
|
|
'MessageLink.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'ProcessChild.h',
|
|
|
|
'ProtocolUtils.h',
|
|
|
|
'ScopedXREEmbed.h',
|
|
|
|
'SharedMemory.h',
|
|
|
|
'SharedMemoryBasic.h',
|
|
|
|
'SharedMemorySysV.h',
|
|
|
|
'Shmem.h',
|
|
|
|
'Transport.h',
|
|
|
|
'URIUtils.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS.mozilla.ipc += [
|
|
|
|
'Transport_win.h',
|
|
|
|
]
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'SharedMemory_windows.cpp',
|
|
|
|
'Transport_win.cpp',
|
|
|
|
'WindowsMessageLoop.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
else:
|
|
|
|
EXPORTS.mozilla.ipc += [
|
|
|
|
'Transport_posix.h',
|
|
|
|
]
|
2013-11-22 18:53:02 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'SharedMemory_posix.cpp',
|
|
|
|
'Transport_posix.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
2013-12-19 20:19:25 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
SOURCES += [
|
|
|
|
'CrossProcessMutex_windows.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'CrossProcessMutex_posix.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'CrossProcessMutex_unimplemented.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
# Android has its own,
|
|
|
|
# almost-but-not-quite-compatible-with-POSIX-or-/dev/shm shared memory
|
|
|
|
# impl.
|
|
|
|
if CONFIG['OS_TARGET'] == 'Android':
|
|
|
|
EXPORTS.mozilla.ipc += ['SharedMemoryBasic_android.h']
|
2013-11-22 18:53:02 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'SharedMemoryBasic_android.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
else:
|
|
|
|
EXPORTS.mozilla.ipc += ['SharedMemoryBasic_chromium.h']
|
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
2013-11-22 18:53:02 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'ProcessUtils_linux.cpp',
|
|
|
|
]
|
|
|
|
else:
|
2013-11-22 18:53:02 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'ProcessUtils_none.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.ipc += [
|
|
|
|
'IPCMessageUtils.h',
|
|
|
|
]
|
|
|
|
|
2013-11-22 18:53:02 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'BrowserProcessSubThread.cpp',
|
|
|
|
'FileDescriptor.cpp',
|
|
|
|
'FileDescriptorUtils.cpp',
|
|
|
|
'InputStreamUtils.cpp',
|
2013-09-28 01:42:08 +00:00
|
|
|
'MessageChannel.cpp',
|
|
|
|
'MessageLink.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'MessagePump.cpp',
|
|
|
|
'ProcessChild.cpp',
|
|
|
|
'ProtocolUtils.cpp',
|
|
|
|
'ScopedXREEmbed.cpp',
|
|
|
|
'SharedMemory.cpp',
|
|
|
|
'Shmem.cpp',
|
|
|
|
'StringUtil.cpp',
|
2013-11-22 18:53:02 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# GeckoChildProcessHost.cpp cannot be built in unified mode because it uses plarena.h.
|
|
|
|
# URIUtils.cpp cannot be built in unified mode because of name clashes on strdup.
|
|
|
|
SOURCES += [
|
|
|
|
'GeckoChildProcessHost.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'URIUtils.cpp',
|
|
|
|
]
|
|
|
|
|
2013-07-01 13:56:28 +00:00
|
|
|
IPDL_SOURCES = [
|
|
|
|
'InputStreamParams.ipdlh',
|
2013-05-31 13:16:57 +00:00
|
|
|
'ProtocolTypes.ipdlh',
|
2013-07-01 13:56:28 +00:00
|
|
|
'URIParams.ipdlh',
|
|
|
|
]
|
2013-08-22 06:56:00 +00:00
|
|
|
|
2013-12-09 19:57:29 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/xpcom/threads',
|
|
|
|
]
|
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 13:55:07 +00:00
|
|
|
|
|
|
|
for var in ('MOZ_CHILD_PROCESS_NAME', 'MOZ_CHILD_PROCESS_BUNDLE'):
|
|
|
|
DEFINES[var] = '"%s"' % CONFIG[var]
|
2013-12-31 09:06:11 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/toolkit/crashreporter',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_CONTENT_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/security/sandbox/win/src/sandboxbroker',
|
|
|
|
]
|