Bug 517655 - Support for libProxy - Part 1. Build Changes. r=khuey

--HG--
extra : rebase_source : 47b4c922a01099fa569ee122ef0b2f545627f175
This commit is contained in:
Wolfgang Rosenauer 2010-08-03 10:44:49 -07:00
Родитель 5605374989
Коммит 9352078bb7
5 изменённых файлов: 51 добавлений и 1 удалений

Просмотреть файл

@ -548,6 +548,10 @@ MOZ_PANGO_LIBS = @MOZ_PANGO_LIBS@
MOZ_XIE_LIBS = @MOZ_XIE_LIBS@
XT_LIBS = @XT_LIBS@
MOZ_LIBPROXY_CFLAGS = @MOZ_LIBPROXY_CFLAGS@
MOZ_LIBPROXY_LIBS = @MOZ_LIBPROXY_LIBS@
MOZ_ENABLE_LIBPROXY = @MOZ_ENABLE_LIBPROXY@
MOZ_LIBNOTIFY_CFLAGS = @MOZ_LIBNOTIFY_CFLAGS@
MOZ_LIBNOTIFY_LIBS = @MOZ_LIBNOTIFY_LIBS@
MOZ_ENABLE_LIBNOTIFY = @MOZ_ENABLE_LIBNOTIFY@

Просмотреть файл

@ -1033,3 +1033,7 @@ conic/conicstatisticsevent.h
#if MOZ_NATIVE_LIBEVENT==1
event.h
#endif
#ifdef MOZ_ENABLE_LIBPROXY
proxy.h
#endif

Просмотреть файл

@ -5541,6 +5541,29 @@ then
AC_SUBST(MOZ_GCONF_LIBS)
fi
dnl ========================================================
dnl = libproxy support
dnl ========================================================
if test "$MOZ_ENABLE_GTK2"
then
MOZ_ENABLE_LIBPROXY=
MOZ_ARG_ENABLE_BOOL(libproxy,
[ --enable-libproxy Enable libproxy support ],
MOZ_ENABLE_LIBPROXY=1,
MOZ_ENABLE_LIBPROXY=)
if test "$MOZ_ENABLE_LIBPROXY"
then
PKG_CHECK_MODULES(MOZ_LIBPROXY, libproxy-1.0)
AC_DEFINE(MOZ_ENABLE_LIBPROXY)
fi
fi
AC_SUBST(MOZ_ENABLE_LIBPROXY)
AC_SUBST(MOZ_LIBPROXY_CFLAGS)
AC_SUBST(MOZ_LIBPROXY_LIBS)
dnl ========================================================
dnl = libnotify support
dnl ========================================================

Просмотреть файл

@ -228,6 +228,10 @@ ifdef MOZ_ENABLE_STARTUP_NOTIFICATION
EXTRA_DSO_LDOPTS += $(MOZ_STARTUP_NOTIFICATION_LIBS)
endif
ifdef MOZ_ENABLE_LIBPROXY
EXTRA_DSO_LDOPTS += $(MOZ_LIBPROXY_LIBS)
endif
ifeq ($(OS_ARCH),BeOS)
EXTRA_DSO_LDOPTS += -lbe -ltracker
endif

Просмотреть файл

@ -20,6 +20,7 @@
#
# Contributor(s):
# Brian Ryner <bryner@brianryner.com>
# Wolfgang Rosenauer <wr@rosenauer.org>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
@ -51,11 +52,25 @@ MODULE_NAME = nsUnixProxyModule
GRE_MODULE = 1
LIBXUL_LIBRARY = 1
EXTRA_DSO_LDOPTS += \
$(MOZ_LIBPROXY_LIBS) \
$(MOZ_COMPONENT_LIBS) \
$(NULL)
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
ifdef MOZ_ENABLE_LIBPROXY
CPPSRCS = \
nsLibProxySettings.cpp \
$(NULL)
CXXFLAGS += $(MOZ_LIBPROXY_CFLAGS)
else # MOZ_ENABLE_LIBPROXY
CPPSRCS = \
nsUnixSystemProxySettings.cpp \
$(NULL)
endif # MOZ_ENABLE_LIBPROXY
include $(topsrcdir)/config/rules.mk