2002-09-28 04:38:20 +04:00
|
|
|
#
|
2005-02-01 20:07:35 +03:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2002-09-28 04:38:20 +04:00
|
|
|
#
|
2005-02-01 20:07:35 +03:00
|
|
|
# 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.
|
2002-09-28 04:38:20 +04:00
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2005-02-01 20:07:35 +03:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
2002-09-28 04:38:20 +04:00
|
|
|
#
|
2005-02-01 20:07:35 +03: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.
|
2002-09-28 04:38:20 +04:00
|
|
|
#
|
2005-02-01 20:07:35 +03:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2002-09-28 04:38:20 +04:00
|
|
|
|
|
|
|
DEPTH=../../..
|
|
|
|
topsrcdir=@top_srcdir@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
VPATH=@srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = toolkitcomps
|
|
|
|
LIBRARY_NAME = toolkitcomps
|
2002-10-05 06:54:35 +04:00
|
|
|
SHORT_LIBNAME = tkitcmps
|
2002-09-28 04:38:20 +04:00
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
2002-11-24 08:59:39 +03:00
|
|
|
MODULE_NAME = nsToolkitCompsModule
|
2005-03-19 00:24:05 +03:00
|
|
|
LIBXUL_LIBRARY = 1
|
2002-09-28 04:38:20 +04:00
|
|
|
|
2005-09-16 15:52:56 +04:00
|
|
|
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),windows gtk gtk2))
|
|
|
|
ALERTS_SERVICE=1
|
|
|
|
DEFINES += -DALERTS_SERVICE
|
|
|
|
endif
|
|
|
|
|
2003-08-12 09:22:10 +04:00
|
|
|
REQUIRES = \
|
|
|
|
xpcom \
|
|
|
|
string \
|
2004-10-29 23:28:38 +04:00
|
|
|
widget \
|
2003-08-12 09:22:10 +04:00
|
|
|
layout \
|
|
|
|
dom \
|
|
|
|
pref \
|
|
|
|
rdf \
|
|
|
|
intl \
|
|
|
|
docshell \
|
|
|
|
autocomplete \
|
2004-10-29 23:28:38 +04:00
|
|
|
appcomps \
|
2003-11-27 03:54:33 +03:00
|
|
|
downloads \
|
2004-11-30 11:23:02 +03:00
|
|
|
fastfind \
|
2003-11-27 03:54:33 +03:00
|
|
|
mimetype \
|
|
|
|
webbrowserpersist \
|
|
|
|
progressDlg \
|
2003-08-12 09:22:10 +04:00
|
|
|
necko \
|
|
|
|
windowwatcher \
|
|
|
|
uriloader \
|
2003-12-09 08:55:09 +03:00
|
|
|
xpinstall \
|
2004-10-29 23:28:38 +04:00
|
|
|
xulapp \
|
|
|
|
embed_base \
|
2004-11-30 11:23:02 +03:00
|
|
|
content \
|
|
|
|
find \
|
|
|
|
gfx \
|
|
|
|
locale \
|
|
|
|
unicharutil \
|
|
|
|
xuldoc \
|
2005-09-16 15:52:56 +04:00
|
|
|
alerts \
|
2006-05-06 01:42:47 +04:00
|
|
|
url-classifier \
|
2006-05-06 08:13:20 +04:00
|
|
|
feeds \
|
2003-08-12 09:22:10 +04:00
|
|
|
$(NULL)
|
2002-09-28 04:38:20 +04:00
|
|
|
|
|
|
|
EXPORTS = nsToolkitCompsCID.h
|
|
|
|
|
2005-04-06 03:29:58 +04:00
|
|
|
CPPSRCS = nsToolkitCompsModule.cpp
|
2002-09-28 04:38:20 +04:00
|
|
|
|
|
|
|
LOCAL_INCLUDES = \
|
2003-11-27 03:54:33 +03:00
|
|
|
-I$(srcdir)/../downloads/src \
|
2004-10-29 23:28:38 +04:00
|
|
|
-I$(srcdir)/../startup/src \
|
2004-11-30 11:23:02 +03:00
|
|
|
-I$(srcdir)/../typeaheadfind/src \
|
2005-09-16 15:52:56 +04:00
|
|
|
-I$(srcdir)/../alerts/src \
|
2006-05-06 01:42:47 +04:00
|
|
|
-I$(srcdir)/../url-classifier/src \
|
2006-05-06 08:13:20 +04:00
|
|
|
-I$(srcdir)/../feeds/src \
|
2003-08-12 09:22:10 +04:00
|
|
|
$(NULL)
|
2002-09-28 04:38:20 +04:00
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
2004-10-29 23:28:38 +04:00
|
|
|
../startup/src/$(LIB_PREFIX)appstartup_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-04-14 11:04:53 +04:00
|
|
|
ifndef MOZ_SUITE
|
|
|
|
# XXX Suite isn't ready to build this just yet
|
2005-07-28 00:42:44 +04:00
|
|
|
ifdef MOZ_XPINSTALL
|
2006-02-14 19:12:53 +03:00
|
|
|
SHARED_LIBRARY_LIBS += ../downloads/src/$(LIB_PREFIX)download_s.$(LIB_SUFFIX)
|
2005-07-28 00:42:44 +04:00
|
|
|
endif
|
2006-04-14 11:04:53 +04:00
|
|
|
endif
|
2005-07-28 00:42:44 +04:00
|
|
|
|
2005-09-16 15:52:56 +04:00
|
|
|
ifdef ALERTS_SERVICE
|
2006-02-14 19:12:53 +03:00
|
|
|
SHARED_LIBRARY_LIBS += ../alerts/src/$(LIB_PREFIX)alerts_s.$(LIB_SUFFIX)
|
2005-03-15 22:41:41 +03:00
|
|
|
endif
|
|
|
|
|
2006-05-06 01:42:47 +04:00
|
|
|
ifdef MOZ_URL_CLASSIFIER
|
|
|
|
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)urlclassifier_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
2006-05-06 08:13:20 +04:00
|
|
|
ifdef MOZ_FEEDS
|
|
|
|
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)feed_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
2006-04-14 11:04:53 +04:00
|
|
|
ifndef MOZ_SUITE
|
|
|
|
# XXX Suite isn't ready to build this just yet
|
2006-03-02 22:45:56 +03:00
|
|
|
SHARED_LIBRARY_LIBS += ../typeaheadfind/src/$(LIB_PREFIX)fastfind_s.$(LIB_SUFFIX)
|
2002-09-28 04:38:20 +04:00
|
|
|
EXTRA_DSO_LIBS = gkgfx
|
2006-04-14 11:04:53 +04:00
|
|
|
endif
|
2002-09-28 04:38:20 +04:00
|
|
|
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
2003-01-10 02:41:15 +03:00
|
|
|
$(LIBS_DIR) \
|
2002-09-28 04:38:20 +04:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2004-10-29 23:28:38 +04:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
EXTRA_DSO_LDOPTS += $(TK_LIBS)
|
|
|
|
endif
|
|
|
|
|
2006-07-03 00:47:53 +04:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,shell32 ole32)
|
|
|
|
endif
|
|
|
|
|
2002-09-28 04:38:20 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|