mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 523097 - Turn off MOZ_IPC for platforms where we currently don't build, and fix up ifdefs so that everything builds
--HG-- extra : rebase_source : 9da68ad54e7c378a4c9bbaac7b2166630827ec60
This commit is contained in:
parent
09a6250424
commit
e8114f1b53
13
configure.in
13
configure.in
@ -5246,7 +5246,10 @@ dnl ========================================================
|
||||
MOZ_IPC=1
|
||||
|
||||
case "${target}" in
|
||||
powerpc-apple-darwin*)
|
||||
*-apple-darwin*)
|
||||
MOZ_IPC=
|
||||
;;
|
||||
*wince)
|
||||
MOZ_IPC=
|
||||
;;
|
||||
esac
|
||||
@ -5256,10 +5259,6 @@ MOZ_ARG_DISABLE_BOOL(ipc,
|
||||
MOZ_IPC=,
|
||||
MOZ_IPC=1)
|
||||
|
||||
if test -n "$MOZ_IPC" -a -z "$MOZ_ENABLE_LIBXUL"; then
|
||||
AC_MSG_ERROR([--enable-ipc requires --enable-libxul])
|
||||
fi
|
||||
|
||||
if test -n "$MOZ_IPC"; then
|
||||
AC_DEFINE(MOZ_IPC)
|
||||
fi
|
||||
@ -7271,6 +7270,10 @@ if test -n "$MOZ_ENABLE_LIBXUL" -a -n "$BUILD_STATIC_LIBS"; then
|
||||
AC_MSG_ERROR([--enable-libxul is not compatible with --enable-static])
|
||||
fi
|
||||
|
||||
if test -n "$MOZ_IPC" -a -z "$MOZ_ENABLE_LIBXUL"; then
|
||||
AC_MSG_ERROR([--enable-ipc requires --enable-libxul])
|
||||
fi
|
||||
|
||||
AC_SUBST(LIBXUL_LIBS)
|
||||
|
||||
if test -n "$MOZ_ENABLE_LIBXUL"; then
|
||||
|
@ -117,8 +117,10 @@
|
||||
#include "nsICrashReporter.h"
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_IPC
|
||||
using mozilla::dom::ContentProcessParent;
|
||||
using mozilla::ipc::TestShellParent;
|
||||
#endif
|
||||
|
||||
class XPCShellDirProvider : public nsIDirectoryServiceProvider2
|
||||
{
|
||||
|
@ -63,7 +63,13 @@ SHARED_LIBRARY_LIBS = \
|
||||
../mime/src/$(LIB_PREFIX)nkmime_s.$(LIB_SUFFIX) \
|
||||
../cache/src/$(LIB_PREFIX)nkcache_s.$(LIB_SUFFIX) \
|
||||
../protocol/about/src/$(LIB_PREFIX)nkabout_s.$(LIB_SUFFIX) \
|
||||
../ipc/$(LIB_PREFIX)neckoipc_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_IPC
|
||||
SHARED_LIBRARY_LIBS += ../ipc/$(LIB_PREFIX)neckoipc_s.$(LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
SHARED_LIBRARY_LIBS += \
|
||||
$(foreach d,$(filter-out about,$(NECKO_PROTOCOLS)), \
|
||||
../protocol/$(d)/src/$(LIB_PREFIX)nk$(d)_s.$(LIB_SUFFIX)) \
|
||||
$(NULL)
|
||||
|
@ -46,12 +46,14 @@ MODULE = necko
|
||||
LIBRARY_NAME = nkhttp_s
|
||||
LIBXUL_LIBRARY = 1
|
||||
|
||||
ifdef MOZ_IPC
|
||||
EXPORTS_NAMESPACES = mozilla/net
|
||||
|
||||
EXPORTS_mozilla/net = \
|
||||
HttpChannelParent.h \
|
||||
HttpChannelChild.h \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
CPPSRCS = \
|
||||
nsHttp.cpp \
|
||||
@ -72,10 +74,15 @@ CPPSRCS = \
|
||||
nsHttpChannel.cpp \
|
||||
nsHttpPipeline.cpp \
|
||||
nsHttpActivityDistributor.cpp \
|
||||
HttpChannelParent.cpp \
|
||||
HttpChannelChild.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_IPC
|
||||
CPPSRCS += \
|
||||
HttpChannelParent.cpp \
|
||||
HttpChannelChild.cpp \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
LOCAL_INCLUDES=-I$(srcdir)/../../../base/src -I$(topsrcdir)/xpcom/ds
|
||||
|
||||
# we don't want the shared lib, but we want to force the creation of a
|
||||
|
@ -35,7 +35,9 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#ifdef MOZ_IPC
|
||||
#include "base/basictypes.h"
|
||||
#endif
|
||||
|
||||
#include "nsXULAppAPI.h"
|
||||
|
||||
@ -323,12 +325,6 @@ XRE_InitChildProcess(int aArgc,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
GeckoProcessType
|
||||
XRE_GetProcessType()
|
||||
{
|
||||
return sChildProcessType;
|
||||
}
|
||||
|
||||
MessageLoop*
|
||||
XRE_GetIOMessageLoop()
|
||||
{
|
||||
@ -521,4 +517,15 @@ XRE_SendTestShellCommand(JSContext* aCx,
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif // MOZ_IPC
|
||||
|
||||
GeckoProcessType
|
||||
XRE_GetProcessType()
|
||||
{
|
||||
#ifdef MOZ_IPC
|
||||
return sChildProcessType;
|
||||
#else
|
||||
return GeckoProcessType_Default;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user