Bug 820148 - Add a RELEASE_BUILD macro that can be used within pref js files. r=ted a=akeybl
☠☠ backed out by 1ed1cd3f4bd9 ☠ ☠
authorCameron McCormack <cam@mcc.id.au>
Wed, 19 Dec 2012 10:10:22 +1100
changeset 217218 a0dbfb9d776b3dc525242525b16bd6324542cfa5
parent 217217 82e323659c9d7262144ad6a51cd38ccdb1650ab8
child 217219 1ed1cd3f4bd959e688d781300d0803f5ae5232f4
push id27311
push userryanvm@gmail.com
push dateThu, 14 Aug 2014 04:00:43 +0000
treeherdertry@1a4153d2b9da [default view] [failures only]
reviewersted, akeybl
bugs820148
milestone18.0
Bug 820148 - Add a RELEASE_BUILD macro that can be used within pref js files. r=ted a=akeybl
build/Makefile.in
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -52,16 +52,22 @@ GRE_MILESTONE = $(shell tail -n 1 $(tops
 APP_INI_DEPS = $(topsrcdir)/config/milestone.txt
 endif
 
 APP_BUILDID := $(shell cat $(DEPTH)/config/buildid)
 APP_INI_DEPS += $(DEPTH)/config/buildid
 
 DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) -DAPP_BUILDID=$(APP_BUILDID)
 
+# Set a flag that can be used in pref files to disable features if
+# we are not building for Aurora or Nightly.
+ifeq (,$(findstring a,$(GRE_MILESTONE)))
+PREF_PPFLAGS += -DRELEASE_BUILD
+endif
+
 DEFINES += -DMOZ_APP_VERSION="$(MOZ_APP_VERSION)"
 APP_INI_DEPS += $(DEPTH)/config/autoconf.mk
 
 MOZ_SOURCE_STAMP := $(firstword $(shell cd $(topsrcdir)/$(MOZ_BUILD_APP)/.. && hg parent --template="{node|short}\n" 2>/dev/null))
 ifdef MOZ_SOURCE_STAMP
 DEFINES += -DMOZ_SOURCE_STAMP="$(MOZ_SOURCE_STAMP)"
 endif