2012-04-17 14:11:53 +00: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 17:45:53 +00:00
|
|
|
# Include config.mk explicitly so we can override FINAL_TARGET.
|
2012-04-17 14:11:53 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2012-12-05 22:36:36 +00:00
|
|
|
# Place webapprt resources in a separate app dir
|
|
|
|
DIST_SUBDIR = webapprt
|
2012-04-19 07:39:52 +00:00
|
|
|
|
2012-06-14 20:21:06 +00:00
|
|
|
PREF_JS_EXPORTS = $(srcdir)/prefs.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-04-17 14:11:53 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-05-31 20:30:40 +00:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
DEFINES += -DMOZ_DEBUG=1
|
|
|
|
endif
|
|
|
|
|
2012-06-14 20:27:36 +00:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
|
|
DEFINES += -DMOZILLA_OFFICIAL
|
|
|
|
endif
|
|
|
|
|
2013-03-11 03:03:28 +00:00
|
|
|
libs:: $(call mkdir_deps,$(FINAL_TARGET))
|
2012-04-19 07:39:52 +00:00
|
|
|
$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/chrome.manifest "resource webapprt ./"
|
|
|
|
|
2012-04-17 14:11:53 +00:00
|
|
|
GRE_MILESTONE := $(shell tail -n 1 $(topsrcdir)/config/milestone.txt 2>/dev/null || tail -1 $(topsrcdir)/config/milestone.txt)
|
|
|
|
GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
|
2012-05-01 04:24:38 +00:00
|
|
|
DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) \
|
|
|
|
-DGRE_BUILDID=$(GRE_BUILDID) \
|
|
|
|
-DMOZ_APP_BASENAME=$(MOZ_APP_BASENAME) \
|
|
|
|
$(NULL)
|
2012-04-17 14:11:53 +00:00
|
|
|
|
2012-04-21 18:41:50 +00:00
|
|
|
webapprt.ini: application.ini.in $(DEPTH)/config/buildid $(topsrcdir)/config/milestone.txt
|
2012-04-17 14:11:53 +00:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $< > $@
|
|
|
|
|
2012-04-21 18:41:50 +00:00
|
|
|
libs:: webapprt.ini
|
|
|
|
$(INSTALL) webapprt.ini $(FINAL_TARGET)
|
2012-04-17 14:11:53 +00:00
|
|
|
|
2012-04-21 18:41:50 +00:00
|
|
|
GARBAGE += webapprt.ini
|