xpcom/stub/Makefile.in
author Neil Rashbrook <neil@parkwaycc.co.uk>
Sat, 02 Mar 2013 14:23:20 +0000
changeset 125155 1cd1a9fdf8fba4c777b4cb044cad1641c0186010
parent 101904 162130598df094e19b044610902abecd403278d3
child 127124 97e443115162450609702fc72c99b6d88d8703d6
permissions -rw-r--r--
Bug 738952 Make it possible for a stream converter to propagate the actual MIME type to the document r=bz

# vim:set ts=8 sw=8 sts=8 noet:
# 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@

include $(DEPTH)/config/autoconf.mk

MODULE		= xpcom
LIBRARY_NAME	= xpcom

# The XPCOM glue uses realpath() on libxpcom.so to resolve any symlinks. We
# want it to find dist/bin and not xpcom/stub so we copy instead of symlinking.
NSDISTMODE = copy

# Do not set EXPORT_LIBRARY as we do not want xpcom in the static libs list
#EXPORT_LIBRARY = 1
GRE_MODULE	= 1
MOZILLA_INTERNAL_API = 1


LOCAL_INCLUDES	= -I$(srcdir)/../build

CPPSRCS		= nsXPComStub.cpp

# If we have an import library, then copy that to the SDK.  Otherwise,
# copy the shared library.
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
SDK_LIBRARY = $(IMPORT_LIBRARY)
else
SDK_LIBRARY = $(SHARED_LIBRARY)
endif


FORCE_SHARED_LIB = 1

EXTRA_DSO_LDOPTS = $(LIBS_DIR)

ifeq (bundle,$(MOZ_FS_LAYOUT))
EXTRA_DSO_LDOPTS += $(DIST)/bin/XUL
else
EXTRA_DSO_LIBS = xul
endif

EXTRA_DSO_LDOPTS +=				\
	$(EXTRA_DSO_LIBS)			\
	$(NSPR_LIBS)				\
	$(MOZALLOC_LIB)				\
	$(NULL)

include $(topsrcdir)/config/rules.mk

libs:: $(FINAL_TARGET)/dependentlibs.list

$(FINAL_TARGET)/dependentlibs.list: dependentlibs.py $(SHARED_LIBRARY) $(wildcard $(if $(wildcard $(FINAL_TARGET)/dependentlibs.list),$(addprefix $(FINAL_TARGET)/,$(shell cat $(FINAL_TARGET)/dependentlibs.list))))
	$(PYTHON) $< $(SHARED_LIBRARY) -L $(FINAL_TARGET) $(if $(TOOLCHAIN_PREFIX),$(addprefix -p ,$(TOOLCHAIN_PREFIX))) > $@