1998-11-11 03:34:37 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# 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/
|
1998-11-11 03:34:37 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +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.
|
1998-11-11 03:34:37 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1998-11-11 03:34:37 +00:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-09-09 03:34:19 +00:00
|
|
|
#
|
1998-11-11 03:34:37 +00:00
|
|
|
|
1999-09-09 03:34:19 +00:00
|
|
|
DEPTH = ../..
|
1998-11-11 03:34:37 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
1999-09-09 03:34:19 +00:00
|
|
|
MODULE = editor
|
2000-04-13 19:43:51 +00:00
|
|
|
LIBRARY_NAME = editor
|
1999-09-09 03:34:19 +00:00
|
|
|
IS_COMPONENT = 1
|
2001-04-09 01:35:41 +00:00
|
|
|
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 gfx2 mozcomps windowwatcher
|
1999-08-19 13:19:10 +00:00
|
|
|
|
2001-01-28 20:13:07 +00:00
|
|
|
CPPSRCS = \
|
|
|
|
ChangeAttributeTxn.cpp \
|
|
|
|
CreateElementTxn.cpp \
|
|
|
|
DeleteElementTxn.cpp \
|
|
|
|
DeleteRangeTxn.cpp \
|
|
|
|
DeleteTextTxn.cpp \
|
|
|
|
EditAggregateTxn.cpp \
|
|
|
|
EditTxn.cpp \
|
|
|
|
IMETextTxn.cpp \
|
|
|
|
InsertElementTxn.cpp \
|
|
|
|
InsertTextTxn.cpp \
|
|
|
|
JoinElementTxn.cpp \
|
|
|
|
nsEditorCommands.cpp \
|
2001-04-05 23:48:01 +00:00
|
|
|
nsComposerCommands.cpp \
|
2001-01-28 20:13:07 +00:00
|
|
|
nsEditorController.cpp \
|
2001-04-05 23:48:01 +00:00
|
|
|
nsComposerController.cpp \
|
2001-01-28 20:13:07 +00:00
|
|
|
nsEditor.cpp \
|
|
|
|
nsEditorEventListeners.cpp \
|
|
|
|
nsEditorUtils.cpp \
|
|
|
|
nsEditProperty.cpp \
|
2001-04-05 23:48:01 +00:00
|
|
|
nsTextEditUtils.cpp \
|
2001-01-28 20:13:07 +00:00
|
|
|
nsHTMLEditUtils.cpp \
|
2001-02-15 21:51:25 +00:00
|
|
|
nsPlaintextDataTransfer.cpp \
|
|
|
|
nsPlaintextEditor.cpp \
|
|
|
|
nsSelectionState.cpp \
|
2001-01-28 20:13:07 +00:00
|
|
|
nsStyleSheetTxns.cpp \
|
|
|
|
nsTextEditRules.cpp \
|
|
|
|
PlaceholderTxn.cpp \
|
|
|
|
SplitElementTxn.cpp \
|
|
|
|
TransactionFactory.cpp \
|
1999-09-09 03:34:19 +00:00
|
|
|
$(NULL)
|
1999-08-09 01:42:08 +00:00
|
|
|
|
2001-01-28 20:13:07 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# Building the full blown HTML Editor so add it's source files and objects:
|
|
|
|
|
|
|
|
CPPSRCS += nsAOLCiter.cpp \
|
|
|
|
nsEditorParserObserver.cpp \
|
|
|
|
nsEditorRegistration.cpp \
|
|
|
|
nsEditorShell.cpp \
|
|
|
|
nsEditorShellMouseListener.cpp \
|
|
|
|
nsEditorService.cpp \
|
|
|
|
nsHTMLDataTransfer.cpp \
|
|
|
|
nsHTMLEditor.cpp \
|
|
|
|
nsHTMLEditorStyle.cpp \
|
|
|
|
nsHTMLEditRules.cpp \
|
|
|
|
nsInterfaceState.cpp \
|
|
|
|
nsInternetCiter.cpp \
|
|
|
|
nsTableEditor.cpp \
|
|
|
|
nsWrapUtils.cpp \
|
|
|
|
TextEditorTest.cpp \
|
|
|
|
TypeInState.cpp \
|
2001-02-26 22:02:58 +00:00
|
|
|
SetDocTitleTxn.cpp \
|
2001-01-28 20:13:07 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Enable Editor API Logging!
|
|
|
|
ENABLE_EDITOR_API_LOG=1
|
|
|
|
|
|
|
|
ifdef ENABLE_EDITOR_API_LOG
|
|
|
|
|
|
|
|
CPPSRCS += nsHTMLEditorLog.cpp \
|
|
|
|
nsEditorTxnLog.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEFINES += -DENABLE_EDITOR_API_LOG
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
1999-09-09 03:34:19 +00:00
|
|
|
EXTRA_DSO_LDOPTS = \
|
1999-09-15 02:15:11 +00:00
|
|
|
$(MOZ_NECKO_UTIL_LIBS) \
|
1999-11-16 06:02:31 +00:00
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
2000-05-17 06:45:45 +00:00
|
|
|
$(MOZ_JS_LIBS) \
|
1999-09-09 03:34:19 +00:00
|
|
|
$(NULL)
|
1998-11-11 03:34:37 +00:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|