# # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk # Solaris sh blows ifeq ($(OS_ARCH),SunOS) SHELL := ksh endif LIBRARY_NAME = gklayout EXPORT_LIBRARY = 1 IS_COMPONENT = 1 MODULE_NAME = nsLayoutModule LIBXUL_LIBRARY = 1 ifndef _MSC_VER FAIL_ON_WARNINGS = 1 endif # !_MSC_VER CPPSRCS = \ nsLayoutModule.cpp \ nsContentDLF.cpp \ nsLayoutStatics.cpp \ $(NULL) EXPORTS = \ nsLayoutCID.h \ nsContentDLF.h \ nsLayoutStatics.h \ $(NULL) SHARED_LIBRARY_LIBS = \ ../base/$(LIB_PREFIX)gkbase_s.$(LIB_SUFFIX) \ ../forms/$(LIB_PREFIX)gkforms_s.$(LIB_SUFFIX) \ ../generic/$(LIB_PREFIX)gkgeneric_s.$(LIB_SUFFIX) \ ../ipc/$(LIB_PREFIX)gkipc_s.$(LIB_SUFFIX) \ ../style/$(LIB_PREFIX)gkstyle_s.$(LIB_SUFFIX) \ ../tables/$(LIB_PREFIX)gktable_s.$(LIB_SUFFIX) \ ../xul/base/src/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \ ../mathml/$(LIB_PREFIX)gkmathml_s.$(LIB_SUFFIX) \ $(DEPTH)/content/base/src/$(LIB_PREFIX)gkconbase_s.$(LIB_SUFFIX) \ $(DEPTH)/content/canvas/src/$(LIB_PREFIX)gkconcvs_s.$(LIB_SUFFIX) \ $(DEPTH)/content/events/src/$(LIB_PREFIX)gkconevents_s.$(LIB_SUFFIX) \ $(DEPTH)/content/html/content/src/$(LIB_PREFIX)gkconhtmlcon_s.$(LIB_SUFFIX) \ $(DEPTH)/content/html/document/src/$(LIB_PREFIX)gkconhtmldoc_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xml/content/src/$(LIB_PREFIX)gkconxmlcon_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xml/document/src/$(LIB_PREFIX)gkconxmldoc_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xslt/src/base/$(LIB_PREFIX)txbase_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xslt/src/xml/$(LIB_PREFIX)txxml_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xslt/src/xpath/$(LIB_PREFIX)txxpath_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xslt/src/xslt/$(LIB_PREFIX)txxslt_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xbl/src/$(LIB_PREFIX)gkconxbl_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xul/document/src/$(LIB_PREFIX)gkconxuldoc_s.$(LIB_SUFFIX) \ $(DEPTH)/view/src/$(LIB_PREFIX)gkview_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/activities/src/$(LIB_PREFIX)dom_activities_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/base/$(LIB_PREFIX)jsdombase_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/battery/$(LIB_PREFIX)dom_battery_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/contacts/$(LIB_PREFIX)jsdomcontacts_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/alarm/$(LIB_PREFIX)domalarm_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/devicestorage/$(LIB_PREFIX)domdevicestorage_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/encoding/$(LIB_PREFIX)domencoding_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/file/$(LIB_PREFIX)domfile_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/power/$(LIB_PREFIX)dom_power_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/quota/$(LIB_PREFIX)domquota_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/settings/$(LIB_PREFIX)jsdomsettings_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/permission/$(LIB_PREFIX)jsdompermissionsettings_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/network/src/$(LIB_PREFIX)dom_network_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/media/$(LIB_PREFIX)dom_media_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/mobilemessage/src/$(LIB_PREFIX)dom_mobilemessage_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/src/events/$(LIB_PREFIX)jsdomevents_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/src/json/$(LIB_PREFIX)json_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/src/jsurl/$(LIB_PREFIX)jsurl_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/src/storage/$(LIB_PREFIX)jsdomstorage_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/src/offline/$(LIB_PREFIX)jsdomoffline_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/src/geolocation/$(LIB_PREFIX)jsdomgeolocation_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/audiochannel/$(LIB_PREFIX)domaudiochannel_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/src/notification/$(LIB_PREFIX)jsdomnotification_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/system/$(LIB_PREFIX)domsystem_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/workers/$(LIB_PREFIX)domworkers_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/indexedDB/$(LIB_PREFIX)dom_indexeddb_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/indexedDB/ipc/$(LIB_PREFIX)dom_indexeddb_ipc_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/browser-element/$(LIB_PREFIX)dom_browserelement_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/time/$(LIB_PREFIX)dom_time_s.$(LIB_SUFFIX) \ $(DEPTH)/editor/libeditor/text/$(LIB_PREFIX)texteditor_s.$(LIB_SUFFIX) \ $(DEPTH)/editor/libeditor/base/$(LIB_PREFIX)editorbase_s.$(LIB_SUFFIX) \ $(DEPTH)/parser/html/$(LIB_PREFIX)html5p_s.$(LIB_SUFFIX) \ $(DEPTH)/caps/src/$(LIB_PREFIX)caps_s.$(LIB_SUFFIX) \ $(DEPTH)/editor/libeditor/html/$(LIB_PREFIX)htmleditor_s.$(LIB_SUFFIX) \ $(DEPTH)/editor/txtsvc/src/$(LIB_PREFIX)txtsvc_s.$(LIB_SUFFIX) \ $(DEPTH)/content/mathml/content/src/$(LIB_PREFIX)gkcontentmathml_s.$(LIB_SUFFIX) \ $(NULL) ifneq (,$(filter qt gtk2,$(MOZ_WIDGET_TOOLKIT))) SHARED_LIBRARY_LIBS += \ $(DEPTH)/dom/system/unix/$(LIB_PREFIX)domsystemunix_s.$(LIB_SUFFIX) \ $(NULL) LOCAL_INCLUDES += \ -I$(topsrcdir)/dom/system/unix \ $(NULL) else ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT))) SHARED_LIBRARY_LIBS += \ $(DEPTH)/dom/system/windows/$(LIB_PREFIX)domsystemwindows_s.$(LIB_SUFFIX) \ $(NULL) LOCAL_INCLUDES += \ -I$(topsrcdir)/dom/system/windows \ $(NULL) else ifneq (,$(filter android,$(MOZ_WIDGET_TOOLKIT))) SHARED_LIBRARY_LIBS += \ $(DEPTH)/dom/system/android/$(LIB_PREFIX)domsystemandroid_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/plugins/base/android/$(LIB_PREFIX)gkpluginandroid_s.$(LIB_SUFFIX) \ $(NULL) LOCAL_INCLUDES += \ -I$(topsrcdir)/dom/system/android \ -I$(topsrcdir)/dom/system \ $(NULL) endif ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) #{ # include OMX decoder SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/omx/$(LIB_PREFIX)gkconomx_s.$(LIB_SUFFIX) \ $(NULL) endif #} ifdef MOZ_B2G_FM #{ SHARED_LIBRARY_LIBS += \ $(DEPTH)/dom/fm/$(LIB_PREFIX)domfm_s.$(LIB_SUFFIX) \ $(NULL) endif #} ifdef MOZ_B2G_BT #{ SHARED_LIBRARY_LIBS += $(DEPTH)/dom/bluetooth/$(LIB_PREFIX)dombluetooth_s.$(LIB_SUFFIX) endif #} SHARED_LIBRARY_LIBS += $(DEPTH)/dom/camera/$(LIB_PREFIX)domcamera_s.$(LIB_SUFFIX) ifdef MOZ_B2G_RIL #{ SHARED_LIBRARY_LIBS += \ $(DEPTH)/dom/system/gonk/$(LIB_PREFIX)domsystemgonk_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/telephony/$(LIB_PREFIX)domtelephony_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/icc/src/$(LIB_PREFIX)dom_icc_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/cellbroadcast/src/$(LIB_PREFIX)dom_cellbroadcast_s.$(LIB_SUFFIX) \ $(DEPTH)/dom/voicemail/$(LIB_PREFIX)domvoicemail_s.$(LIB_SUFFIX) \ $(NULL) endif #} ifdef MOZ_MEDIA SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/$(LIB_PREFIX)gkconmedia_s.$(LIB_SUFFIX) \ $(DEPTH)/content/media/webaudio/$(LIB_PREFIX)gkconwebaudio_s.$(LIB_SUFFIX) \ $(DEPTH)/content/media/webrtc/$(LIB_PREFIX)gkconwebrtc_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_OGG SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/ogg/$(LIB_PREFIX)gkconogg_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_RAW SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/raw/$(LIB_PREFIX)gkconraw_s.$(LIB_SUFFIX)\ $(NULL) endif ifdef MOZ_WEBM SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/webm/$(LIB_PREFIX)gkconwebm_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_WMF SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/wmf/$(LIB_PREFIX)gkconwmf_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_WAVE SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/wave/$(LIB_PREFIX)gkconwave_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_GSTREAMER SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/gstreamer/$(LIB_PREFIX)gkcongstreamer_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_MEDIA_PLUGINS SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/plugins/$(LIB_PREFIX)gkconmediaplugins_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_DASH SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/dash/$(LIB_PREFIX)gkcondash_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_WEBSPEECH SHARED_LIBRARY_LIBS += \ $(DEPTH)/content/media/webspeech/$(LIB_PREFIX)gkconwebspeech_s.$(LIB_SUFFIX) \ $(NULL) endif ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) INCLUDES += \ -I$(srcdir)/../../base/src \ -I$(srcdir)/../../html/content/src \ -I$(ANDROID_SOURCE)/dalvik/libnativehelper/include/nativehelper \ -I$(ANDROID_SOURCE)/frameworks/base/include/ \ -I$(ANDROID_SOURCE)/frameworks/base/include/binder/ \ -I$(ANDROID_SOURCE)/frameworks/base/include/utils/ \ -I$(ANDROID_SOURCE)/frameworks/base/include/media/ \ -I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright/openmax \ -I$(ANDROID_SOURCE)/frameworks/base/media/libstagefright/include \ $(NULL) EXTRA_DSO_LDOPTS += \ -lutils -lstagefright -lmedia -lstagefright_omx -lbinder -lui \ -lhardware -lcutils \ $(NULL) endif ifdef NS_PRINTING SHARED_LIBRARY_LIBS += \ ../printing/$(LIB_PREFIX)gkprinting_s.$(LIB_SUFFIX) \ $(NULL) endif ifdef MOZ_XUL SHARED_LIBRARY_LIBS += \ ../xul/tree/$(LIB_PREFIX)gkxultree_s.$(LIB_SUFFIX) \ ../xul/grid/$(LIB_PREFIX)gkxulgrid_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xul/content/src/$(LIB_PREFIX)gkconxulcon_s.$(LIB_SUFFIX) \ $(DEPTH)/content/xul/templates/src/$(LIB_PREFIX)gkconxultmpl_s.$(LIB_SUFFIX) \ $(NULL) endif LOCAL_INCLUDES += \ -I$(srcdir)/../inspector/src \ $(NULL) SHARED_LIBRARY_LIBS += ../inspector/src/$(LIB_PREFIX)inspector_s.$(LIB_SUFFIX) SHARED_LIBRARY_LIBS += \ ../svg/$(LIB_PREFIX)gksvgbase_s.$(LIB_SUFFIX) \ $(DEPTH)/content/svg/document/src/$(LIB_PREFIX)gkconsvgdoc_s.$(LIB_SUFFIX) \ $(DEPTH)/content/svg/content/src/$(LIB_PREFIX)gkcontentsvg_s.$(LIB_SUFFIX) \ $(DEPTH)/content/smil/$(LIB_PREFIX)gkconsmil_s.$(LIB_SUFFIX) \ $(NULL) ifdef ENABLE_EDITOR_API_LOG DEFINES += -DENABLE_EDITOR_API_LOG endif SHARED_LIBRARY_LIBS += \ $(DEPTH)/js/xpconnect/src/$(LIB_PREFIX)xpconnect_s.$(LIB_SUFFIX) ifdef MOZ_GSTREAMER EXTRA_DSO_LDOPTS += $(GSTREAMER_LIBS) endif include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk LOCAL_INCLUDES += -I$(srcdir)/../base \ -I$(srcdir)/../generic \ -I$(srcdir)/../forms \ -I$(srcdir)/../tables \ -I$(srcdir)/../style \ -I$(srcdir)/../xul/base/src \ -I$(srcdir)/../mathml \ -I$(topsrcdir)/content/base/src \ -I$(topsrcdir)/content/canvas/src \ -I$(topsrcdir)/content/html/content/src \ -I$(topsrcdir)/content/html/document/src \ -I$(topsrcdir)/content/xslt/src/base \ -I$(topsrcdir)/content/xslt/src/xml \ -I$(topsrcdir)/content/xslt/src/xpath \ -I$(topsrcdir)/content/xslt/src/xslt \ -I$(topsrcdir)/content/xul/content/src \ -I$(topsrcdir)/content/xul/document/src \ -I$(topsrcdir)/content/xul/templates/src \ -I$(topsrcdir)/content/events/src \ -I$(topsrcdir)/content/xbl/src \ -I$(topsrcdir)/view/src \ -I$(topsrcdir)/dom/base \ -I$(topsrcdir)/dom/file \ -I$(topsrcdir)/dom/src/json \ -I$(topsrcdir)/dom/src/jsurl \ -I$(topsrcdir)/dom/src/storage \ -I$(topsrcdir)/dom/src/offline \ -I$(topsrcdir)/dom/src/geolocation \ -I$(topsrcdir)/dom/audiochannel \ -I$(topsrcdir)/dom/contacts \ -I$(topsrcdir)/dom/settings \ -I$(topsrcdir)/dom/permission \ -I$(topsrcdir)/dom/telephony \ -I$(topsrcdir)/dom/media \ -I. \ -I$(topsrcdir)/editor/libeditor/base \ -I$(topsrcdir)/editor/libeditor/text \ -I$(topsrcdir)/editor/libeditor/html \ -I$(topsrcdir)/editor/txmgr/src \ -I$(topsrcdir)/editor/txtsvc/src \ -I$(topsrcdir)/editor/composer/src \ -I$(topsrcdir)/js/xpconnect/src \ -I$(topsrcdir)/js/xpconnect/loader \ -I$(topsrcdir)/caps/include \ -I$(topsrcdir)/netwerk/base/src \ -I$(topsrcdir)/content/svg/content/src \ -I$(topsrcdir)/extensions/cookie \ -I$(topsrcdir)/netwerk/cookie \ $(NULL) ifdef MOZ_GSTREAMER LOCAL_INCLUDES += $(GSTREAMER_CFLAGS) endif ifdef MOZ_B2G_RIL #{ LOCAL_INCLUDES += -I$(topsrcdir)/dom/system/gonk endif #} ifdef MOZ_B2G_FM #{ LOCAL_INCLUDES += -I$(topsrcdir)/dom/fm endif #} ifdef MOZ_B2G_BT #{ LOCAL_INCLUDES += -I$(topsrcdir)/dom/bluetooth endif #} LOCAL_INCLUDES += -I$(topsrcdir)/dom/camera DEFINES += -D_IMPL_NS_LAYOUT