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