2007-03-22 10:30:00 -07:00
|
|
|
# vim:set ts=8 sw=8 sts=8 noet:
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
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.
|
2011-05-01 11:59:24 -07:00
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
2007-03-22 10:30:00 -07:00
|
|
|
SDK_LIBRARY = $(IMPORT_LIBRARY)
|
|
|
|
else
|
|
|
|
SDK_LIBRARY = $(SHARED_LIBRARY)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
FORCE_SHARED_LIB = 1
|
|
|
|
|
2007-10-13 14:13:50 -07:00
|
|
|
EXTRA_DSO_LDOPTS = $(LIBS_DIR)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-05-13 03:11:58 -07:00
|
|
|
ifeq (bundle,$(MOZ_FS_LAYOUT))
|
2007-03-22 10:30:00 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(DIST)/bin/XUL
|
|
|
|
else
|
|
|
|
EXTRA_DSO_LIBS = xul
|
|
|
|
endif
|
|
|
|
|
2010-03-03 21:02:57 -08:00
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(EXTRA_DSO_LIBS) \
|
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(MOZALLOC_LIB) \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
libs:: $(FINAL_TARGET)/dependentlibs.list
|
|
|
|
|
2012-06-20 00:00:48 -07:00
|
|
|
$(FINAL_TARGET)/dependentlibs.list: dependentlibs.py $(SHARED_LIBRARY) $(wildcard $(if $(wildcard $(FINAL_TARGET)/dependentlibs.list),$(addprefix $(FINAL_TARGET)/,$(shell cat $(FINAL_TARGET)/dependentlibs.list))))
|
2012-06-22 09:33:17 -07:00
|
|
|
$(PYTHON) $< $(SHARED_LIBRARY) -L $(FINAL_TARGET) $(if $(TOOLCHAIN_PREFIX),$(addprefix -p ,$(TOOLCHAIN_PREFIX))) > $@
|