2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:22 -08: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 12:24:43 -07:00
|
|
|
EXPORTS += [
|
2013-11-26 23:59:41 -08:00
|
|
|
'nsIIPCBackgroundChildCreateCallback.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsIIPCSerializableInputStream.h',
|
|
|
|
'nsIIPCSerializableURI.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.ipc += [
|
2013-11-26 23:59:41 -08:00
|
|
|
'BackgroundChild.h',
|
|
|
|
'BackgroundParent.h',
|
2014-07-07 11:13:04 -07:00
|
|
|
'BackgroundUtils.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'BrowserProcessSubThread.h',
|
|
|
|
'CrossProcessMutex.h',
|
|
|
|
'FileDescriptor.h',
|
2014-09-26 16:21:57 -07:00
|
|
|
'FileDescriptorSetChild.h',
|
|
|
|
'FileDescriptorSetParent.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'FileDescriptorUtils.h',
|
|
|
|
'GeckoChildProcessHost.h',
|
|
|
|
'InputStreamUtils.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'IOThreadChild.h',
|
2013-09-27 18:42:08 -07:00
|
|
|
'MessageChannel.h',
|
|
|
|
'MessageLink.h',
|
2015-07-21 00:21:51 -07:00
|
|
|
'Neutering.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'ProcessChild.h',
|
|
|
|
'ProtocolUtils.h',
|
|
|
|
'ScopedXREEmbed.h',
|
|
|
|
'SharedMemory.h',
|
|
|
|
'SharedMemoryBasic.h',
|
|
|
|
'SharedMemorySysV.h',
|
|
|
|
'Shmem.h',
|
|
|
|
'Transport.h',
|
|
|
|
'URIUtils.h',
|
2014-05-17 20:16:51 -07:00
|
|
|
'WindowsMessageLoop.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
EXPORTS.mozilla.ipc += [
|
|
|
|
'Transport_win.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'SharedMemory_windows.cpp',
|
|
|
|
'Transport_win.cpp',
|
|
|
|
'WindowsMessageLoop.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
else:
|
|
|
|
EXPORTS.mozilla.ipc += [
|
|
|
|
'Transport_posix.h',
|
|
|
|
]
|
2013-11-22 10:53:02 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'SharedMemory_posix.cpp',
|
|
|
|
'Transport_posix.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
2013-12-19 12:19:25 -08:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
SOURCES += [
|
|
|
|
'CrossProcessMutex_windows.cpp',
|
|
|
|
]
|
2014-11-07 11:17:14 -08:00
|
|
|
elif CONFIG['OS_ARCH'] in ('Linux', 'Darwin'):
|
2013-12-19 12:19:25 -08:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'CrossProcessMutex_posix.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'CrossProcessMutex_unimplemented.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 12:24:43 -07: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 10:53:02 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'SharedMemoryBasic_android.cpp',
|
|
|
|
]
|
2015-06-16 21:38:38 -07:00
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
EXPORTS.mozilla.ipc += ['SharedMemoryBasic_mach.h']
|
|
|
|
SOURCES += [
|
|
|
|
'SharedMemoryBasic_mach.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
else:
|
|
|
|
EXPORTS.mozilla.ipc += ['SharedMemoryBasic_chromium.h']
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
2013-11-22 10:53:02 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'ProcessUtils_linux.cpp',
|
|
|
|
]
|
2014-02-18 12:41:23 -08:00
|
|
|
elif CONFIG['OS_ARCH'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'):
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'ProcessUtils_bsd.cpp'
|
|
|
|
]
|
2015-02-26 10:21:52 -08:00
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
2014-08-26 10:03:09 -07:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'ProcessUtils_mac.mm'
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
else:
|
2013-11-22 10:53:02 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'ProcessUtils_none.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS.ipc += [
|
|
|
|
'IPCMessageUtils.h',
|
|
|
|
]
|
|
|
|
|
2013-11-22 10:53:02 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-11-26 23:59:41 -08:00
|
|
|
'BackgroundImpl.cpp',
|
2014-07-07 11:13:04 -07:00
|
|
|
'BackgroundUtils.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'BrowserProcessSubThread.cpp',
|
|
|
|
'FileDescriptor.cpp',
|
|
|
|
'FileDescriptorUtils.cpp',
|
|
|
|
'InputStreamUtils.cpp',
|
2013-09-27 18:42:08 -07:00
|
|
|
'MessageChannel.cpp',
|
|
|
|
'MessageLink.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'MessagePump.cpp',
|
|
|
|
'ProcessChild.cpp',
|
|
|
|
'ProtocolUtils.cpp',
|
|
|
|
'ScopedXREEmbed.cpp',
|
|
|
|
'SharedMemory.cpp',
|
|
|
|
'Shmem.cpp',
|
|
|
|
'StringUtil.cpp',
|
2013-11-22 10:53:02 -08: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 += [
|
2013-11-26 23:59:41 -08:00
|
|
|
'BackgroundChildImpl.cpp',
|
|
|
|
'BackgroundParentImpl.cpp',
|
2014-09-26 16:21:57 -07:00
|
|
|
'FileDescriptorSetChild.cpp',
|
|
|
|
'FileDescriptorSetParent.cpp',
|
2013-11-22 10:53:02 -08:00
|
|
|
'GeckoChildProcessHost.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'URIUtils.cpp',
|
|
|
|
]
|
|
|
|
|
2013-11-26 23:59:41 -08:00
|
|
|
LOCAL_INCLUDES += [
|
2015-04-06 15:44:04 -07:00
|
|
|
'/caps',
|
2015-01-15 08:58:40 -08:00
|
|
|
'/dom/broadcastchannel',
|
2014-10-15 21:56:52 -07:00
|
|
|
'/dom/indexedDB',
|
2015-06-04 11:51:57 -07:00
|
|
|
'/dom/workers',
|
2015-08-31 05:51:29 -07:00
|
|
|
'/media/webrtc/trunk',
|
2013-11-26 23:59:41 -08:00
|
|
|
'/xpcom/build',
|
|
|
|
]
|
|
|
|
|
2013-07-01 06:56:28 -07:00
|
|
|
IPDL_SOURCES = [
|
|
|
|
'InputStreamParams.ipdlh',
|
2013-11-26 23:59:41 -08:00
|
|
|
'PBackground.ipdl',
|
2014-07-07 11:13:04 -07:00
|
|
|
'PBackgroundSharedTypes.ipdlh',
|
2013-11-26 23:59:41 -08:00
|
|
|
'PBackgroundTest.ipdl',
|
2014-09-26 16:21:57 -07:00
|
|
|
'PFileDescriptorSet.ipdl',
|
2014-07-30 00:24:00 -07:00
|
|
|
'PProcLoader.ipdl',
|
2013-05-31 06:16:57 -07:00
|
|
|
'ProtocolTypes.ipdlh',
|
2013-07-01 06:56:28 -07:00
|
|
|
'URIParams.ipdlh',
|
|
|
|
]
|
2013-08-21 23:56:00 -07:00
|
|
|
|
2013-12-09 11:57:29 -08:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2014-07-30 00:24:00 -07:00
|
|
|
'/toolkit/xre',
|
2013-12-09 11:57:29 -08:00
|
|
|
'/xpcom/threads',
|
|
|
|
]
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 05:55:07 -08:00
|
|
|
|
2015-05-14 14:20:57 -07:00
|
|
|
for var in ('MOZ_CHILD_PROCESS_NAME', 'MOZ_CHILD_PROCESS_NAME_PIE',
|
|
|
|
'MOZ_CHILD_PROCESS_BUNDLE', 'DLL_PREFIX', 'DLL_SUFFIX'):
|
2013-11-27 05:55:07 -08:00
|
|
|
DEFINES[var] = '"%s"' % CONFIG[var]
|
2013-12-31 01:06:11 -08:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/toolkit/crashreporter',
|
|
|
|
]
|
|
|
|
|
2015-04-01 01:40:35 -07:00
|
|
|
if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
|
2013-12-31 01:06:11 -08:00
|
|
|
LOCAL_INCLUDES += [
|
2015-04-01 01:40:35 -07:00
|
|
|
'/security/sandbox/chromium',
|
|
|
|
'/security/sandbox/chromium-shim',
|
2013-12-31 01:06:11 -08:00
|
|
|
'/security/sandbox/win/src/sandboxbroker',
|
|
|
|
]
|