2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2009-06-29 11:38:29 -07:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-01-12 13:14:38 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/crashreporter
|
|
|
|
|
2009-06-29 11:38:29 -07:00
|
|
|
MODULE = ipc
|
|
|
|
LIBRARY_NAME = mozipc_s
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
2009-06-30 09:02:37 -07:00
|
|
|
EXPORT_LIBRARY = 1
|
2009-06-29 11:38:29 -07:00
|
|
|
|
|
|
|
EXPORTS_NAMESPACES = IPC mozilla/ipc
|
|
|
|
|
2009-11-18 15:18:08 -08:00
|
|
|
EXPORTS_IPC = IPCMessageUtils.h
|
2009-06-29 11:38:29 -07:00
|
|
|
|
2009-11-18 15:18:08 -08:00
|
|
|
EXPORTS_mozilla/ipc = \
|
|
|
|
AsyncChannel.h \
|
2010-02-03 14:17:09 -08:00
|
|
|
BrowserProcessSubThread.h \
|
2012-02-15 19:11:43 -08:00
|
|
|
CrossProcessMutex.h \
|
2009-11-18 15:18:08 -08:00
|
|
|
GeckoChildProcessHost.h \
|
2010-05-10 21:18:00 -07:00
|
|
|
IOThreadChild.h \
|
|
|
|
ProcessChild.h \
|
2009-11-18 15:18:08 -08:00
|
|
|
ProtocolUtils.h \
|
|
|
|
RPCChannel.h \
|
2009-12-04 10:45:15 -08:00
|
|
|
SharedMemory.h \
|
2010-04-15 22:29:16 -07:00
|
|
|
SharedMemoryBasic.h \
|
2010-09-10 14:45:59 -07:00
|
|
|
SharedMemoryBasic_chromium.h \
|
2010-04-15 22:29:16 -07:00
|
|
|
SharedMemorySysV.h \
|
2009-12-04 10:45:15 -08:00
|
|
|
Shmem.h \
|
2009-11-18 15:18:08 -08:00
|
|
|
SyncChannel.h \
|
|
|
|
ScopedXREEmbed.h \
|
2011-06-03 11:33:56 -07:00
|
|
|
Transport.h \
|
2009-06-29 11:38:29 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-06-03 11:33:56 -07:00
|
|
|
ifeq ($(OS_ARCH),WINNT) #{
|
|
|
|
EXPORTS_mozilla/ipc += \
|
|
|
|
Transport_win.h \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
# POSIX
|
|
|
|
EXPORTS_mozilla/ipc += \
|
|
|
|
Transport_posix.h \
|
|
|
|
$(NULL)
|
|
|
|
endif #}
|
|
|
|
|
2010-09-10 14:45:59 -07:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
|
|
|
# Android has its own,
|
|
|
|
# almost-but-not-quite-compatible-with-POSIX-or-/dev/shm shared memory
|
|
|
|
# impl.
|
|
|
|
EXPORTS_mozilla/ipc += SharedMemoryBasic_android.h
|
|
|
|
else
|
|
|
|
EXPORTS_mozilla/ipc += SharedMemoryBasic_chromium.h
|
|
|
|
endif #}
|
|
|
|
|
2009-11-18 15:18:08 -08:00
|
|
|
CPPSRCS += \
|
|
|
|
AsyncChannel.cpp \
|
2010-02-03 14:17:09 -08:00
|
|
|
BrowserProcessSubThread.cpp \
|
2009-11-18 15:18:08 -08:00
|
|
|
GeckoChildProcessHost.cpp \
|
|
|
|
MessagePump.cpp \
|
2010-05-10 21:18:00 -07:00
|
|
|
ProcessChild.cpp \
|
2011-06-03 11:33:56 -07:00
|
|
|
ProtocolUtils.cpp \
|
2009-11-18 15:18:08 -08:00
|
|
|
RPCChannel.cpp \
|
|
|
|
ScopedXREEmbed.cpp \
|
2010-11-05 00:17:07 -07:00
|
|
|
SharedMemory.cpp \
|
2009-12-04 10:45:15 -08:00
|
|
|
Shmem.cpp \
|
2009-11-18 15:18:08 -08:00
|
|
|
StringUtil.cpp \
|
|
|
|
SyncChannel.cpp \
|
2009-06-29 11:38:29 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-06-03 11:33:56 -07:00
|
|
|
ifeq ($(OS_ARCH),WINNT) #{
|
2009-12-04 10:45:15 -08:00
|
|
|
CPPSRCS += \
|
|
|
|
SharedMemory_windows.cpp \
|
2011-06-03 11:33:56 -07:00
|
|
|
Transport_win.cpp \
|
2009-12-04 10:45:15 -08:00
|
|
|
WindowsMessageLoop.cpp \
|
2012-02-15 19:11:43 -08:00
|
|
|
CrossProcessMutex_windows.cpp \
|
2009-12-04 10:45:15 -08:00
|
|
|
$(NULL)
|
|
|
|
else
|
2011-06-03 11:33:56 -07:00
|
|
|
# POSIX
|
|
|
|
CPPSRCS += \
|
|
|
|
SharedMemory_posix.cpp \
|
|
|
|
Transport_posix.cpp \
|
2012-02-15 19:11:43 -08:00
|
|
|
CrossProcessMutex_unimplemented.cpp \
|
2011-06-03 11:33:56 -07:00
|
|
|
$(NULL)
|
|
|
|
endif #}
|
2009-11-18 15:18:08 -08:00
|
|
|
|
2010-09-10 14:45:59 -07:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
|
|
|
CPPSRCS += SharedMemoryBasic_android.cpp
|
|
|
|
endif #}
|
|
|
|
|
2009-07-10 12:03:09 -07:00
|
|
|
include $(topsrcdir)/ipc/app/defs.mk
|
2010-07-19 15:35:45 -07:00
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_NAME=\"$(MOZ_CHILD_PROCESS_NAME)\"
|
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_BUNDLE=\"$(MOZ_CHILD_PROCESS_BUNDLE)\"
|
2009-06-29 11:38:29 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2010-04-09 15:40:14 -07:00
|
|
|
|
2009-06-29 11:38:29 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2010-04-09 15:40:14 -07:00
|
|
|
|
|
|
|
# Since we get the value of MOZ_CHILD_PROCESS_NAME from another file make sure
|
|
|
|
# to rebuild if that file changes.
|
|
|
|
$(CPPSRCS:%.cpp=%.$(OBJ_SUFFIX)): $(topsrcdir)/ipc/app/defs.mk
|