ipc/glue/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Tue, 19 Nov 2013 11:48:10 +0900
changeset 171755 71cbd5b14aecd782163fbeb0c63b4b73a38ba7a1
parent 171748 05e66d941de21f4edbb22801c740878474d23b72
child 171757 e4b59fdbc9c2dfc8d28cdcdc2888bf4a21376826
permissions -rw-r--r--
Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

EXPORTS += [
    'nsIIPCSerializableInputStream.h',
    'nsIIPCSerializableURI.h',
]

EXPORTS.mozilla.ipc += [
    'BrowserProcessSubThread.h',
    'CrossProcessMutex.h',
    'FileDescriptor.h',
    'FileDescriptorUtils.h',
    'GeckoChildProcessHost.h',
    'InputStreamUtils.h',
    'IOThreadChild.h',
    'MessageChannel.h',
    'MessageLink.h',
    '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',
    ]
    SOURCES += [
        'CrossProcessMutex_windows.cpp',
        'SharedMemory_windows.cpp',
        'Transport_win.cpp',
        'WindowsMessageLoop.cpp',
    ]
else:
    EXPORTS.mozilla.ipc += [
        'Transport_posix.h',
    ]
    SOURCES += [
        'CrossProcessMutex_unimplemented.cpp',
        'SharedMemory_posix.cpp',
        'Transport_posix.cpp',
    ]

# 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']
    SOURCES += [
        'SharedMemoryBasic_android.cpp',
    ]
else:
    EXPORTS.mozilla.ipc += ['SharedMemoryBasic_chromium.h']

if CONFIG['OS_ARCH'] == 'Linux':
    SOURCES += [
        'ProcessUtils_linux.cpp',
    ]
else:
    SOURCES += [
        'ProcessUtils_none.cpp',
    ]

EXPORTS.ipc += [
    'IPCMessageUtils.h',
]

SOURCES += [
    'BrowserProcessSubThread.cpp',
    'FileDescriptor.cpp',
    'FileDescriptorUtils.cpp',
    'GeckoChildProcessHost.cpp',
    'InputStreamUtils.cpp',
    'MessageChannel.cpp',
    'MessageLink.cpp',
    'MessagePump.cpp',
    'ProcessChild.cpp',
    'ProtocolUtils.cpp',
    'ScopedXREEmbed.cpp',
    'SharedMemory.cpp',
    'Shmem.cpp',
    'StringUtil.cpp',
    'URIUtils.cpp',
]

IPDL_SOURCES = [
    'InputStreamParams.ipdlh',
    'ProtocolTypes.ipdlh',
    'URIParams.ipdlh',
]

LIBRARY_NAME = 'mozipc_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'