2004-04-19 02:01:16 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla 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/MPL/
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2001-02-07 06:09:15 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
2004-04-19 02:01:16 +04:00
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications, Inc.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
2001-02-07 06:09:15 +03:00
|
|
|
# Contributor(s):
|
2004-04-19 02:01:16 +04:00
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
2001-02-07 06:09:15 +03:00
|
|
|
|
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = embedcomponents
|
|
|
|
LIBRARY_NAME = embedcomponents
|
2001-04-28 23:48:12 +04:00
|
|
|
EXPORT_LIBRARY = 1
|
2002-01-16 08:10:09 +03:00
|
|
|
ifneq ($(OS_ARCH),WINNT)
|
2001-02-22 07:33:59 +03:00
|
|
|
SHORT_LIBNAME = embedcmp
|
2002-01-16 08:10:09 +03:00
|
|
|
endif
|
2001-02-07 06:09:15 +03:00
|
|
|
IS_COMPONENT = 1
|
2001-06-21 00:21:49 +04:00
|
|
|
MODULE_NAME = embedcomponents
|
2002-12-28 04:15:07 +03:00
|
|
|
GRE_MODULE = 1
|
2004-12-15 07:07:01 +03:00
|
|
|
LIBXUL_LIBRARY = 1
|
2002-12-28 04:15:07 +03:00
|
|
|
|
2001-12-18 12:14:29 +03:00
|
|
|
ifdef MOZ_PERF_METRICS
|
|
|
|
EXTRA_DSO_LIBS = mozutil_s
|
|
|
|
endif
|
|
|
|
|
2004-01-07 16:37:00 +03:00
|
|
|
PACKAGE_FILE = embedcomponents.pkg
|
|
|
|
PACKAGE_VARS += MOZ_PROFILESHARING
|
|
|
|
|
2001-09-18 17:41:47 +04:00
|
|
|
REQUIRES = js \
|
|
|
|
xpcom \
|
|
|
|
string \
|
|
|
|
windowwatcher \
|
2002-05-02 16:38:43 +04:00
|
|
|
webbrwsr \
|
|
|
|
gfx \
|
2006-02-11 00:37:25 +03:00
|
|
|
widget \
|
2001-11-01 17:39:53 +03:00
|
|
|
webbrowserpersist \
|
2001-09-18 17:41:47 +04:00
|
|
|
jsconsole \
|
|
|
|
find \
|
2002-02-16 07:17:07 +03:00
|
|
|
htmlparser \
|
2001-09-18 17:41:47 +04:00
|
|
|
embed_base \
|
|
|
|
dom \
|
2002-02-16 07:17:07 +03:00
|
|
|
lwbrk \
|
2001-11-01 17:39:53 +03:00
|
|
|
mimetype \
|
|
|
|
content \
|
2004-12-08 22:41:48 +03:00
|
|
|
layout \
|
2001-11-01 17:39:53 +03:00
|
|
|
uriloader \
|
|
|
|
necko \
|
2002-02-02 08:13:56 +03:00
|
|
|
commandhandler \
|
2002-02-02 10:49:04 +03:00
|
|
|
xuldoc \
|
2001-09-18 17:41:47 +04:00
|
|
|
$(NULL)
|
2001-02-07 06:09:15 +03:00
|
|
|
|
2003-05-02 07:59:23 +04:00
|
|
|
ifdef MOZ_PROFILESHARING
|
|
|
|
REQUIRES += profilesharingsetup
|
|
|
|
endif
|
|
|
|
|
2005-04-06 03:28:18 +04:00
|
|
|
CPPSRCS = nsEmbeddingModule.cpp
|
2001-02-07 06:09:15 +03:00
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
2006-02-14 20:02:21 +03:00
|
|
|
../windowwatcher/src/$(LIB_PREFIX)windowwatcher_s.$(LIB_SUFFIX) \
|
|
|
|
../appstartup/src/$(LIB_PREFIX)appstartupnotifier_s.$(LIB_SUFFIX) \
|
|
|
|
../find/src/$(LIB_PREFIX)find_s.$(LIB_SUFFIX) \
|
|
|
|
../webbrowserpersist/src/$(LIB_PREFIX)webbrowserpersist_s.$(LIB_SUFFIX) \
|
|
|
|
../commandhandler/src/$(LIB_PREFIX)commandhandler_s.$(LIB_SUFFIX) \
|
2001-02-07 06:09:15 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2003-04-11 04:56:27 +04:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2006-02-14 20:02:21 +03:00
|
|
|
../jsconsole/src/$(LIB_PREFIX)jsconsole_s.$(LIB_SUFFIX) \
|
2003-04-11 04:56:27 +04:00
|
|
|
$(NULL)
|
2005-04-29 17:33:49 +04:00
|
|
|
|
2005-09-16 06:25:37 +04:00
|
|
|
ifdef NS_PRINTING
|
2005-04-29 17:33:49 +04:00
|
|
|
ifndef WINCE
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2006-02-14 20:02:21 +03:00
|
|
|
../printingui/src/$(LIB_PREFIX)printingui_s.$(LIB_SUFFIX) \
|
2005-04-29 17:33:49 +04:00
|
|
|
$(NULL)
|
|
|
|
endif
|
2005-09-16 06:25:37 +04:00
|
|
|
endif
|
2005-04-29 17:33:49 +04:00
|
|
|
|
2003-04-11 04:56:27 +04:00
|
|
|
endif
|
|
|
|
|
2001-02-07 06:09:15 +03:00
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I$(srcdir)/../windowwatcher/src \
|
2001-03-20 00:57:57 +03:00
|
|
|
-I$(srcdir)/../appstartup/src \
|
2001-05-11 05:52:11 +04:00
|
|
|
-I$(srcdir)/../jsconsole/src \
|
2001-04-28 01:11:03 +04:00
|
|
|
-I$(srcdir)/../find/src \
|
2001-11-01 17:39:53 +03:00
|
|
|
-I$(srcdir)/../webbrowserpersist/src \
|
2002-02-02 10:48:06 +03:00
|
|
|
-I$(srcdir)/../commandhandler/src \
|
2001-02-07 06:09:15 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2003-05-02 07:59:23 +04:00
|
|
|
ifdef MOZ_PROFILESHARING
|
|
|
|
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)profilesharingsetup_s.$(LIB_SUFFIX)
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../profilesharingsetup/src
|
|
|
|
endif
|
|
|
|
|
2002-05-02 16:38:43 +04:00
|
|
|
ifeq ($(MOZ_GFX_TOOLKIT),os2)
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/os2
|
|
|
|
endif
|
|
|
|
|
2003-02-19 03:22:42 +03:00
|
|
|
ifneq (,$(filter gtk gtk2 xlib beos photon qt, $(MOZ_WIDGET_TOOLKIT)))
|
2002-05-07 16:03:37 +04:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/unixshared
|
2002-05-02 16:38:43 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_GFX_TOOLKIT),windows)
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/win
|
2005-01-30 07:03:53 +03:00
|
|
|
ifneq ($(OS_ARCH), WINCE)
|
2003-03-08 08:57:15 +03:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,winspool comdlg32)
|
2002-05-02 16:38:43 +04:00
|
|
|
endif
|
2005-01-30 07:03:53 +03:00
|
|
|
endif
|
2002-05-02 16:38:43 +04:00
|
|
|
|
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/mac
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DSO_LIBS = gkgfx
|
|
|
|
|
2001-02-07 06:09:15 +03:00
|
|
|
EXTRA_DSO_LDOPTS = \
|
2001-12-19 11:43:57 +03:00
|
|
|
$(LIBS_DIR) \
|
2001-02-07 06:09:15 +03:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2002-01-16 11:48:51 +03:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2001-02-07 06:09:15 +03:00
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2002-05-02 16:38:43 +04:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2001-02-07 06:09:15 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|