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-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2012-04-17 07:11:53 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2012-05-07 10:45:53 -07:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
# Include config.mk explicitly so we can override FINAL_TARGET.
|
2012-04-17 07:11:53 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2012-12-05 14:36:36 -08:00
|
|
|
# Place webapprt resources in a separate app dir
|
|
|
|
DIST_SUBDIR = webapprt
|
2012-04-19 00:39:52 -07:00
|
|
|
|
2012-12-02 00:52:44 -08:00
|
|
|
EXTRA_COMPONENTS := \
|
2012-04-19 00:39:52 -07:00
|
|
|
components.manifest \
|
|
|
|
CommandLineHandler.js \
|
2012-05-31 10:04:52 -07:00
|
|
|
ContentPermission.js \
|
2012-04-26 16:55:27 -07:00
|
|
|
ContentPolicy.js \
|
2012-04-19 00:39:52 -07:00
|
|
|
DirectoryProvider.js \
|
2012-04-17 07:11:53 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXTRA_JS_MODULES = \
|
2012-08-14 15:27:26 -07:00
|
|
|
Startup.jsm \
|
2012-04-19 00:39:52 -07:00
|
|
|
WebappRT.jsm \
|
2012-06-21 14:06:24 -07:00
|
|
|
WebappsHandler.jsm \
|
2012-04-19 00:39:52 -07:00
|
|
|
$(NULL)
|
2012-04-17 07:11:53 -07:00
|
|
|
|
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
|
|
|
|
|
2012-05-31 13:30:40 -07:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
DEFINES += -DMOZ_DEBUG=1
|
|
|
|
endif
|
|
|
|
|
2012-06-14 13:27:36 -07:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
|
|
DEFINES += -DMOZILLA_OFFICIAL
|
|
|
|
endif
|
|
|
|
|
2013-03-10 20:03:28 -07:00
|
|
|
libs:: $(call mkdir_deps,$(FINAL_TARGET))
|
2012-04-19 00:39:52 -07:00
|
|
|
$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/chrome.manifest "resource webapprt ./"
|
|
|
|
|
2012-04-17 07:11:53 -07: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-04-30 21:24:38 -07: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
|
2012-04-17 07:11:53 -07:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $< > $@
|
|
|
|
|
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
|