1998-08-20 00:42:14 +04:00
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-08-20 00:42:14 +04:00
|
|
|
#
|
2004-04-18 18:21:17 +04: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/
|
|
|
|
#
|
|
|
|
# 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.
|
1998-08-20 00:42:14 +04:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-11-06 06:43:54 +03:00
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of 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.
|
1999-07-23 03:20:25 +04:00
|
|
|
#
|
2004-04-18 18:21:17 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-08-20 00:42:14 +04:00
|
|
|
|
1998-10-21 06:13:56 +04:00
|
|
|
DEPTH = ../..
|
1998-08-20 00:42:14 +04:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
1998-10-21 06:13:56 +04:00
|
|
|
VPATH = @srcdir@
|
1998-08-20 00:42:14 +04:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2000-11-20 10:16:06 +03:00
|
|
|
MODULE = xpcom
|
2005-11-08 21:17:49 +03:00
|
|
|
|
|
|
|
ifndef MOZ_ENABLE_LIBXUL
|
2005-04-01 22:22:57 +04:00
|
|
|
MOZILLA_INTERNAL_API = 1
|
2005-11-08 21:17:49 +03:00
|
|
|
endif
|
2005-04-01 22:22:57 +04:00
|
|
|
|
2006-05-20 02:37:17 +04:00
|
|
|
DIRS = dynamic services external
|
2001-12-09 10:05:12 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
DIRS += windows
|
|
|
|
endif
|
|
|
|
|
2002-05-08 10:11:48 +04:00
|
|
|
REQUIRES = \
|
2001-09-18 17:41:47 +04:00
|
|
|
string \
|
|
|
|
$(NULL)
|
1998-08-20 00:42:14 +04:00
|
|
|
|
1999-07-23 03:20:25 +04:00
|
|
|
CPPSRCS = \
|
2000-09-15 02:56:56 +04:00
|
|
|
nsIFileEnumerator.cpp \
|
2001-10-21 03:19:07 +04:00
|
|
|
nsIFileTest.cpp \
|
2001-07-04 22:55:15 +04:00
|
|
|
TestCallTemplates.cpp \
|
1999-07-23 03:20:25 +04:00
|
|
|
TestCOMPtr.cpp \
|
2001-02-07 07:04:12 +03:00
|
|
|
TestCOMPtrEq.cpp \
|
2001-10-21 03:19:07 +04:00
|
|
|
TestFactory.cpp \
|
2003-06-18 15:26:27 +04:00
|
|
|
TestHashtables.cpp \
|
2001-10-21 03:19:07 +04:00
|
|
|
TestID.cpp \
|
2005-08-15 22:29:55 +04:00
|
|
|
TestINIParser.cpp \
|
1999-07-23 03:20:25 +04:00
|
|
|
TestObserverService.cpp \
|
2005-11-08 21:17:49 +03:00
|
|
|
TestServMgr.cpp \
|
|
|
|
TestAutoPtr.cpp \
|
|
|
|
TestVersionComparator.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifndef MOZ_ENABLE_LIBXUL
|
|
|
|
CPPSRCS += \
|
|
|
|
TestArray.cpp \
|
2005-11-23 22:44:16 +03:00
|
|
|
TestTArray.cpp \
|
2005-11-08 21:17:49 +03:00
|
|
|
TestAtoms.cpp \
|
|
|
|
TestAutoLock.cpp \
|
|
|
|
TestCRT.cpp \
|
2001-10-21 03:19:07 +04:00
|
|
|
TestPermanentAtoms.cpp \
|
1999-07-23 03:20:25 +04:00
|
|
|
TestPipes.cpp \
|
|
|
|
TestThreads.cpp \
|
2006-05-10 21:30:15 +04:00
|
|
|
TestThreadPool.cpp \
|
2001-10-21 03:19:07 +04:00
|
|
|
TestXPIDLString.cpp \
|
2002-02-20 06:08:32 +03:00
|
|
|
TestDeque.cpp \
|
2004-02-19 05:44:03 +03:00
|
|
|
TestStrings.cpp \
|
2004-09-29 20:48:10 +04:00
|
|
|
TestStorageStream.cpp \
|
1999-07-23 03:20:25 +04:00
|
|
|
$(NULL)
|
2005-11-08 21:17:49 +03:00
|
|
|
endif
|
1999-07-23 03:20:25 +04:00
|
|
|
|
2001-12-09 10:05:12 +03:00
|
|
|
#CPPSRCS += TimerTest.cpp
|
|
|
|
|
2000-05-11 18:15:34 +04:00
|
|
|
SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
|
1999-07-23 03:20:25 +04:00
|
|
|
|
1999-12-21 04:39:12 +03:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2005-11-08 21:17:49 +03:00
|
|
|
ifndef MOZILLA_INTERNAL_API
|
|
|
|
LIBS += $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
1999-07-23 03:20:25 +04:00
|
|
|
LIBS += \
|
2000-04-04 08:46:38 +04:00
|
|
|
$(XPCOM_LIBS) \
|
1999-07-23 03:20:25 +04:00
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
1999-05-27 12:50:52 +04:00
|
|
|
|
1999-06-09 12:43:51 +04:00
|
|
|
# Needed to resolve __yylex (?)
|
|
|
|
ifeq ($(OS_ARCH)$(OS_RELEASE),FreeBSD2)
|
|
|
|
LIBS += -lpcap
|
|
|
|
endif
|
|
|
|
|
2004-11-23 22:34:02 +03:00
|
|
|
ENABLE_CXX_EXCEPTIONS = 1
|
|
|
|
|
1999-07-23 03:20:25 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2001-12-09 10:05:12 +03:00
|
|
|
LOCAL_INCLUDES = \
|
2001-10-21 03:19:07 +04:00
|
|
|
-I$(srcdir)/../ds \
|
|
|
|
-I$(srcdir)/services \
|
|
|
|
$(NULL)
|
1999-07-23 03:20:25 +04:00
|
|
|
|
2001-11-21 11:55:59 +03:00
|
|
|
libs::
|
1999-09-18 06:12:56 +04:00
|
|
|
$(INSTALL) $(srcdir)/test.properties $(DIST)/bin/res
|
1999-05-27 12:50:52 +04:00
|
|
|
|
2002-04-25 06:52:44 +04:00
|
|
|
install::
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $(srcdir)/test.properties $(DESTDIR)$(mozappdir)/res
|
|
|
|
|
2005-08-11 20:41:54 +04:00
|
|
|
check::
|
2005-07-23 18:05:25 +04:00
|
|
|
@echo "Running TestVersionComparator tests"
|
2005-07-23 22:44:37 +04:00
|
|
|
@$(PERL) -w $(srcdir)/TestVersionComparatorRunner.pl "$(RUN_TEST_PROGRAM) $(FINAL_TARGET)/TestVersionComparator$(BIN_SUFFIX)"
|