From e5331aea39a0fae3b3d0fedd157a183de7ef572e Mon Sep 17 00:00:00 2001 From: "kin%netscape.com" Date: Fri, 20 Nov 1998 18:36:05 +0000 Subject: [PATCH] Initial checkin of files. git-svn-id: svn://10.0.0.236/trunk@15031 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/txmgr/tests/Makefile | 48 +++++++++++++++++ mozilla/editor/txmgr/tests/Makefile.in | 53 +++++++++++++++++++ mozilla/editor/txmgr/tests/TestTXMgr.cpp | 8 +++ mozilla/editor/txmgr/tests/makefile.win | 67 ++++++++++++++++++++++++ 4 files changed, 176 insertions(+) create mode 100644 mozilla/editor/txmgr/tests/Makefile create mode 100644 mozilla/editor/txmgr/tests/Makefile.in create mode 100644 mozilla/editor/txmgr/tests/TestTXMgr.cpp create mode 100644 mozilla/editor/txmgr/tests/makefile.win diff --git a/mozilla/editor/txmgr/tests/Makefile b/mozilla/editor/txmgr/tests/Makefile new file mode 100644 index 00000000000..76b6151258e --- /dev/null +++ b/mozilla/editor/txmgr/tests/Makefile @@ -0,0 +1,48 @@ +# +# The contents of this file are subject to the Netscape Public License +# Version 1.0 (the "NPL"); you may not use this file except in +# compliance with the NPL. You may obtain a copy of the NPL at +# http://www.mozilla.org/NPL/ +# +# Software distributed under the NPL is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL +# for the specific language governing rights and limitations under the +# NPL. +# +# The Initial Developer of this code under the NPL is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All Rights +# Reserved. + +DEPTH = ../.. + +DIRS = dynamic + +CPPSRCS = TestTXMgr.cpp + +include $(DEPTH)/config/rules.mk + +INCLUDES = -I$(DIST)/include + +EX_LIBS = \ + $(DIST)/lib/libtxmgr.$(LIB_SUFFIX) \ + $(DIST)/lib/libraptorbase.$(LIB_SUFFIX) \ + $(DIST)/lib/libxpcom.$(LIB_SUFFIX) \ + $(NULL) + +PROGS = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=)) + +TARGETS = $(PROGS) + +ifeq ($(OS_ARCH),Rhapsody) +$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS) + @$(MAKE_OBJDIR) + $(CC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(OS_LIBS) +else +$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS) + @$(MAKE_OBJDIR) + $(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(OS_LIBS) +endif + +install:: $(PROGS) + $(INSTALL) $(PROGS) $(DIST)/bin diff --git a/mozilla/editor/txmgr/tests/Makefile.in b/mozilla/editor/txmgr/tests/Makefile.in new file mode 100644 index 00000000000..7d59d8b9681 --- /dev/null +++ b/mozilla/editor/txmgr/tests/Makefile.in @@ -0,0 +1,53 @@ +# +# The contents of this file are subject to the Netscape Public License +# Version 1.0 (the "NPL"); you may not use this file except in +# compliance with the NPL. You may obtain a copy of the NPL at +# http://www.mozilla.org/NPL/ +# +# Software distributed under the NPL is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL +# for the specific language governing rights and limitations under the +# NPL. +# +# The Initial Developer of this code under the NPL is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All Rights +# Reserved. + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = dynamic + +CPPSRCS = TestTXMgr.cpp + +include $(topsrcdir)/config/rules.mk + +INCLUDES = -I$(DIST)/include + +EX_LIBS = \ + $(DIST)/lib/libtxmgr.$(LIB_SUFFIX) \ + $(DIST)/lib/libraptorbase.$(LIB_SUFFIX) \ + $(DIST)/lib/libxpcom.$(LIB_SUFFIX) \ + $(NULL) + +PROGS = $(addprefix $(OBJDIR)/, $(CPPSRCS:.cpp=)) + +TARGETS = $(PROGS) + +ifeq ($(OS_ARCH),Rhapsody) +$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS) + @$(MAKE_OBJDIR) + $(CC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(NSPR_LIBS) $(OS_LIBS) +else +$(PROGS):$(OBJDIR)/%: $(OBJDIR)/%.o $(EX_LIBS) + @$(MAKE_OBJDIR) + $(CCC) -o $@ $@.o $(LDFLAGS) $(EX_LIBS) $(NSPR_LIBS) $(OS_LIBS) +endif + +install:: $(PROGS) + $(INSTALL) $(PROGS) $(DIST)/bin diff --git a/mozilla/editor/txmgr/tests/TestTXMgr.cpp b/mozilla/editor/txmgr/tests/TestTXMgr.cpp new file mode 100644 index 00000000000..faa2b67f7a9 --- /dev/null +++ b/mozilla/editor/txmgr/tests/TestTXMgr.cpp @@ -0,0 +1,8 @@ +#include "nsITransactionManager.h" + +int +main (int argc, char *argv[]) +{ + return 0; +} + diff --git a/mozilla/editor/txmgr/tests/makefile.win b/mozilla/editor/txmgr/tests/makefile.win new file mode 100644 index 00000000000..ee467d58b13 --- /dev/null +++ b/mozilla/editor/txmgr/tests/makefile.win @@ -0,0 +1,67 @@ +#!nmake +# +# The contents of this file are subject to the Netscape Public License +# Version 1.0 (the "NPL"); you may not use this file except in +# compliance with the NPL. You may obtain a copy of the NPL at +# http://www.mozilla.org/NPL/ +# +# Software distributed under the NPL is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL +# for the specific language governing rights and limitations under the +# NPL. +# +# The Initial Developer of this code under the NPL is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All Rights +# Reserved. + +DEPTH=..\.. + +IGNORE_MANIFEST=1 + +DIRS = dynamic windows services + +MAKE_OBJ_TYPE = EXE +PROG1 = .\$(OBJDIR)\TestTXMgr.exe +PROGRAMS = $(PROG1) + +LCFLAGS=-DUSE_NSREG + +REQUIRES=libraptorbase + +LINCS=-I..\public + +LLIBS= \ + $(DIST)\lib\txmgr32.lib \ + $(DIST)\lib\raptorbase32.lib \ + $(DIST)\lib\xpcom32.lib +!if "$(MOZ_BITS)"=="32" && defined(MOZ_DEBUG) && defined(GLOWCODE) +LLIBS=$(LLIBS) $(GLOWDIR)\glowcode.lib +!endif + +include <$(DEPTH)\config\rules.mak> + +install:: $(PROGRAMS) + -for %p in ($(PROGRAMS)) do $(MAKE_INSTALL) %p $(DIST)\bin + +clobber:: + -for %p in ($(PROGRAMS)) do $(RM) %p $(DIST)\bin\%p + +# Move this into config/obj.inc when it's allowed +.cpp{.\$(OBJDIR)\}.exe: + $(CC) @<<$(CFGFILE) + $(CFLAGS) + $(LCFLAGS) + $(LINCS) + $(LINCS_1) + $(INCS) + $(LLIBS) + $(OS_LIBS) + -Fd$(PBDFILE) + -Fe.\$(OBJDIR)\ + -Fo.\$(OBJDIR)\ + $(CURDIR)$(*B).cpp +<