2012-05-21 15:12:37 +04: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 22:38:29 +04:00
|
|
|
|
2012-08-04 22:26:44 +04:00
|
|
|
DEPTH = @DEPTH@
|
2009-06-29 22:38:29 +04:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-01-13 00:14:38 +03:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/crashreporter
|
|
|
|
|
2009-06-29 22:38:29 +04:00
|
|
|
LIBRARY_NAME = mozipc_s
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
2009-06-30 20:02:37 +04:00
|
|
|
EXPORT_LIBRARY = 1
|
2009-06-29 22:38:29 +04:00
|
|
|
|
2009-11-19 02:18:08 +03:00
|
|
|
CPPSRCS += \
|
|
|
|
AsyncChannel.cpp \
|
2010-02-04 01:17:09 +03:00
|
|
|
BrowserProcessSubThread.cpp \
|
2012-08-16 08:02:32 +04:00
|
|
|
FileDescriptor.cpp \
|
2013-02-16 02:27:21 +04:00
|
|
|
FileDescriptorUtils.cpp \
|
2009-11-19 02:18:08 +03:00
|
|
|
GeckoChildProcessHost.cpp \
|
2012-08-16 08:02:32 +04:00
|
|
|
InputStreamUtils.cpp \
|
2009-11-19 02:18:08 +03:00
|
|
|
MessagePump.cpp \
|
2010-05-11 08:18:00 +04:00
|
|
|
ProcessChild.cpp \
|
2011-06-03 22:33:56 +04:00
|
|
|
ProtocolUtils.cpp \
|
2009-11-19 02:18:08 +03:00
|
|
|
RPCChannel.cpp \
|
|
|
|
ScopedXREEmbed.cpp \
|
2010-11-05 10:17:07 +03:00
|
|
|
SharedMemory.cpp \
|
2009-12-04 21:45:15 +03:00
|
|
|
Shmem.cpp \
|
2009-11-19 02:18:08 +03:00
|
|
|
StringUtil.cpp \
|
|
|
|
SyncChannel.cpp \
|
2012-08-23 23:33:46 +04:00
|
|
|
URIUtils.cpp \
|
2009-06-29 22:38:29 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2011-06-03 22:33:56 +04:00
|
|
|
ifeq ($(OS_ARCH),WINNT) #{
|
2009-12-04 21:45:15 +03:00
|
|
|
CPPSRCS += \
|
|
|
|
SharedMemory_windows.cpp \
|
2011-06-03 22:33:56 +04:00
|
|
|
Transport_win.cpp \
|
2009-12-04 21:45:15 +03:00
|
|
|
WindowsMessageLoop.cpp \
|
2012-02-16 07:11:43 +04:00
|
|
|
CrossProcessMutex_windows.cpp \
|
2009-12-04 21:45:15 +03:00
|
|
|
$(NULL)
|
|
|
|
else
|
2011-06-03 22:33:56 +04:00
|
|
|
# POSIX
|
|
|
|
CPPSRCS += \
|
|
|
|
SharedMemory_posix.cpp \
|
|
|
|
Transport_posix.cpp \
|
2012-02-16 07:11:43 +04:00
|
|
|
CrossProcessMutex_unimplemented.cpp \
|
2011-06-03 22:33:56 +04:00
|
|
|
$(NULL)
|
|
|
|
endif #}
|
2009-11-19 02:18:08 +03:00
|
|
|
|
2010-09-11 01:45:59 +04:00
|
|
|
ifeq ($(OS_TARGET),Android)
|
|
|
|
CPPSRCS += SharedMemoryBasic_android.cpp
|
|
|
|
endif #}
|
|
|
|
|
2012-09-11 08:30:33 +04:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
CPPSRCS += ProcessUtils_linux.cpp
|
|
|
|
else
|
|
|
|
CPPSRCS += ProcessUtils_none.cpp
|
|
|
|
endif
|
|
|
|
|
2009-07-10 23:03:09 +04:00
|
|
|
include $(topsrcdir)/ipc/app/defs.mk
|
2010-07-20 02:35:45 +04:00
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_NAME=\"$(MOZ_CHILD_PROCESS_NAME)\"
|
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_BUNDLE=\"$(MOZ_CHILD_PROCESS_BUNDLE)\"
|
2009-06-29 22:38:29 +04:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2010-04-10 02:40:14 +04:00
|
|
|
|
2009-06-29 22:38:29 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2010-04-10 02:40:14 +04: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
|