purplexpcom/src/Makefile.in
author aleth <aleth@instantbird.org>
Sat, 12 Jul 2014 21:42:12 +0200
changeset 739 956f01125ef6e067196fe4a9d40fc58170055a45
parent 727 336d872cd3a43940173534497271df339e1fde52
child 740 e69eedb84ede0de75f4a1e394ea14aa37abc87d8
permissions -rw-r--r--
Bug 1036367 - Fix dangerous public destructors in purple/, followup to fix array class. r=florian

# 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/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@
# relativesrcdir is needed for xpcshell_tests.
relativesrcdir = @relativesrcdir@

include $(DEPTH)/config/autoconf.mk

ifeq (,$(filter WINNT Darwin,$(OS_ARCH)))
LOCAL_INCLUDES	= $(GLIB_CFLAGS)
EXTRA_LIBS	= $(GLIB_LIBS) $(GLIB_GMODULE_LIBS) -lz $(LIBXML2_LIBS)
else
LOCAL_INCLUDES  += -I$(DIST)/include/glib
ifneq ($(OS_ARCH),WINNT)
EXTRA_LIBS	= -lz -liconv

# For SIPE.
ifdef GSSAPI
EXTRA_LIBS	+= $(KRB5_LIBS)
endif
else
DEFINES += -DGLIB_STATIC_COMPILATION
EXTRA_LIBS	= ws2_32.lib

ifdef PURPLE_BONJOUR
EXTRA_LIBS	+= netapi32.lib
endif

DSO_LDOPTS	+= -DEF:../../libpurple/purple.def
endif
endif

EXTRA_LIBS	+= $(NSS_LIBS) $(NSPR_LIBS)

ifeq (,$(filter WINNT FreeBSD,$(OS_ARCH)))
EXTRA_LIBS	+= -lresolv
endif

ifdef PURPLE_PLUGINS
DEFINES 	+= -DPURPLE_PLUGINS
endif

include $(topsrcdir)/config/rules.mk

ifeq ($(OS_ARCH),Darwin)
EXTRA_DSO_LDOPTS = -dynamiclib -install_name @executable_path/components/$(SHARED_LIBRARY)
else ifeq ($(OS_ARCH),WINNT)
DELETE_AFTER_LINK =
else
# Export more than just the NSModule symbol
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS =
endif
EXTRA_DSO_LDOPTS += $(XPCOM_GLUE_LDOPTS) $(MOZ_COMPONENT_NSPR_LIBS)

ifeq ($(OS_ARCH),WINNT)
CXXFLAGS	+= -wd4624 -wd4068

module.ver: module.ver.in $(GLOBAL_DEPS)
	sed 's/@''PURPLE_MAJOR_VERSION@/$(PURPLE_MAJOR_VERSION)/;s/@''PURPLE_MINOR_VERSION@/$(PURPLE_MINOR_VERSION)/;s/@''PURPLE_MICRO_VERSION@/$(PURPLE_MICRO_VERSION)/' $< > $@

_RC_STRING += -SRCDIR .
module.rc: module.ver

GARBAGE += module.ver
endif

libs:: $(SHARED_LIBRARY)
ifeq ($(OS_ARCH),WINNT)
	-mv fake.lib $(LIBRARY_NAME).$(LIB_SUFFIX)
endif