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
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2009-06-29 11:38:29 -07:00
|
|
|
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
|
|
|
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
|
|
|
|
2009-11-18 15:18:08 -08:00
|
|
|
CPPSRCS += \
|
|
|
|
AsyncChannel.cpp \
|
2010-02-03 14:17:09 -08:00
|
|
|
BrowserProcessSubThread.cpp \
|
2012-08-15 21:02:32 -07:00
|
|
|
FileDescriptor.cpp \
|
2013-02-15 14:27:21 -08:00
|
|
|
FileDescriptorUtils.cpp \
|
2009-11-18 15:18:08 -08:00
|
|
|
GeckoChildProcessHost.cpp \
|
2012-08-15 21:02:32 -07:00
|
|
|
InputStreamUtils.cpp \
|
2009-11-18 15:18:08 -08:00
|
|
|
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 \
|
2012-08-23 12:33:46 -07:00
|
|
|
URIUtils.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 #}
|
|
|
|
|
2012-09-10 21:30:33 -07:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
CPPSRCS += ProcessUtils_linux.cpp
|
|
|
|
else
|
|
|
|
CPPSRCS += ProcessUtils_none.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
|