1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
5 # Include config.mk explicitly so we can override FINAL_TARGET.
6 include $(topsrcdir
)/config
/config.mk
8 # Place webapprt resources in a separate app dir
11 PREF_JS_EXPORTS
= $(srcdir)/prefs.js \
14 include $(topsrcdir
)/config
/rules.mk
17 DEFINES
+= -DMOZ_DEBUG
=1
20 ifdef MOZILLA_OFFICIAL
21 DEFINES
+= -DMOZILLA_OFFICIAL
24 libs
:: $(call mkdir_deps
,$(FINAL_TARGET
))
25 $(PYTHON
) $(MOZILLA_DIR
)/config
/buildlist.py
$(FINAL_TARGET
)/chrome.manifest
"resource webapprt ./"
27 GRE_MILESTONE
:= $(shell tail
-n
1 $(topsrcdir
)/config
/milestone.txt
2>/dev
/null || tail
-1 $(topsrcdir
)/config
/milestone.txt
)
28 GRE_BUILDID
:= $(shell cat
$(DEPTH
)/config
/buildid
)
29 DEFINES
+= -DGRE_MILESTONE
=$(GRE_MILESTONE
) \
30 -DGRE_BUILDID
=$(GRE_BUILDID
) \
31 -DMOZ_APP_BASENAME
=$(MOZ_APP_BASENAME
) \
34 webapprt.ini
: application.ini.in
$(DEPTH
)/config
/buildid
$(topsrcdir
)/config
/milestone.txt
35 $(PYTHON
) $(topsrcdir
)/config
/Preprocessor.py
$(DEFINES
) $< > $@
38 $(INSTALL
) webapprt.ini
$(FINAL_TARGET
)
40 GARBAGE
+= webapprt.ini