pjs/editor/libeditor/build/makefile.win

118 строки
2.9 KiB
Plaintext

#!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=..\..\..
MODULE = editor
REQUIRES = string \
xpcom \
dom \
layout \
content \
txmgr \
htmlparser \
necko \
appshell \
content_xul \
$(NULL)
include <$(DEPTH)/config/config.mak>
IS_COMPONENT = 1
MODULE_NAME = nsEditorModule
# 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)
CPP_OBJS = \
$(CPP_OBJS) \
.\$(OBJDIR)\nsTextEditorReg.obj \
$(NULL)
LIBRARY_NAME = texteditor
!else
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
LIBRARY_NAME = editor
!endif
LINCS = \
-I..\base \
-I..\text \
$(NULL)
LCFLAGS = \
$(LCFLAGS) \
$(DEFINES) \
$(NULL)
# These are the base editor libraries we need to link with to create the dll
SUB_LIBRARIES = \
$(DIST)\lib\libtexteditor_s.lib \
$(DIST)\lib\libbaseeditor_s.lib \
$(NULL)
!if !defined(MOZ_BUILD_PLAINTEXT_EDITOR_CORE_ONLY)
LINCS = \
$(LINCS) \
-I..\html \
$(NULL)
# These are the html editor libraries we need to link with to create the dll
SUB_LIBRARIES = \
$(DIST)\lib\libhtmleditor_s.lib \
$(SUB_LIBRARIES) \
$(NULL)
!endif
# These are the external libraries we need to link with to create the dll
LLIBS = \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\unicharutil_s.lib \
$(DIST)\lib\js3250.lib \
$(DIST)\lib\gkgfx.lib \
$(LIBNSPR) \
$(NULL)
include <$(DEPTH)\config\rules.mak>