From 97414320ad38832a508c2b71ac35945a90544c40 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Thu, 5 Apr 2001 23:51:30 +0000 Subject: [PATCH] 66345: New unix/win makefiles for new editor directories, anticipating the move of files from editor/base. Not built yet, needs Mac project. r=jfrancis, sr=kin/sfraser --- editor/composer/Makefile.in | 32 +++++ editor/composer/src/Makefile.in | 46 ++++++ .../composer/src/nsComposerRegistration.cpp | 56 ++++++++ editor/libeditor/Makefile.in | 44 ++++++ editor/libeditor/base/Makefile.in | 32 +++++ editor/libeditor/base/makefile.win | 27 ++++ editor/libeditor/base/public/Makefile.in | 0 editor/libeditor/base/public/makefile.win | 0 editor/libeditor/base/src/Makefile.in | 71 ++++++++++ editor/libeditor/base/src/makefile.win | 0 editor/libeditor/build/Makefile.in | 72 ++++++++++ editor/libeditor/build/makefile.win | 131 ++++++++++++++++++ editor/libeditor/html/Makefile.in | 32 +++++ editor/libeditor/html/makefile.win | 27 ++++ editor/libeditor/html/src/Makefile.in | 61 ++++++++ editor/libeditor/html/src/makefile.win | 0 editor/libeditor/makefile.win | 0 editor/libeditor/text/Makefile.in | 32 +++++ editor/libeditor/text/makefile.win | 27 ++++ editor/libeditor/text/public/Makefile.in | 0 editor/libeditor/text/public/makefile.win | 0 editor/libeditor/text/src/Makefile.in | 52 +++++++ editor/libeditor/text/src/makefile.win | 0 23 files changed, 742 insertions(+) create mode 100644 editor/composer/Makefile.in create mode 100644 editor/composer/src/Makefile.in create mode 100644 editor/composer/src/nsComposerRegistration.cpp create mode 100644 editor/libeditor/Makefile.in create mode 100644 editor/libeditor/base/Makefile.in create mode 100644 editor/libeditor/base/makefile.win create mode 100644 editor/libeditor/base/public/Makefile.in create mode 100644 editor/libeditor/base/public/makefile.win create mode 100644 editor/libeditor/base/src/Makefile.in create mode 100644 editor/libeditor/base/src/makefile.win create mode 100644 editor/libeditor/build/Makefile.in create mode 100644 editor/libeditor/build/makefile.win create mode 100644 editor/libeditor/html/Makefile.in create mode 100644 editor/libeditor/html/makefile.win create mode 100644 editor/libeditor/html/src/Makefile.in create mode 100644 editor/libeditor/html/src/makefile.win create mode 100644 editor/libeditor/makefile.win create mode 100644 editor/libeditor/text/Makefile.in create mode 100644 editor/libeditor/text/makefile.win create mode 100644 editor/libeditor/text/public/Makefile.in create mode 100644 editor/libeditor/text/public/makefile.win create mode 100644 editor/libeditor/text/src/Makefile.in create mode 100644 editor/libeditor/text/src/makefile.win diff --git a/editor/composer/Makefile.in b/editor/composer/Makefile.in new file mode 100644 index 00000000000..2ad69d246ea --- /dev/null +++ b/editor/composer/Makefile.in @@ -0,0 +1,32 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = src + +include $(topsrcdir)/config/rules.mk + diff --git a/editor/composer/src/Makefile.in b/editor/composer/src/Makefile.in new file mode 100644 index 00000000000..af369df8a1b --- /dev/null +++ b/editor/composer/src/Makefile.in @@ -0,0 +1,46 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = editor +LIBRARY_NAME = composer +IS_COMPONENT = 1 +REQUIRES = xpcom string dom js locale layout uriloader widget txmgr htmlparser necko pref view appshell rdf webshell timer txtsvc intl lwbrk docshell chrome caps appcomps xuldoc + +CPPSRCS = \ + nsEditorShell.cpp \ + nsEditorShellMouseListener.cpp \ + nsEditorParserObserver.cpp \ + nsInterfaceState.cpp \ + nsComposerController.cpp \ + nsComposerCommands.cpp \ + nsComposerRegistration.cpp \ + $(NULL) + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I../../libeditor/base/src diff --git a/editor/composer/src/nsComposerRegistration.cpp b/editor/composer/src/nsComposerRegistration.cpp new file mode 100644 index 00000000000..39c442cfd77 --- /dev/null +++ b/editor/composer/src/nsComposerRegistration.cpp @@ -0,0 +1,56 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape 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/NPL/ + * + * 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. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ + +#include "nsIGenericFactory.h" + +#include "nsEditorShell.h" // for the CID +#include "nsComposerController.h" // for the CID + +//////////////////////////////////////////////////////////////////////// +// Define the contructor function for the objects +// +// NOTE: This creates an instance of objects by using the default constructor +// + +NS_GENERIC_FACTORY_CONSTRUCTOR(nsEditorShell) +NS_GENERIC_FACTORY_CONSTRUCTOR(nsComposerController) + +//////////////////////////////////////////////////////////////////////// +// Define a table of CIDs implemented by this module along with other +// information like the function to create an instance, contractid, and +// class name. +// +static nsModuleComponentInfo components[] = { + { "Composer Controller", NS_COMPOSERCONTROLLER_CID, + "@mozilla.org/editor/composercontroller;1", + nsComposerControllerConstructor, }, + { "Editor Shell Component", NS_EDITORSHELL_CID, + "@mozilla.org/editor/editorshell;1", nsEditorShellConstructor, }, + { "Editor Shell Spell Checker", NS_EDITORSHELL_CID, + "@mozilla.org/editor/editorspellcheck;1", nsEditorShellConstructor, }, +}; + +//////////////////////////////////////////////////////////////////////// +// Implement the NSGetModule() exported function for your module +// and the entire implementation of the module object. +// +NS_IMPL_NSGETMODULE("nsComposerModule", components) diff --git a/editor/libeditor/Makefile.in b/editor/libeditor/Makefile.in new file mode 100644 index 00000000000..0f05ac7517b --- /dev/null +++ b/editor/libeditor/Makefile.in @@ -0,0 +1,44 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = base text html build + +# Enable Editor API Logging! +ENABLE_EDITOR_API_LOG=1 + +ifdef ENABLE_EDITOR_API_LOG +DEFINES += -DENABLE_EDITOR_API_LOG +endif + +include $(topsrcdir)/config/rules.mk + +chrome:: + @$(REGCHROME) content editor comm.jar + @$(REGCHROME) content editor-region comm.jar + @$(REGCHROME) locale en-US/editor en-US.jar + @$(REGCHROME) locale US/editor-region US.jar diff --git a/editor/libeditor/base/Makefile.in b/editor/libeditor/base/Makefile.in new file mode 100644 index 00000000000..0b4d2a90ab5 --- /dev/null +++ b/editor/libeditor/base/Makefile.in @@ -0,0 +1,32 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = src + +include $(topsrcdir)/config/rules.mk + diff --git a/editor/libeditor/base/makefile.win b/editor/libeditor/base/makefile.win new file mode 100644 index 00000000000..18931a3eb90 --- /dev/null +++ b/editor/libeditor/base/makefile.win @@ -0,0 +1,27 @@ +#!nmake +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + +DIRS= public src + +include <$(DEPTH)\config\rules.mak> + diff --git a/editor/libeditor/base/public/Makefile.in b/editor/libeditor/base/public/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/editor/libeditor/base/public/makefile.win b/editor/libeditor/base/public/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/editor/libeditor/base/src/Makefile.in b/editor/libeditor/base/src/Makefile.in new file mode 100644 index 00000000000..e4b34d228d3 --- /dev/null +++ b/editor/libeditor/base/src/Makefile.in @@ -0,0 +1,71 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = editor +LIBRARY_NAME = editorbase_s +REQUIRES = xpcom string dom js locale layout uriloader widget txmgr htmlparser necko pref view appshell rdf webshell timer txtsvc intl lwbrk docshell chrome caps appcomps xuldoc + +# Internal header files, needed by other editor sublibs: +INTERNAL_HDR_DIR = ../internal + +CPPSRCS = \ + nsEditor.cpp \ + nsEditorCommands.cpp \ + nsEditorController.cpp \ + nsEditorService.cpp \ + nsEditorUtils.cpp \ + nsSelectionState.cpp \ + $(NULL) + +# Transactions: we'd like to split these off, +# but currently they and nsEditor are too intertwined! +CPPSRCS += \ + EditTxn.cpp \ + IMETextTxn.cpp \ + PlaceholderTxn.cpp \ + ChangeAttributeTxn.cpp \ + CreateElementTxn.cpp \ + DeleteElementTxn.cpp \ + DeleteRangeTxn.cpp \ + DeleteTextTxn.cpp \ + EditAggregateTxn.cpp \ + InsertElementTxn.cpp \ + InsertTextTxn.cpp \ + JoinElementTxn.cpp \ + SetDocTitleTxn.cpp \ + SplitElementTxn.cpp \ + nsStyleSheetTxns.cpp \ + TransactionFactory.cpp \ + $(NULL) + +# we don't want the shared lib, but we want to force the creation of a static lib. +override NO_SHARED_LIB=1 +override NO_STATIC_LIB= + +include $(topsrcdir)/config/rules.mk + diff --git a/editor/libeditor/base/src/makefile.win b/editor/libeditor/base/src/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/editor/libeditor/build/Makefile.in b/editor/libeditor/build/Makefile.in new file mode 100644 index 00000000000..35694ba4a80 --- /dev/null +++ b/editor/libeditor/build/Makefile.in @@ -0,0 +1,72 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +# BUILD_DATE = gbdate.h + +MODULE = editor +LIBRARY_NAME = editor +IS_COMPONENT = 1 +EXTRA_DSO_LDOPTS = \ + $(MOZ_NECKO_UTIL_LIBS) \ + $(MOZ_COMPONENT_LIBS) \ + $(MOZ_JS_LIBS) \ + $(NULL) +REQUIRES = xpcom string dom js locale layout uriloader widget txmgr htmlparser necko pref view appshell rdf webshell timer txtsvc intl lwbrk docshell chrome caps appcomps xuldoc + +# MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY=1 +ifdef MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY +# We're only building the Core PlainText Editor Source so just include +# the plain text registration file. +CPPSRCS = nsTextEditorReg.cpp +SHARED_LIBRARY_LIBS = $(NULL) + +else +CPPSRCS = nsEditorRegistration.cpp +SHARED_LIBRARY_LIBS = \ + ../html/src/libhtmleditor_s.$(LIB_SUFFIX) \ + $(NULL) +endif + +#ifndef MKSHLIB_FORCE_ALL +#CPPSRCS += dlldeps.cpp +#endif + +# These libraries always get built: +SHARED_LIBRARY_LIBS += \ + ../text/src/libtexteditor_s.$(LIB_SUFFIX) \ + ../base/src/libeditorbase_s.$(LIB_SUFFIX) \ + $(NULL) + +ifdef ENABLE_EDITOR_API_LOG +DEFINES += -DENABLE_EDITOR_API_LOG +endif + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I../base/src -I../text/src -I../html/src + diff --git a/editor/libeditor/build/makefile.win b/editor/libeditor/build/makefile.win new file mode 100644 index 00000000000..76dc85e9074 --- /dev/null +++ b/editor/libeditor/build/makefile.win @@ -0,0 +1,131 @@ +#!nmake +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + +include <$(DEPTH)/config/config.mak> + +MODULE = editor +IS_COMPONENT = 1 + +# Uncomment the line below, or define MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY +# in your environment, to build only the plain text editor core files: +# MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY=1 + +!if defined(MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY) + +CPPSRCS = \ + $(CPPSRCS) \ + nsTextEditorReg.cpp \ + $(NULL) + +CPP_OBJS = \ + $(CPP_OBJS) \ + .\$(OBJDIR)\nsTextEditorReg.obj \ + $(NULL) + +DLLNAME = texteditor + +!else + +CPPSRCS = \ + $(CPPSRCS) \ + nsEditorRegistration.cpp \ + $(NULL) + +CPP_OBJS = \ + $(CPP_OBJS) \ + .\$(OBJDIR)\nsEditorRegistration.obj \ + $(NULL) + +#Enable Editor API Logging! +ENABLE_EDITOR_API_LOG=1 + +!if defined(ENABLE_EDITOR_API_LOG) +DEFINES = -DENABLE_EDITOR_API_LOG $(DEFINES) +!endif + +DLLNAME = editor + +!endif + +LINCS = \ + -I..\base\public \ + -I..\base\src \ + -I..\text\src \ + $(NULL) + +MAKE_OBJ_TYPE = DLL +DLL = .\$(OBJDIR)\$(DLLNAME).dll + +LCFLAGS = \ + $(LCFLAGS) \ + $(DEFINES) \ + $(NULL) + +# These are the base editor libraries we need to link with to create the dll + +LLIBS = \ + $(DIST)\lib\libbaseeditor_s.lib \ + $(DIST)\lib\libtexteditor_s.lib \ + $(NULL) + +!if !defined(MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY) + +LINCS = \ + $(LINCS) \ + -I..\html\src \ + $(NULL) + +# These are the html editor libraries we need to link with to create the dll + +LLIBS = \ + $(LLIBS) \ + $(DIST)\lib\libhtmleditor_s.lib \ + $(NULL) + +!endif + +# These are the external libraries we need to link with to create the dll + +LLIBS = \ + $(LLIBS) \ + $(DIST)\lib\xpcom.lib \ + $(LIBNSPR) \ + $(NULL) + +include <$(DEPTH)\config\rules.mak> + +build:: $(DLL) + +!if !defined(MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY) + +install:: $(DLL) + $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components + $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib + set MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY=1 + nmake -f makefile.win build + +clobber:: + rm -f $(DIST)\bin\$(DLLNAME).dll + rm -f $(DIST)\lib\$(DLLNAME).lib + +!endif diff --git a/editor/libeditor/html/Makefile.in b/editor/libeditor/html/Makefile.in new file mode 100644 index 00000000000..0b4d2a90ab5 --- /dev/null +++ b/editor/libeditor/html/Makefile.in @@ -0,0 +1,32 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = src + +include $(topsrcdir)/config/rules.mk + diff --git a/editor/libeditor/html/makefile.win b/editor/libeditor/html/makefile.win new file mode 100644 index 00000000000..18931a3eb90 --- /dev/null +++ b/editor/libeditor/html/makefile.win @@ -0,0 +1,27 @@ +#!nmake +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + +DIRS= public src + +include <$(DEPTH)\config\rules.mak> + diff --git a/editor/libeditor/html/src/Makefile.in b/editor/libeditor/html/src/Makefile.in new file mode 100644 index 00000000000..146eb2b94f0 --- /dev/null +++ b/editor/libeditor/html/src/Makefile.in @@ -0,0 +1,61 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = editor +LIBRARY_NAME = htmleditor_s +REQUIRES = xpcom string dom js locale layout uriloader widget txmgr htmlparser necko pref view appshell rdf webshell timer txtsvc intl lwbrk docshell chrome caps appcomps xuldoc + +# Building the full blown HTML Editor so add it's source files and objects: + +CPPSRCS = \ + nsEditProperty.cpp \ + nsHTMLDataTransfer.cpp \ + nsHTMLEditor.cpp \ + nsHTMLEditorStyle.cpp \ + nsHTMLEditRules.cpp \ + nsHTMLEditUtils.cpp \ + nsTableEditor.cpp \ + TypeInState.cpp \ + TextEditorTest.cpp \ + $(NULL) + +# don't want the shared lib; force the creation of a static lib. +override NO_SHARED_LIB=1 +override NO_STATIC_LIB= + +ifdef ENABLE_EDITOR_API_LOG +CPPSRCS += nsHTMLEditorLog.cpp \ + nsEditorTxnLog.cpp \ + $(NULL) + +DEFINES += -DENABLE_EDITOR_API_LOG +endif + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I../../base/src -I../../text/src diff --git a/editor/libeditor/html/src/makefile.win b/editor/libeditor/html/src/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/editor/libeditor/makefile.win b/editor/libeditor/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/editor/libeditor/text/Makefile.in b/editor/libeditor/text/Makefile.in new file mode 100644 index 00000000000..0b4d2a90ab5 --- /dev/null +++ b/editor/libeditor/text/Makefile.in @@ -0,0 +1,32 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = src + +include $(topsrcdir)/config/rules.mk + diff --git a/editor/libeditor/text/makefile.win b/editor/libeditor/text/makefile.win new file mode 100644 index 00000000000..18931a3eb90 --- /dev/null +++ b/editor/libeditor/text/makefile.win @@ -0,0 +1,27 @@ +#!nmake +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): + +DEPTH=..\..\.. + +DIRS= public src + +include <$(DEPTH)\config\rules.mak> + diff --git a/editor/libeditor/text/public/Makefile.in b/editor/libeditor/text/public/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/editor/libeditor/text/public/makefile.win b/editor/libeditor/text/public/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/editor/libeditor/text/src/Makefile.in b/editor/libeditor/text/src/Makefile.in new file mode 100644 index 00000000000..ce87d04a723 --- /dev/null +++ b/editor/libeditor/text/src/Makefile.in @@ -0,0 +1,52 @@ +# +# The contents of this file are subject to the Netscape 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/NPL/ +# +# 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. +# +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is Netscape +# Communications Corporation. Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. All +# Rights Reserved. +# +# Contributor(s): +# + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = editor +LIBRARY_NAME = texteditor_s +IS_COMPONENT = 1 +REQUIRES = xpcom string dom js locale layout uriloader widget txmgr htmlparser necko pref view appshell rdf webshell timer txtsvc intl lwbrk docshell chrome caps appcomps xuldoc + +CPPSRCS = \ + nsPlaintextDataTransfer.cpp \ + nsPlaintextEditor.cpp \ + nsTextEditUtils.cpp \ + nsTextEditRules.cpp \ + nsEditorEventListeners.cpp \ + nsWrapUtils.cpp \ + nsInternetCiter.cpp \ + nsAOLCiter.cpp \ + $(NULL) + +# don't want the shared lib; force the creation of a static lib. +override NO_SHARED_LIB=1 +override NO_STATIC_LIB= + +include $(topsrcdir)/config/rules.mk + +INCLUDES += -I../../base/src + diff --git a/editor/libeditor/text/src/makefile.win b/editor/libeditor/text/src/makefile.win new file mode 100644 index 00000000000..e69de29bb2d