mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 799441 - Build GIO module in libxul. r=ted
This commit is contained in:
parent
b17887d50d
commit
4dbb2e1066
@ -6086,6 +6086,12 @@ if test -n "$LIBXUL_SDK_DIR" -a `echo "$MOZ_EXTENSIONS" | grep -c gio` -ne 0; th
|
||||
MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gio||'`
|
||||
fi
|
||||
|
||||
if test `echo "$MOZ_EXTENSIONS" | grep -c gio` -ne 0; then
|
||||
MOZ_GIO_COMPONENT=1
|
||||
MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gio||'`
|
||||
fi
|
||||
AC_SUBST(MOZ_GIO_COMPONENT)
|
||||
|
||||
if test -z "$MOZ_JSDEBUGGER" -a `echo "$MOZ_EXTENSIONS" | grep -c venkman` -ne 0; then
|
||||
AC_MSG_WARN([Cannot build venkman without JavaScript debug library. Removing venkman from MOZ_EXTENSIONS.])
|
||||
MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|venkman||'`
|
||||
|
@ -14,6 +14,9 @@ MODULE = nkgio
|
||||
LIBRARY_NAME = nkgio
|
||||
SHORT_LIBNAME = nkgio
|
||||
IS_COMPONENT = 1
|
||||
EXPORT_LIBRARY = 1
|
||||
MODULE_NAME = nsGIOModule
|
||||
LIBXUL_LIBRARY = 1
|
||||
|
||||
CPPSRCS = \
|
||||
nsGIOProtocolHandler.cpp \
|
||||
@ -21,15 +24,4 @@ CPPSRCS = \
|
||||
|
||||
LOCAL_INCLUDES = $(MOZ_GIO_CFLAGS)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(XPCOM_GLUE_LDOPTS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(MOZ_GIO_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
# make sure this component is never statically linked into the main
|
||||
# application. this is necessary since we don't want to force users
|
||||
# to install gio in order to use the rest of mozilla ;-)
|
||||
FORCE_SHARED_LIB= 1
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -333,6 +333,11 @@ COMPONENT_LIBS += gkdebug
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_GIO_COMPONENT
|
||||
DEFINES += -DMOZ_GIO_COMPONENT
|
||||
COMPONENT_LIBS += nkgio
|
||||
endif
|
||||
|
||||
ifdef MOZ_APP_COMPONENT_LIBS
|
||||
COMPONENT_LIBS += $(MOZ_APP_COMPONENT_LIBS)
|
||||
endif
|
||||
|
@ -170,6 +170,12 @@
|
||||
#define PEERCONNECTION_MODULE
|
||||
#endif
|
||||
|
||||
#if defined(MOZ_GIO_COMPONENT)
|
||||
#define GIO_MODULE MODULE(nsGIOModule)
|
||||
#else
|
||||
#define GIO_MODULE
|
||||
#endif
|
||||
|
||||
#define XUL_MODULES \
|
||||
MODULE(nsUConvModule) \
|
||||
MODULE(nsI18nModule) \
|
||||
@ -228,6 +234,7 @@
|
||||
MODULE(jsinspector) \
|
||||
MODULE(jsdebugger) \
|
||||
PEERCONNECTION_MODULE \
|
||||
GIO_MODULE \
|
||||
/* end of list */
|
||||
|
||||
#define MODULE(_name) \
|
||||
|
@ -252,6 +252,10 @@ tier_platform_dirs += js/ductwork/debugger
|
||||
|
||||
tier_platform_dirs += other-licenses/snappy
|
||||
|
||||
ifdef MOZ_GIO_COMPONENT
|
||||
tier_platform_dirs += extensions/gio
|
||||
endif
|
||||
|
||||
ifdef APP_LIBXUL_STATICDIRS
|
||||
# Applications can cheat and ask for code to be
|
||||
# built before libxul so libxul can be linked against it.
|
||||
|
Loading…
Reference in New Issue
Block a user