зеркало из https://github.com/mozilla/pjs.git
128 строки
3.1 KiB
Makefile
128 строки
3.1 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
|
|
|
|
BUILD_DATE = gbdate.h
|
|
|
|
MODULE = layout
|
|
LIBRARY_NAME = raptorhtml
|
|
SHORT_LIBNAME = nglayout
|
|
IS_COMPONENT = 1
|
|
EXTRA_DSO_LIBS = jsdom
|
|
|
|
ifeq ($(USE_SHORT_LIBNAME),1)
|
|
EXTRA_DSO_LIBS += nggfx
|
|
else
|
|
EXTRA_DSO_LIBS += raptorgfx
|
|
endif
|
|
|
|
REQUIRES = xpcom raptor dom js
|
|
|
|
CPPSRCS = \
|
|
nsLayoutDLF.cpp \
|
|
nsLayoutFactory.cpp \
|
|
nsLayoutModule.cpp \
|
|
$(NULL)
|
|
|
|
ifndef MKSHLIB_FORCE_ALL
|
|
CPPSRCS += dlldeps.cpp
|
|
endif
|
|
|
|
EXPORTS = nsLayoutCID.h $(BUILD_DATE)
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
|
$(DIST)/lib/libraptorevents_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorhtmlbase_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libnglhtmlcon_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorhtmldoc_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorhtmlforms_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorhtmlstyle_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorhtmltable_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorxmlcontent_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorxmldoc_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorxulcontent_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorxulbase_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorxbl_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorlayout_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
|
|
ifdef MOZ_PERF_METRICS
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DIST)/lib/libmozutil_s.$(LIB_SUFFIX) \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifdef MOZ_MATHML
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DIST)/lib/libraptormathmlcontent_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptormathmlbase_s.$(LIB_SUFFIX) \
|
|
$(NSNULL)
|
|
endif
|
|
|
|
ifdef MOZ_SVG
|
|
SHARED_LIBRARY_LIBS += \
|
|
$(DIST)/lib/libraptorsvgcontent_s.$(LIB_SUFFIX) \
|
|
$(DIST)/lib/libraptorsvgbase_s.$(LIB_SUFFIX) \
|
|
$(NSNULL)
|
|
endif
|
|
|
|
EXTRA_DSO_LDOPTS = \
|
|
-L$(DIST)/bin \
|
|
$(EXTRA_DSO_LIBS) \
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
$(MOZ_JS_LIBS) \
|
|
$(NULL)
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
EXPORT_OBJS = 1
|
|
endif
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
DEFINES += -D_IMPL_NS_HTML
|
|
|
|
INCLUDES += -I$(srcdir)/../html/base/src \
|
|
-I$(srcdir)/../xul/content/src
|
|
|
|
ifdef MOZ_MATHML
|
|
INCLUDES += -I$(srcdir)/../mathml/content/src
|
|
endif
|
|
|
|
ifdef MOZ_SVG
|
|
INCLUDES += -I$(srcdir)/../svg/content/src
|
|
endif
|
|
|
|
$(BUILD_DATE):
|
|
$(RM) $@
|
|
$(PERL) $(srcdir)/gbdate.pl > $@
|
|
|
|
# To prevent ILink from crashing
|
|
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
|
OS_DLLFLAGS := ilink /FREE /NOE /NOL /DLL /O:nglayout.dll /M /INC:_dllentry
|
|
endif
|
|
|