2004-10-29 19:43:51 +00:00
|
|
|
# vim:set ts=8 sw=8 sts=8 noet:
|
2004-07-16 19:09:02 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2001-09-14 23:50:59 +00:00
|
|
|
#
|
2004-07-16 19:09:02 +00:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
2001-09-14 23:50:59 +00:00
|
|
|
#
|
2004-07-16 19:09:02 +00:00
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
2001-09-14 23:50:59 +00:00
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-07-16 19:09:02 +00:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
2001-09-14 23:50:59 +00:00
|
|
|
#
|
2004-07-16 19:09:02 +00:00
|
|
|
# Contributor(s):
|
2001-09-14 23:50:59 +00:00
|
|
|
#
|
2004-07-16 19:09:02 +00:00
|
|
|
# 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
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
2001-09-14 23:50:59 +00:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2002-03-21 23:43:21 +00:00
|
|
|
include $(srcdir)/objs.mk
|
|
|
|
|
2005-11-02 20:38:21 +00:00
|
|
|
EXTRA_DEPS += $(srcdir)/objs.mk
|
|
|
|
|
2002-03-21 23:43:21 +00:00
|
|
|
DIRS = standalone
|
2001-09-14 23:50:59 +00:00
|
|
|
|
|
|
|
MODULE = xpcom
|
2002-03-21 23:43:21 +00:00
|
|
|
LIBRARY_NAME = xpcomglue_s
|
2006-02-10 18:23:52 +00:00
|
|
|
DIST_INSTALL = 1
|
2001-09-14 23:50:59 +00:00
|
|
|
|
2004-11-12 19:26:37 +00:00
|
|
|
REQUIRES = \
|
|
|
|
string \
|
|
|
|
$(NULL)
|
2001-12-07 19:54:16 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I$(srcdir)/../build \
|
2001-09-14 23:50:59 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2005-08-15 18:29:55 +00:00
|
|
|
CSRCS = \
|
2005-08-11 22:07:08 +00:00
|
|
|
$(XPCOM_GLUE_SRC_LCSRCS) \
|
2005-08-15 18:29:55 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
$(XPCOM_GLUE_SRC_LCPPSRCS) \
|
|
|
|
$(XPCOM_GLUENS_SRC_LCPPSRCS) \
|
2007-07-11 17:26:11 +00:00
|
|
|
nsStringAPI.cpp \
|
2005-08-15 18:29:55 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2006-05-03 16:11:14 +00:00
|
|
|
SDK_HEADERS = \
|
2005-08-15 18:29:55 +00:00
|
|
|
pldhash.h \
|
2006-08-08 18:18:50 +00:00
|
|
|
nsArrayEnumerator.h \
|
2006-04-12 15:43:32 +00:00
|
|
|
nsArrayUtils.h \
|
2007-01-12 20:55:53 +00:00
|
|
|
nsAutoLock.h \
|
2005-08-15 18:29:55 +00:00
|
|
|
nsBaseHashtable.h \
|
2007-04-26 13:53:48 +00:00
|
|
|
nsCategoryCache.h \
|
2005-11-02 20:38:21 +00:00
|
|
|
nsCOMArray.h \
|
|
|
|
nsCRTGlue.h \
|
2005-08-15 18:29:55 +00:00
|
|
|
nsClassHashtable.h \
|
|
|
|
nsDataHashtable.h \
|
2006-08-08 18:18:50 +00:00
|
|
|
nsEnumeratorUtils.h \
|
2005-08-15 18:29:55 +00:00
|
|
|
nsHashKeys.h \
|
|
|
|
nsINIParser.h \
|
|
|
|
nsInterfaceHashtable.h \
|
2005-11-02 20:38:21 +00:00
|
|
|
nsQuickSort.h \
|
|
|
|
nsStringGlue.h \
|
2005-08-15 18:29:55 +00:00
|
|
|
nsRefPtrHashtable.h \
|
2006-05-03 16:11:14 +00:00
|
|
|
nsStringAPI.h \
|
2007-09-20 23:14:25 +00:00
|
|
|
nsTextFormatter.h \
|
2005-08-15 18:29:55 +00:00
|
|
|
nsTHashtable.h \
|
2005-11-02 20:38:21 +00:00
|
|
|
nsVoidArray.h \
|
2005-11-23 19:44:16 +00:00
|
|
|
nsTArray.h \
|
2006-10-17 21:40:07 +00:00
|
|
|
nsTPtrArray.h \
|
2006-05-10 17:30:15 +00:00
|
|
|
nsTWeakRef.h \
|
2005-08-09 13:39:12 +00:00
|
|
|
nsID.h \
|
2002-03-21 09:36:47 +00:00
|
|
|
nsIGenericFactory.h \
|
|
|
|
nsIInterfaceRequestorUtils.h \
|
|
|
|
nsISupportsImpl.h \
|
|
|
|
nsISupportsUtils.h \
|
|
|
|
nsIWeakReferenceUtils.h \
|
2005-06-13 16:45:22 +00:00
|
|
|
nsCOMPtr.h \
|
|
|
|
nsDebug.h \
|
|
|
|
nsGenericFactory.h \
|
|
|
|
nsIGenericFactory.h \
|
|
|
|
nsMemory.h \
|
|
|
|
nsTraceRefcnt.h \
|
|
|
|
nsWeakReference.h \
|
|
|
|
nsComponentManagerUtils.h \
|
|
|
|
nsServiceManagerUtils.h \
|
2005-07-23 14:05:25 +00:00
|
|
|
nsVersionComparator.h \
|
2006-03-15 04:59:42 +00:00
|
|
|
nsIClassInfoImpl.h \
|
2007-05-22 19:39:14 +00:00
|
|
|
nsTObserverArray.h \
|
2007-08-06 14:34:02 +00:00
|
|
|
nsCycleCollectionParticipant.h \
|
2007-09-18 18:14:34 +00:00
|
|
|
nsDeque.h \
|
2002-02-25 23:20:01 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2006-05-22 14:19:13 +00:00
|
|
|
EXPORTS = \
|
|
|
|
nsThreadUtils.h \
|
|
|
|
nsProxyRelease.h \
|
2006-11-20 17:03:38 +00:00
|
|
|
nsXPTCUtils.h \
|
2006-05-22 14:19:13 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2004-03-23 20:58:21 +00:00
|
|
|
SDK_LIBRARY = \
|
2002-03-21 23:43:21 +00:00
|
|
|
$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
2002-02-25 23:20:01 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2001-09-14 23:50:59 +00:00
|
|
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
|
|
|
# Force use of PIC
|
|
|
|
FORCE_USE_PIC = 1
|
|
|
|
|
2006-08-30 15:57:03 +00:00
|
|
|
# Pretend we're statically linking the CRT, even though we might not be: this
|
|
|
|
# avoids "msvcrp" and assembly dependencies from creeping into the directives
|
|
|
|
# for this library on Windows.
|
|
|
|
USE_STATIC_LIBS = 1
|
|
|
|
|
2001-09-14 23:50:59 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2006-08-30 15:57:03 +00:00
|
|
|
|
|
|
|
ifdef _MSC_VER
|
|
|
|
# Don't include directives about which CRT to use
|
|
|
|
OS_COMPILE_CXXFLAGS += -Zl
|
|
|
|
OS_COMPILE_CFLAGS += -Zl
|
|
|
|
DEFINES += -D_USE_ANSI_CPP
|
|
|
|
endif
|