mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-04 16:15:25 +00:00
133 lines
3.7 KiB
Makefile
133 lines
3.7 KiB
Makefile
#
|
|
# 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 = editor
|
|
EXPORT_LIBRARY = 1
|
|
IS_COMPONENT = 1
|
|
MODULE_NAME = nsEditorModule
|
|
REQUIRES = xpcom string dom locale layout uriloader widget txmgr htmlparser necko pref view appshell rdf webshell timer txtsvc intl lwbrk docshell chrome appcomps xuldoc windowwatcher exthandler mimetype
|
|
|
|
CPPSRCS = \
|
|
nsAOLCiter.cpp \
|
|
ChangeAttributeTxn.cpp \
|
|
CreateElementTxn.cpp \
|
|
DeleteElementTxn.cpp \
|
|
DeleteRangeTxn.cpp \
|
|
DeleteTextTxn.cpp \
|
|
EditAggregateTxn.cpp \
|
|
EditTxn.cpp \
|
|
IMETextTxn.cpp \
|
|
InsertElementTxn.cpp \
|
|
InsertTextTxn.cpp \
|
|
JoinElementTxn.cpp \
|
|
nsEditorCommands.cpp \
|
|
nsComposerCommands.cpp \
|
|
nsEditorController.cpp \
|
|
nsComposerController.cpp \
|
|
nsEditor.cpp \
|
|
nsEditorEventListeners.cpp \
|
|
nsEditorUtils.cpp \
|
|
nsEditProperty.cpp \
|
|
nsTextEditUtils.cpp \
|
|
nsHTMLEditUtils.cpp \
|
|
nsInternetCiter.cpp \
|
|
nsPlaintextDataTransfer.cpp \
|
|
nsPlaintextEditor.cpp \
|
|
nsSelectionState.cpp \
|
|
nsStyleSheetTxns.cpp \
|
|
nsTextEditRules.cpp \
|
|
nsWrapUtils.cpp \
|
|
PlaceholderTxn.cpp \
|
|
SplitElementTxn.cpp \
|
|
TransactionFactory.cpp \
|
|
$(NULL)
|
|
|
|
ifdef IBMBIDI
|
|
CPPSRCS += \
|
|
nsTextEditRulesBidi.cpp \
|
|
$(NULL)
|
|
endif
|
|
|
|
# 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
|
|
|
|
DEFINES += -DMOZILLA_PLAINTEXT_EDITOR_ONLY
|
|
|
|
else
|
|
|
|
# Building the full blown HTML Editor so add it's source files and objects:
|
|
|
|
CPPSRCS += nsEditorParserObserver.cpp \
|
|
nsEditorRegistration.cpp \
|
|
nsEditorShell.cpp \
|
|
nsEditorShellMouseListener.cpp \
|
|
nsEditorService.cpp \
|
|
nsHTMLDataTransfer.cpp \
|
|
nsHTMLEditor.cpp \
|
|
nsHTMLEditorStyle.cpp \
|
|
nsHTMLEditRules.cpp \
|
|
nsInterfaceState.cpp \
|
|
nsHTMLURIRefObject.cpp \
|
|
nsTableEditor.cpp \
|
|
nsWSRunObject.cpp \
|
|
TextEditorTest.cpp \
|
|
TypeInState.cpp \
|
|
SetDocTitleTxn.cpp \
|
|
$(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=1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
EXTRA_DSO_LDOPTS = \
|
|
$(MOZ_NECKO_UTIL_LIBS) \
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
$(MOZ_JS_LIBS) \
|
|
$(NULL)
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|