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
|
|
|
|
2010-05-11 21:27:36 +04:00
|
|
|
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),windows gtk2 android))
|
2005-09-16 15:52:56 +04:00
|
|
|
ALERTS_SERVICE=1
|
|
|
|
DEFINES += -DALERTS_SERVICE
|
|
|
|
endif
|
|
|
|
|
2002-09-28 04:38:20 +04:00
|
|
|
|
2008-02-18 11:50:04 +03:00
|
|
|
|
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
|
|
|
|
2008-07-07 00:37:07 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2002-09-28 04:38:20 +04:00
|
|
|
LOCAL_INCLUDES = \
|
2003-11-27 03:54:33 +03:00
|
|
|
-I$(srcdir)/../downloads/src \
|
2010-03-03 14:19:57 +03:00
|
|
|
-I$(srcdir)/../feeds/src \
|
2010-04-29 22:35:39 +04:00
|
|
|
-I$(srcdir)/../find/src \
|
|
|
|
-I$(srcdir)/../intl \
|
2004-10-29 23:28:38 +04:00
|
|
|
-I$(srcdir)/../startup/src \
|
2010-03-03 14:19:57 +03:00
|
|
|
-I$(srcdir)/../statusfilter \
|
2004-11-30 11:23:02 +03:00
|
|
|
-I$(srcdir)/../typeaheadfind/src \
|
2006-05-06 01:42:47 +04:00
|
|
|
-I$(srcdir)/../url-classifier/src \
|
2003-08-12 09:22:10 +04:00
|
|
|
$(NULL)
|
2002-09-28 04:38:20 +04:00
|
|
|
|
2007-04-25 07:10:59 +04:00
|
|
|
ifdef ALERTS_SERVICE
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/../alerts/src \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2002-09-28 04:38:20 +04:00
|
|
|
SHARED_LIBRARY_LIBS = \
|
2010-04-29 22:35:39 +04:00
|
|
|
../find/src/$(LIB_PREFIX)mozfind_s.$(LIB_SUFFIX) \
|
2010-03-03 14:19:57 +03:00
|
|
|
../typeaheadfind/src/$(LIB_PREFIX)fastfind_s.$(LIB_SUFFIX) \
|
2004-10-29 23:28:38 +04:00
|
|
|
../startup/src/$(LIB_PREFIX)appstartup_s.$(LIB_SUFFIX) \
|
2010-03-03 14:19:57 +03:00
|
|
|
../statusfilter/$(LIB_PREFIX)mozbrwsr_s.$(LIB_SUFFIX) \
|
2004-10-29 23:28:38 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2008-04-09 10:25:43 +04:00
|
|
|
ifndef MOZ_DISABLE_PARENTAL_CONTROLS
|
2008-03-29 10:12:13 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
SHARED_LIBRARY_LIBS += ../parentalcontrols/src/$(LIB_PREFIX)parentalcontrols_s.$(LIB_SUFFIX)
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/../parentalcontrols/src \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2008-04-09 10:25:43 +04:00
|
|
|
endif
|
2008-03-29 10:12:13 +03:00
|
|
|
|
2006-08-15 02:36:15 +04:00
|
|
|
ifdef MOZ_RDF
|
2010-04-29 22:35:39 +04:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
../downloads/src/$(LIB_PREFIX)download_s.$(LIB_SUFFIX) \
|
|
|
|
../intl/$(LIB_PREFIX)intl_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2005-07-28 00:42:44 +04:00
|
|
|
endif
|
|
|
|
|
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
|
2007-04-25 07:10:59 +04:00
|
|
|
ifdef ALERTS_SERVICE_MAC
|
|
|
|
SHARED_LIBRARY_LIBS += ../alerts/src/mac/$(LIB_PREFIX)alerts_s.$(LIB_SUFFIX)
|
|
|
|
SHARED_LIBRARY_LIBS += ../alerts/src/mac/growl/$(LIB_PREFIX)growl_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
2005-03-15 22:41:41 +03:00
|
|
|
|
2006-05-06 01:42:47 +04:00
|
|
|
ifdef MOZ_URL_CLASSIFIER
|
2007-02-03 04:19:04 +03:00
|
|
|
SHARED_LIBRARY_LIBS += ../url-classifier/src/$(LIB_PREFIX)urlclassifier_s.$(LIB_SUFFIX)
|
2007-07-26 10:38:43 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(ZLIB_LIBS)
|
2006-05-06 01:42:47 +04:00
|
|
|
endif
|
|
|
|
|
2006-05-06 08:13:20 +04:00
|
|
|
ifdef MOZ_FEEDS
|
2007-02-03 04:19:04 +03:00
|
|
|
SHARED_LIBRARY_LIBS += ../feeds/src/$(LIB_PREFIX)feed_s.$(LIB_SUFFIX)
|
2006-05-06 08:13:20 +04:00
|
|
|
endif
|
|
|
|
|
2002-09-28 04:38:20 +04:00
|
|
|
EXTRA_DSO_LIBS = gkgfx
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2009-09-19 06:59:53 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2004-10-29 23:28:38 +04:00
|
|
|
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
|