gecko-dev/editor/base/makefile.win

147 строки
4.4 KiB
Plaintext
Исходник Обычный вид История

1998-11-11 06:34:37 +03:00
#!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
LIBRARY_NAME=ender
CPPSRCS = \
1999-05-07 23:38:53 +04:00
nsInsertHTMLTxn.cpp \
nsEditor.cpp \
nsTextEditor.cpp \
1999-03-10 22:47:34 +03:00
nsTextEditRules.cpp \
1999-03-29 12:01:21 +04:00
nsHTMLEditRules.cpp \
TextEditorTest.cpp \
nsEditorEventListeners.cpp \
nsEditProperty.cpp \
nsEditFactory.cpp \
nsTextEditFactory.cpp \
EditTxn.cpp \
EditAggregateTxn.cpp \
ChangeAttributeTxn.cpp \
InsertTextTxn.cpp \
DeleteTextTxn.cpp \
PlaceholderTxn.cpp \
CreateElementTxn.cpp \
InsertElementTxn.cpp \
DeleteElementTxn.cpp \
DeleteRangeTxn.cpp \
SplitElementTxn.cpp \
JoinElementTxn.cpp \
TransactionFactory.cpp \
nsHTMLEditor.cpp \
nsHTMLEditFactory.cpp \
EditTable.cpp \
InsertTableTxn.cpp \
InsertTableCellTxn.cpp \
InsertTableColumnTxn.cpp \
InsertTableRowTxn.cpp \
DeleteTableTxn.cpp \
DeleteTableCellTxn.cpp \
DeleteTableColumnTxn.cpp \
DeleteTableRowTxn.cpp \
JoinTableCellsTxn.cpp \
1999-05-27 04:08:15 +04:00
nsInternetCiter.cpp \
nsAOLCiter.cpp \
1998-11-11 06:34:37 +03:00
$(NULL)
CPP_OBJS = \
1999-05-07 23:38:53 +04:00
.\$(OBJDIR)\nsInsertHTMLTxn.obj \
.\$(OBJDIR)\nsEditor.obj \
.\$(OBJDIR)\nsTextEditor.obj \
1999-03-10 22:47:34 +03:00
.\$(OBJDIR)\nsTextEditRules.obj \
.\$(OBJDIR)\TextEditorTest.obj \
1999-03-29 12:01:21 +04:00
.\$(OBJDIR)\nsHTMLEditRules.obj \
.\$(OBJDIR)\nsEditorEventListeners.obj \
.\$(OBJDIR)\nsEditProperty.obj \
.\$(OBJDIR)\nsEditFactory.obj \
.\$(OBJDIR)\nsTextEditFactory.obj \
.\$(OBJDIR)\EditTxn.obj \
.\$(OBJDIR)\EditAggregateTxn.obj \
.\$(OBJDIR)\ChangeAttributeTxn.obj \
.\$(OBJDIR)\InsertTextTxn.obj \
.\$(OBJDIR)\DeleteTextTxn.obj \
.\$(OBJDIR)\PlaceholderTxn.obj \
.\$(OBJDIR)\CreateElementTxn.obj \
.\$(OBJDIR)\InsertElementTxn.obj \
.\$(OBJDIR)\DeleteElementTxn.obj \
.\$(OBJDIR)\DeleteRangeTxn.obj \
.\$(OBJDIR)\SplitElementTxn.obj \
.\$(OBJDIR)\JoinElementTxn.obj \
.\$(OBJDIR)\TransactionFactory.obj \
.\$(OBJDIR)\nsHTMLEditor.obj \
.\$(OBJDIR)\nsHTMLEditFactory.obj \
.\$(OBJDIR)\EditTable.obj \
.\$(OBJDIR)\InsertTableTxn.obj \
.\$(OBJDIR)\InsertTableCellTxn.obj \
.\$(OBJDIR)\InsertTableColumnTxn.obj \
.\$(OBJDIR)\InsertTableRowTxn.obj \
.\$(OBJDIR)\DeleteTableTxn.obj \
.\$(OBJDIR)\DeleteTableCellTxn.obj \
.\$(OBJDIR)\DeleteTableColumnTxn.obj \
.\$(OBJDIR)\DeleteTableRowTxn.obj \
.\$(OBJDIR)\JoinTableCellsTxn.obj \
1999-05-27 04:08:15 +04:00
.\$(OBJDIR)\nsInternetCiter.obj \
.\$(OBJDIR)\nsAOLCiter.obj \
1998-11-11 06:34:37 +03:00
$(NULL)
1998-11-11 23:44:02 +03:00
MODULE=editor
1998-11-11 06:34:37 +03:00
1999-05-27 05:46:06 +04:00
REQUIRES=xpcom raptor dom base netlib pref
1998-11-11 06:34:37 +03:00
1998-11-11 23:44:02 +03:00
LINCS=-I$(PUBLIC)\editor \
-I$(PUBLIC)\xpcom \
1998-11-11 12:26:42 +03:00
-I$(PUBLIC)\raptor \
1998-11-11 23:44:02 +03:00
-I$(PUBLIC)\js \
Preparation for ender-based text control * added focus listener. Doesn't do much yet, but when focus notifications start appearing, we'll be ready for them. The code is in place to hide selection when we lose focus and paint selection when we get focus. That's probably not quite right, but it's a start. We will need to be able to determine the distinction between losing focus to another control within our app, and losing focus to another app. * added support for disabled and readonly states in the editor. This is accomplished by having flags set by the client, and letting the rules system deal with those flags. The flags I added are: TEXT_EDITOR_FLAG_PLAINTEXT 0x01 // only plain text editing is allowed TEXT_EDITOR_FLAG_SINGLELINE 0x02 // enter key and CR-LF handled specially TEXT_EDITOR_FLAG_PASSWORD 0x04 // text is not entered into content, only a representative character TEXT_EDITOR_FLAG_READONLY 0x08 // editing events are disabled. Editor may still accept focus. TEXT_EDITOR_FLAG_DISALBED 0x10 // all events are disabled (like scrolling). Editor will not accept focus. * added WillInsertBreak/DidInsertBreak into text rules, so flags could be checked. This gets us readonly, disabled, and single line behavior. * cleaned up the code that allocates, registers, and destroys event listeners. Thanks to Kin and Simon for cleaning up the ownership model on the listeners, it was a big help. * added support for a max text length. You can now tell the text editor, be no bigger than n characters.
1999-05-29 01:24:18 +04:00
-I$(PUBLIC)\pref \
-I$(PUBLIC)\txmgr \
-I$(PUBLIC)\netlib \
-I$(PUBLIC)\pref \
1998-11-11 23:44:02 +03:00
-I$(PUBLIC)\dom
1998-11-11 06:34:37 +03:00
MAKE_OBJ_TYPE = DLL
DLLNAME = ender
DLL=.\$(OBJDIR)\$(DLLNAME).dll
LCFLAGS = \
$(LCFLAGS) \
$(DEFINES) \
$(NULL)
# These are the libraries we need to link with to create the dll
LLIBS= \
1999-05-26 05:38:36 +04:00
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\plc3.lib \
$(DIST)\lib\raptorhtmlpars.lib \
1999-03-12 04:49:12 +03:00
$(DIST)\lib\raptorwidget_s.lib \
1998-11-11 06:34:37 +03:00
$(LIBNSPR)
!if "$(MOZ_BITS)"=="32" && defined(MOZ_DEBUG) && defined(GLOWCODE)
LLIBS=$(LLIBS) $(GLOWDIR)\glowcode.lib
!endif
include <$(DEPTH)\config\rules.mak>
libs:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
1998-11-11 06:34:37 +03:00
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
clobber::
rm -f $(DIST)\bin\components\$(DLLNAME).dll
1998-11-11 06:34:37 +03:00
rm -f $(DIST)\lib\$(DLLNAME).lib