2003-11-15 10:43:50 +03:00
|
|
|
#
|
2005-02-01 20:07:35 +03:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2003-11-15 10:43:50 +03: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.
|
2003-11-15 10:43:50 +03: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):
|
2003-11-15 10:43:50 +03: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.
|
2003-11-15 10:43:50 +03:00
|
|
|
#
|
2005-02-01 20:07:35 +03:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2003-11-15 10:43:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2003-11-15 22:33:35 +03:00
|
|
|
CHROME_DEPS = buildconfig.html
|
|
|
|
|
2003-11-15 10:43:50 +03:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2008-09-22 22:00:38 +04:00
|
|
|
DEFINES += \
|
|
|
|
-Dtarget="$(target)" \
|
|
|
|
-Dac_configure_args="$(ac_configure_args)" \
|
|
|
|
-DCC="$(CC)" \
|
|
|
|
-DCC_VERSION="$(CC_VERSION)" \
|
|
|
|
-DCFLAGS="$(CFLAGS)" \
|
|
|
|
-DCXX="$(CXX)" \
|
|
|
|
-DCXX_VERSION="$(CXX_VERSION)" \
|
|
|
|
-DCXXFLAGS="$(CXXFLAGS)" \
|
|
|
|
-DCPPFLAGS="$(CPPFLAGS)" \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-12-20 17:25:48 +03:00
|
|
|
MOZ_SOURCE_STAMP ?= $(shell hg -R $(topsrcdir) parent --template="{node|short}\n" 2>/dev/null)
|
|
|
|
ifdef MOZ_SOURCE_STAMP
|
|
|
|
DEFINES += -DSOURCE_CHANGESET="$(MOZ_SOURCE_STAMP)"
|
2008-09-22 22:00:38 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
# strip a trailing slash from the repo URL because it's not always present,
|
|
|
|
# and we want to construct a working URL in buildconfig.html
|
|
|
|
# make+shell+sed = awful
|
|
|
|
_dollar=$$
|
2008-09-23 20:10:40 +04:00
|
|
|
SOURCE_REPO := $(shell cd $(topsrcdir) && hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" -e "s/\/$(_dollar)//" )
|
|
|
|
# extra sanity check for old versions of hg
|
|
|
|
# that don't support showconfig
|
|
|
|
ifeq (http,$(patsubst http%,http,$(SOURCE_REPO)))
|
2008-09-22 22:00:38 +04:00
|
|
|
DEFINES += -DSOURCE_REPO="$(SOURCE_REPO)"
|
|
|
|
endif
|
2004-12-01 03:21:43 +03:00
|
|
|
|
2010-05-30 07:30:04 +04:00
|
|
|
ifdef MOZ_TOOLKIT_SEARCH
|
|
|
|
DEFINES += -DMOZ_TOOLKIT_SEARCH
|
|
|
|
endif
|
|
|
|
|
2007-02-17 07:12:28 +03:00
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
DIRS += tests
|
|
|
|
endif
|
|
|
|
|
2008-10-18 13:57:46 +04:00
|
|
|
EXTRA_JS_MODULES = \
|
2010-08-12 13:51:03 +04:00
|
|
|
Geometry.jsm \
|
2009-10-28 14:15:22 +03:00
|
|
|
InlineSpellChecker.jsm \
|
2010-04-09 21:45:25 +04:00
|
|
|
PopupNotifications.jsm \
|
2011-03-23 22:13:41 +03:00
|
|
|
Dict.jsm \
|
2008-10-18 13:57:46 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2009-10-04 13:28:45 +04:00
|
|
|
EXTRA_PP_JS_MODULES = \
|
|
|
|
debug.js \
|
|
|
|
LightweightThemeConsumer.jsm \
|
2010-05-30 07:30:04 +04:00
|
|
|
Services.jsm \
|
2010-06-28 10:04:05 +04:00
|
|
|
WindowDraggingUtils.jsm \
|
2009-10-04 13:28:45 +04:00
|
|
|
$(NULL)
|
2008-03-13 22:25:49 +03:00
|
|
|
|
2003-11-15 10:43:50 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|