2001-04-06 03:51:30 +04: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/
|
|
|
|
#
|
|
|
|
# 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
|
2001-10-08 08:02:30 +04:00
|
|
|
EXPORT_LIBRARY = 1
|
2001-04-06 03:51:30 +04:00
|
|
|
IS_COMPONENT = 1
|
2001-10-08 08:02:30 +04:00
|
|
|
MODULE_NAME = nsEditorModule
|
|
|
|
|
2002-01-01 03:03:57 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
EXTRA_DSO_LIBS = gkgfx
|
|
|
|
endif
|
|
|
|
|
2001-04-06 03:51:30 +04:00
|
|
|
EXTRA_DSO_LDOPTS = \
|
2002-01-01 03:03:57 +03:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2001-10-23 00:44:02 +04:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2001-10-27 18:47:08 +04:00
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
2001-04-06 03:51:30 +04:00
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NULL)
|
2001-12-17 10:14:49 +03:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
|
|
|
dom \
|
|
|
|
layout \
|
|
|
|
content \
|
|
|
|
txmgr \
|
|
|
|
htmlparser \
|
2002-06-12 00:43:49 +04:00
|
|
|
necko \
|
2001-12-17 10:14:49 +03:00
|
|
|
appshell \
|
|
|
|
xuldoc \
|
2002-02-02 08:13:56 +03:00
|
|
|
commandhandler \
|
2002-08-27 00:38:52 +04:00
|
|
|
gfx \
|
|
|
|
widget \
|
|
|
|
txtsvc \
|
2001-12-17 10:14:49 +03:00
|
|
|
$(NULL)
|
2001-04-06 03:51:30 +04:00
|
|
|
|
2001-11-02 01:29:13 +03:00
|
|
|
ifdef MOZ_PLAINTEXT_EDITOR_ONLY
|
2001-04-06 03:51:30 +04:00
|
|
|
# We're only building the Core PlainText Editor Source so just include
|
|
|
|
# the plain text registration file.
|
2002-01-16 08:10:09 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LIBRARY_NAME = texteditor
|
|
|
|
endif
|
2001-04-06 03:51:30 +04:00
|
|
|
CPPSRCS = nsTextEditorReg.cpp
|
|
|
|
SHARED_LIBRARY_LIBS = $(NULL)
|
|
|
|
|
|
|
|
else
|
2001-11-02 01:29:13 +03:00
|
|
|
# We're building both plain and html editing
|
2001-04-06 03:51:30 +04:00
|
|
|
CPPSRCS = nsEditorRegistration.cpp
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
2001-12-15 02:49:04 +03:00
|
|
|
../html/$(LIB_PREFIX)htmleditor_s.$(LIB_SUFFIX) \
|
2002-08-27 00:38:52 +04:00
|
|
|
../../txtsvc/src/$(LIB_PREFIX)txtsvc_s.$(LIB_SUFFIX) \
|
2001-04-06 03:51:30 +04:00
|
|
|
$(NULL)
|
2001-12-15 02:49:04 +03:00
|
|
|
# ../composer/src/$(LIB_PREFIX)composer_s.$(LIB_SUFFIX)
|
2001-04-06 03:51:30 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
#ifndef MKSHLIB_FORCE_ALL
|
|
|
|
#CPPSRCS += dlldeps.cpp
|
|
|
|
#endif
|
|
|
|
|
|
|
|
# These libraries always get built:
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2001-12-15 02:49:04 +03:00
|
|
|
../text/$(LIB_PREFIX)texteditor_s.$(LIB_SUFFIX) \
|
|
|
|
../base/$(LIB_PREFIX)editorbase_s.$(LIB_SUFFIX) \
|
2001-04-06 03:51:30 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef ENABLE_EDITOR_API_LOG
|
|
|
|
DEFINES += -DENABLE_EDITOR_API_LOG
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2001-10-05 05:57:05 +04:00
|
|
|
INCLUDES += -I$(topsrcdir)/editor/libeditor/base \
|
|
|
|
-I$(topsrcdir)/editor/libeditor/text \
|
|
|
|
-I$(topsrcdir)/editor/libeditor/html \
|
2002-08-27 00:38:52 +04:00
|
|
|
-I$(topsrcdir)/editor/txtsvc/src \
|
2001-10-05 05:57:05 +04:00
|
|
|
-I$(topsrcdir)/editor/composer/src
|
2001-04-06 03:51:30 +04:00
|
|
|
|