2003-11-15 10:43:50 +03:00
|
|
|
#
|
2012-05-21 15:12:37 +04:00
|
|
|
# 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/.
|
2003-11-15 10:43:50 +03:00
|
|
|
|
|
|
|
|
2012-08-04 22:26:44 +04:00
|
|
|
DEPTH = @DEPTH@
|
2003-11-15 10:43:50 +03:00
|
|
|
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)" \
|
2012-02-24 07:34:18 +04:00
|
|
|
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
|
|
|
-DMOZ_BUILD_APP=$(MOZ_BUILD_APP) \
|
2008-09-22 22:00:38 +04:00
|
|
|
$(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
|
|
|
|
|
2011-08-10 01:16:26 +04:00
|
|
|
ifeq (Android,$(OS_TARGET))
|
|
|
|
DEFINES += -DANDROID_PACKAGE_NAME=$(ANDROID_PACKAGE_NAME)
|
|
|
|
endif
|
|
|
|
|
2012-06-27 19:31:38 +04:00
|
|
|
# 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=$$
|
|
|
|
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)))
|
|
|
|
DEFINES += -DSOURCE_REPO="$(SOURCE_REPO)"
|
2008-09-22 22:00:38 +04:00
|
|
|
endif
|
2004-12-01 03:21:43 +03:00
|
|
|
|
2012-02-09 09:16:47 +04:00
|
|
|
BUILD_HOSTNAME = $(shell hostname -s || hostname)
|
|
|
|
DEFINES += -DBUILD_HOSTNAME="$(BUILD_HOSTNAME)"
|
|
|
|
|
2010-05-30 07:30:04 +04:00
|
|
|
ifdef MOZ_TOOLKIT_SEARCH
|
|
|
|
DEFINES += -DMOZ_TOOLKIT_SEARCH
|
|
|
|
endif
|
|
|
|
|
2012-02-04 21:32:24 +04:00
|
|
|
TEST_DIRS += tests
|
2007-02-17 07:12:28 +03:00
|
|
|
|
2008-10-18 13:57:46 +04:00
|
|
|
EXTRA_JS_MODULES = \
|
2012-08-04 05:22:55 +04:00
|
|
|
debug.js \
|
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 \
|
2012-08-04 05:22:55 +04:00
|
|
|
PageMenu.jsm \
|
2012-01-23 16:05:01 +04:00
|
|
|
PropertyListUtils.jsm \
|
2012-07-03 18:35:03 +04:00
|
|
|
PrivateBrowsingUtils.jsm \
|
2012-08-20 15:51:44 +04:00
|
|
|
Task.jsm \
|
2008-10-18 13:57:46 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2009-10-04 13:28:45 +04:00
|
|
|
EXTRA_PP_JS_MODULES = \
|
|
|
|
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
|