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
|
|
|
|
include $(srcdir)/../objs.mk
|
|
|
|
|
|
|
|
EXTRA_DEPS += $(srcdir)/../objs.mk
|
|
|
|
|
2012-05-21 14:31:03 -07:00
|
|
|
# On win we build two glue libs - glue linked to crt dlls here and in staticruntime we build
|
|
|
|
# a statically linked glue lib.
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
DIRS += staticruntime
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
MODULE = xpcom
|
|
|
|
LIBRARY_NAME = xpcomglue
|
|
|
|
DIST_INSTALL = 1
|
|
|
|
|
|
|
|
LOCAL_INCLUDES = \
|
2012-05-21 14:31:03 -07:00
|
|
|
-I$(srcdir)/../../build \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
ifeq (Darwin,$(OS_ARCH))
|
2010-11-05 06:11:57 -07:00
|
|
|
ifeq (uikit,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
LINKSRC = nsGlueLinkingDlopen.cpp
|
|
|
|
else
|
2007-03-22 10:30:00 -07:00
|
|
|
LINKSRC = nsGlueLinkingOSX.cpp
|
|
|
|
endif
|
2010-11-05 06:11:57 -07:00
|
|
|
endif
|
|
|
|
|
2011-05-01 11:59:24 -07:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2007-03-22 10:30:00 -07:00
|
|
|
LINKSRC = nsGlueLinkingWin.cpp
|
|
|
|
endif
|
2010-04-19 01:39:58 -07:00
|
|
|
ifneq (,$(filter AIX DragonFly FreeBSD GNU GNU_% Linux NetBSD OpenBSD SunOS,$(OS_ARCH)))
|
2007-03-22 10:30:00 -07:00
|
|
|
LINKSRC = nsGlueLinkingDlopen.cpp
|
|
|
|
endif
|
|
|
|
ifeq (OS2,$(OS_ARCH))
|
|
|
|
LINKSRC = nsGlueLinkingOS2.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef LINKSRC
|
|
|
|
LINKSRC = nsGlueLinkingNull.cpp
|
|
|
|
$(warning TinderboxPrint:<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=298044">Error: XPCOM Glue</a>)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CPPSRCS = \
|
2012-05-21 14:31:03 -07:00
|
|
|
$(XPCOM_GLUE_SRC_LCPPSRCS) \
|
|
|
|
nsStringAPI.cpp \
|
|
|
|
nsXPCOMGlue.cpp \
|
|
|
|
$(LINKSRC) \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
SDK_HEADERS = \
|
2012-05-21 14:31:03 -07:00
|
|
|
nsXPCOMGlue.h \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
SDK_LIBRARY = \
|
2012-05-21 14:31:03 -07:00
|
|
|
$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
2010-04-20 13:12:02 -07:00
|
|
|
# Don't use STL wrappers here (i.e. wrapped <new>); they require mozalloc
|
|
|
|
STL_FLAGS =
|
|
|
|
|
2012-07-27 11:15:01 -07:00
|
|
|
GARBAGE += $(XPCOM_GLUE_SRC_LCPPSRCS)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
SRCS_IN_OBJDIR = 1
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
ifdef _MSC_VER
|
2012-05-21 14:31:03 -07:00
|
|
|
# Don't include directives in obj files about which CRT to use
|
2007-03-22 10:30:00 -07:00
|
|
|
OS_COMPILE_CXXFLAGS += -Zl
|
|
|
|
OS_COMPILE_CFLAGS += -Zl
|
|
|
|
DEFINES += -D_USE_ANSI_CPP
|
|
|
|
endif
|
|
|
|
|
2011-08-09 00:06:37 -07:00
|
|
|
export:: $(XPCOM_GLUE_SRC_CPPSRCS) $(topsrcdir)/xpcom/glue/nsStringAPI.cpp
|
2007-03-22 10:30:00 -07:00
|
|
|
$(INSTALL) $^ .
|
|
|
|
|
2008-02-13 03:33:38 -08:00
|
|
|
GARBAGE += nsStringAPI.cpp
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
DEFINES += -DXPCOM_GLUE
|
2008-03-21 21:25:34 -07:00
|
|
|
|
|
|
|
ifdef TARGET_XPCOM_ABI
|
|
|
|
DEFINES += -DTARGET_XPCOM_ABI=\"$(TARGET_XPCOM_ABI)\"
|
|
|
|
endif
|
|
|
|
|