2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07: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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
CHROME_DEPS = buildconfig.html
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2008-09-22 11:00:38 -07: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-23 19:34:18 -08:00
|
|
|
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
|
|
|
-DMOZ_BUILD_APP=$(MOZ_BUILD_APP) \
|
2008-09-22 11:00:38 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2009-12-20 06:25:48 -08: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 11:00:38 -07:00
|
|
|
endif
|
|
|
|
|
2011-08-09 14:16:26 -07:00
|
|
|
ifeq (Android,$(OS_TARGET))
|
|
|
|
DEFINES += -DANDROID_PACKAGE_NAME=$(ANDROID_PACKAGE_NAME)
|
|
|
|
endif
|
|
|
|
|
2012-06-27 08:31:38 -07: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 11:00:38 -07:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-02-08 21:16:47 -08:00
|
|
|
BUILD_HOSTNAME = $(shell hostname -s || hostname)
|
|
|
|
DEFINES += -DBUILD_HOSTNAME="$(BUILD_HOSTNAME)"
|
|
|
|
|
2010-05-29 20:30:04 -07:00
|
|
|
ifdef MOZ_TOOLKIT_SEARCH
|
|
|
|
DEFINES += -DMOZ_TOOLKIT_SEARCH
|
|
|
|
endif
|
|
|
|
|
2012-02-04 09:32:24 -08:00
|
|
|
TEST_DIRS += tests
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-10-18 02:57:46 -07:00
|
|
|
EXTRA_JS_MODULES = \
|
2012-08-03 18:22:55 -07:00
|
|
|
debug.js \
|
2012-07-23 13:28:26 -07:00
|
|
|
DeferredTask.jsm \
|
|
|
|
Dict.jsm \
|
2010-08-12 02:51:03 -07:00
|
|
|
Geometry.jsm \
|
2009-10-28 04:15:22 -07:00
|
|
|
InlineSpellChecker.jsm \
|
2012-08-03 18:22:55 -07:00
|
|
|
PageMenu.jsm \
|
2012-07-23 13:28:26 -07:00
|
|
|
PopupNotifications.jsm \
|
2012-07-03 07:35:03 -07:00
|
|
|
PrivateBrowsingUtils.jsm \
|
2012-07-23 13:28:26 -07:00
|
|
|
PropertyListUtils.jsm \
|
2012-08-20 04:51:44 -07:00
|
|
|
Task.jsm \
|
2012-09-10 09:54:41 -07:00
|
|
|
UpdateChannel.jsm \
|
2008-10-18 02:57:46 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2009-10-04 02:28:45 -07:00
|
|
|
EXTRA_PP_JS_MODULES = \
|
|
|
|
LightweightThemeConsumer.jsm \
|
2010-05-29 20:30:04 -07:00
|
|
|
Services.jsm \
|
2010-06-27 23:04:05 -07:00
|
|
|
WindowDraggingUtils.jsm \
|
2012-09-18 13:25:06 -07:00
|
|
|
Troubleshoot.jsm \
|
2009-10-04 02:28:45 -07:00
|
|
|
$(NULL)
|
2008-03-13 12:25:49 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|