2
# This Source Code Form is subject to the terms of the Mozilla Public
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
topsrcdir = @top_srcdir@
12
CHROME_DEPS = buildconfig.html
14
include $(DEPTH)/config/autoconf.mk
17
-Dtarget="$(target)" \
18
-Dac_configure_args="$(ac_configure_args)" \
20
-DCC_VERSION="$(CC_VERSION)" \
21
-DCFLAGS="$(CFLAGS)" \
23
-DCXX_VERSION="$(CXX_VERSION)" \
24
-DCXXFLAGS="$(CXXFLAGS)" \
25
-DCPPFLAGS="$(CPPFLAGS)" \
26
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
27
-DMOZ_BUILD_APP=$(MOZ_BUILD_APP) \
30
MOZ_SOURCE_STAMP ?= $(shell hg -R $(topsrcdir) parent --template="{node|short}\n" 2>/dev/null)
31
ifdef MOZ_SOURCE_STAMP
32
DEFINES += -DSOURCE_CHANGESET="$(MOZ_SOURCE_STAMP)"
35
ifeq (Android,$(OS_TARGET))
36
DEFINES += -DANDROID_PACKAGE_NAME=$(ANDROID_PACKAGE_NAME)
39
# strip a trailing slash from the repo URL because it's not always present,
40
# and we want to construct a working URL in buildconfig.html
41
# make+shell+sed = awful
43
SOURCE_REPO := $(shell cd $(topsrcdir) && hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" -e "s/\/$(_dollar)//" )
44
# extra sanity check for old versions of hg
45
# that don't support showconfig
46
ifeq (http,$(patsubst http%,http,$(SOURCE_REPO)))
47
DEFINES += -DSOURCE_REPO="$(SOURCE_REPO)"
50
BUILD_HOSTNAME = $(shell hostname -s || hostname)
51
DEFINES += -DBUILD_HOSTNAME="$(BUILD_HOSTNAME)"
53
ifdef MOZ_TOOLKIT_SEARCH
54
DEFINES += -DMOZ_TOOLKIT_SEARCH
62
InlineSpellChecker.jsm \
63
PopupNotifications.jsm \
66
PropertyListUtils.jsm \
67
PrivateBrowsingUtils.jsm \
71
EXTRA_PP_JS_MODULES = \
72
LightweightThemeConsumer.jsm \
74
WindowDraggingUtils.jsm \
77
include $(topsrcdir)/config/rules.mk