2012-04-17 07:11:53 -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/.
|
|
|
|
|
2012-05-07 10:45:53 -07:00
|
|
|
# Include config.mk explicitly so we can override FINAL_TARGET.
|
2012-04-17 07:11:53 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2012-06-14 13:21:06 -07:00
|
|
|
PREF_JS_EXPORTS = $(srcdir)/prefs.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2013-11-27 21:24:05 -08:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
DEFINES += -DMOZ_DEBUG=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
|
|
DEFINES += -DMOZILLA_OFFICIAL
|
|
|
|
endif
|
|
|
|
|
2013-03-10 20:03:28 -07:00
|
|
|
libs:: $(call mkdir_deps,$(FINAL_TARGET))
|
2013-10-11 07:22:49 -07:00
|
|
|
$(call py_action,buildlist,$(FINAL_TARGET)/chrome.manifest "resource webapprt ./")
|
2012-04-19 00:39:52 -07:00
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
|
2013-11-27 21:24:05 -08:00
|
|
|
DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) \
|
|
|
|
-DGRE_BUILDID=$(GRE_BUILDID) \
|
|
|
|
-DMOZ_APP_BASENAME=$(MOZ_APP_BASENAME) \
|
|
|
|
$(NULL)
|
2012-04-17 07:11:53 -07:00
|
|
|
|
2012-04-21 11:41:50 -07:00
|
|
|
webapprt.ini: application.ini.in $(DEPTH)/config/buildid $(topsrcdir)/config/milestone.txt
|
2013-11-08 17:35:44 -08:00
|
|
|
$(call py_action,preprocessor,$(DEFINES) $< -o $@)
|
2012-04-17 07:11:53 -07:00
|
|
|
|
2012-04-21 11:41:50 -07:00
|
|
|
libs:: webapprt.ini
|
|
|
|
$(INSTALL) webapprt.ini $(FINAL_TARGET)
|
2012-04-17 07:11:53 -07:00
|
|
|
|
2012-04-21 11:41:50 -07:00
|
|
|
GARBAGE += webapprt.ini
|