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/.
|
|
|
|
|
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2012-05-07 10:45:53 -07:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
DIRS = $(NULL)
|
|
|
|
|
|
|
|
# Include config.mk explicitly so we can override FINAL_TARGET.
|
2012-04-17 07:11:53 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2012-04-19 00:39:52 -07:00
|
|
|
# config.mk sets FINAL_TARGET to $(DIST)/bin, but we want to copy build products
|
|
|
|
# into a WebappRT-specific subdirectory, so we redefine it here.
|
|
|
|
FINAL_TARGET = $(DIST)/bin/webapprt
|
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
ifneq (,$(filter WINNT,$(OS_ARCH)))
|
|
|
|
DIRS += win
|
|
|
|
else
|
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
|
|
DIRS += mac
|
|
|
|
endif # mac
|
|
|
|
endif # windows
|
|
|
|
|
|
|
|
EXTRA_PP_COMPONENTS = \
|
2012-04-19 00:39:52 -07:00
|
|
|
components.manifest \
|
|
|
|
CommandLineHandler.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-04-19 00:39:52 -07:00
|
|
|
WebappRT.jsm \
|
|
|
|
$(NULL)
|
2012-04-17 07:11:53 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-04-19 00:39:52 -07:00
|
|
|
libs::
|
|
|
|
$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/chrome.manifest "resource webapprt ./"
|
|
|
|
|
2012-04-17 07:11:53 -07:00
|
|
|
libs:: prefs.js
|
2012-04-19 00:39:52 -07:00
|
|
|
$(NSINSTALL) -D $(FINAL_TARGET)/defaults/preferences
|
|
|
|
$(INSTALL) $^ $(FINAL_TARGET)/defaults/preferences
|
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)
|
|
|
|
DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) -DGRE_BUILDID=$(GRE_BUILDID)
|
|
|
|
|
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
|